12from optparse
import OptionParser
13from tracking
import add_tracking_reconstruction
14from modularAnalysis
import inputMdst
23parser = OptionParser()
24parser.add_option(
'-f',
'--file', dest=
'filename',
25 default=
'ARICHEvents.root')
26(options, args) = parser.parse_args()
28home = os.environ[
'BELLE2_LOCAL_DIR']
30mypath = b2.create_path()
33b2.set_log_level(b2.LogLevel.ERROR)
36inputMdst(home +
'/B2Kpi_events.root', path=mypath)
39mypath.add_module(
'Gearbox')
42geometry = b2.register_module(
'Geometry')
43geometry.param(
'components', [
50mypath.add_module(geometry)
53mypath.add_module(
'FullSim')
56mypath.add_module(
'PXDDigitizer')
57mypath.add_module(
'PXDClusterizer')
60mypath.add_module(
'SVDEventInfoSetter')
61mypath.add_module(
'SVDDigitizer')
62mypath.add_module(
'SVDClusterizer')
65mypath.add_module(
'CDCDigitizer')
68add_tracking_reconstruction(mypath)
71mypath.add_module(
'Ext')
77mypath.add_module(
'ARICHRelate')
80output = b2.register_module(
'RootOutput')
81output.param(
'outputFileName', options.filename)
82output.param(
'branchNames', [
'ARICHAeroHits',
'ARICHSimHits',
'ExtHits',
83 'ARICHAeroHitsToExtHits',
'Tracks',
'TrackFitResults'])
84mypath.add_module(output)
87mypath.add_module(
'Progress')