#!/usr/bin/env python
# -*- coding:utf-8 -*-

import Sniper

task = Sniper.Task("task")
task.asTop()
task.setLogLevel(0)

import DataRegistritionSvc
task.createSvc("DataRegistritionSvc")

import RootIOSvc
task.createSvc("RootOutputSvc/OutputSvc")
ro = task.find("OutputSvc")
ro.property("OutputStreams").set({"/Event/SimEvent": "sample_simevt.root"})

import BufferMemMgr
bufMgr = task.createSvc("BufferMemMgr")
bufMgr.property("TimeWindow").set([-0.01, 0.01]);

import RootIOTest
task.property("algs").append("RootSimEventOutputTestAlg/oalg")

task.setEvtMax(10000)
task.run()


e59515738a80f82026c939012dddc46b2fee005f
<mask token>

<mask token>
task.asTop()
task.setLogLevel(0)
<mask token>
task.createSvc('DataRegistritionSvc')
<mask token>
task.createSvc('RootOutputSvc/OutputSvc')
<mask token>
ro.property('OutputStreams').set({'/Event/SimEvent': 'sample_simevt.root'})
<mask token>
bufMgr.property('TimeWindow').set([-0.01, 0.01])
<mask token>
task.property('algs').append('RootSimEventOutputTestAlg/oalg')
task.setEvtMax(10000)
task.run()

<mask token>
task = Sniper.Task('task')
task.asTop()
task.setLogLevel(0)
<mask token>
task.createSvc('DataRegistritionSvc')
<mask token>
task.createSvc('RootOutputSvc/OutputSvc')
ro = task.find('OutputSvc')
ro.property('OutputStreams').set({'/Event/SimEvent': 'sample_simevt.root'})
<mask token>
bufMgr = task.createSvc('BufferMemMgr')
bufMgr.property('TimeWindow').set([-0.01, 0.01])
<mask token>
task.property('algs').append('RootSimEventOutputTestAlg/oalg')
task.setEvtMax(10000)
task.run()

import Sniper
task = Sniper.Task('task')
task.asTop()
task.setLogLevel(0)
import DataRegistritionSvc
task.createSvc('DataRegistritionSvc')
import RootIOSvc
task.createSvc('RootOutputSvc/OutputSvc')
ro = task.find('OutputSvc')
ro.property('OutputStreams').set({'/Event/SimEvent': 'sample_simevt.root'})
import BufferMemMgr
bufMgr = task.createSvc('BufferMemMgr')
bufMgr.property('TimeWindow').set([-0.01, 0.01])
import RootIOTest
task.property('algs').append('RootSimEventOutputTestAlg/oalg')
task.setEvtMax(10000)
task.run()

#!/usr/bin/env python
# -*- coding:utf-8 -*-

import Sniper

task = Sniper.Task("task")
task.asTop()
task.setLogLevel(0)

import DataRegistritionSvc
task.createSvc("DataRegistritionSvc")

import RootIOSvc
task.createSvc("RootOutputSvc/OutputSvc")
ro = task.find("OutputSvc")
ro.property("OutputStreams").set({"/Event/SimEvent": "sample_simevt.root"})

import BufferMemMgr
bufMgr = task.createSvc("BufferMemMgr")
bufMgr.property("TimeWindow").set([-0.01, 0.01]);

import RootIOTest
task.property("algs").append("RootSimEventOutputTestAlg/oalg")

task.setEvtMax(10000)
task.run()

