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