10from ROOT
import Belle2
12from reconstruction
import add_reconstruction
14from simulation
import add_simulation
18bkgdir =
"/remote/neurobelle/data/bckg/OfficialBKG/15thCampaign/phase3/set0/"
21 'pdgCodes': [-13, 13],
23 'momentumGeneration':
'inversePt',
24 'momentumParams': [0.3, 10.],
25 'thetaGeneration':
'uniformCos',
26 'thetaParams': thrange,
27 'phiGeneration':
'uniform',
28 'phiParams': [0, 360],
29 'vertexGeneration':
'uniform',
30 'xVertexParams': [0, 0.0],
31 'yVertexParams': [0, 0.0],
32 'zVertexParams': [0.0, 0.0]}
34main = b2.create_path()
35main.add_module(
'EventInfoSetter', evtNumList=5000)
36main.add_module(
'Gearbox')
37main.add_module(
'Geometry')
38main.add_module(
'BeamBkgMixer',
39 backgroundFiles=glob.glob(os.path.join(bkgdir,
'*usual*.root')),
42particlegun = b2.register_module(
'ParticleGun')
43particlegun.param(particlegun_params)
44main.add_module(particlegun)
48main.add_module(
'CDCDigitizer')
49main.add_module(
'CDCTriggerTSF',
52 TSHitCollectionName=
'CDCTriggerNNInputSegmentHits')
53main.add_module(
'CDCTriggerTSF',
56 TSHitCollectionName=
'CDCTriggerSegmentHits')
57main.add_module(
'CDCTrigger2DFinder',
61 hitCollectionName=
'CDCTriggerSegmentHits',
62 outputCollectionName=
'CDCTrigger2DFinderTracks')
63main.add_module(
'CDCTrigger2DFinder',
67 hitCollectionName=
'CDCTriggerNNInputSegmentHits',
68 outputCollectionName=
'CDCTriggerNNInput2DFinderTracks')
69main.add_module(
'CDCTriggerETF',
70 hitCollectionName=
'CDCTriggerNNInputSegmentHits')
71main.add_module(
'CDCTriggerNeuro',
72 hitCollectionName=
'CDCTriggerNNInputSegmentHits',
73 outputCollectionName=
'CDCTriggerNeuroTracks',
74 inputCollectionName=
'CDCTriggerNNInput2DFinderTracks',
77add_reconstruction(main)
80main.add_module(
'RootOutput', outputFileName=
"phase3bckg-0-reco_sim.root")
81main.add_module(
'Progress')
static std::string findFile(const std::string &path, bool silent=false)
Search for given file or directory in local or central release directory, and return absolute path if...