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