12from optparse
import OptionParser
21parser = OptionParser()
22parser.add_option(
'-f',
'--file', dest=
'filename',
23 default=
'ARICHRec.root')
24(options, args) = parser.parse_args()
26home = os.environ[
'BELLE2_LOCAL_DIR']
29b2.set_log_level(b2.LogLevel.ERROR)
32main = b2.create_path()
35input_module = b2.register_module(
'RootInput')
36input_module.param(
'inputFileName', home +
"/ARICHEvents.root")
37main.add_module(input_module)
40histo = b2.register_module(
'HistoManager')
41histo.param(
'histoFileName',
'DQMhistograms.root')
45main.add_module(
'Gearbox')
48geometry = b2.register_module(
'Geometry')
49geometry.param(
'components', [
'ARICH'])
50main.add_module(geometry)
53main.add_module(
'ARICHDigitizer')
56main.add_module(
'ARICHFillHits')
60main.add_module(
'ARICHReconstructor')
64arichNtuple = b2.register_module(
'ARICHNtuple')
65arichNtuple.param(
'outputFile', options.filename)
66main.add_module(arichNtuple)
70main.add_module(
'ARICHDQM')
78main.add_module(
'Progress')