5 msg +=
"Usage 1: %s $INPUT_ROOT_FILE\n" % sys.argv[0]
10 from seltool
import ertool
11 from larlite
import larlite
as fmwk
14 my_proc = fmwk.ana_processor()
17 for x
in xrange(len(sys.argv)-1):
18 my_proc.add_input_file(sys.argv[x+1])
21 my_proc.set_io_mode(fmwk.storage_manager.kREAD)
24 my_proc.set_ana_output_file(
"ertool_hist.root")
27 my_algo = ertool.AlgoBase()
30 my_ana = ertool.AnaBase()
33 my_anaunit = fmwk.ExampleERSelection()
38 my_anaunit.SetShowerProducer(
True,
"mcreco");
39 my_anaunit.SetTrackProducer(
True,
"mcreco");
40 my_anaunit.SetVtxProducer(
True,
"generator");
43 my_anaunit._mgr.AddAlgo(my_algo)
44 my_anaunit._mgr.AddAna(my_ana)
46 my_proc.add_process(my_anaunit)
53 print "Finished running ana_processor event loop!"