10 from ROOT
import Belle2
12 from reconstruction
import add_reconstruction
14 from simulation
import add_simulation
18 bkgdir =
"/remote/neurobelle/data/bckg/OfficialBKG/15thCampaign/phase3/set0/"
20 particlegun_params = {
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]}
34 main = b2.create_path()
35 main.add_module(
'EventInfoSetter', evtNumList=5000)
36 main.add_module(
'Gearbox')
37 main.add_module(
'Geometry')
38 main.add_module(
'BeamBkgMixer',
39 backgroundFiles=glob.glob(os.path.join(bkgdir,
'*usual*.root')),
42 particlegun = b2.register_module(
'ParticleGun')
43 particlegun.param(particlegun_params)
44 main.add_module(particlegun)
48 main.add_module(
'CDCDigitizer')
49 main.add_module(
'CDCTriggerTSF',
52 TSHitCollectionName=
'CDCTriggerNNInputSegmentHits')
53 main.add_module(
'CDCTriggerTSF',
56 TSHitCollectionName=
'CDCTriggerSegmentHits')
57 main.add_module(
'CDCTrigger2DFinder',
61 hitCollectionName=
'CDCTriggerSegmentHits',
62 outputCollectionName=
'CDCTrigger2DFinderTracks')
63 main.add_module(
'CDCTrigger2DFinder',
67 hitCollectionName=
'CDCTriggerNNInputSegmentHits',
68 outputCollectionName=
'CDCTriggerNNInput2DFinderTracks')
69 main.add_module(
'CDCTriggerETF',
70 hitCollectionName=
'CDCTriggerNNInputSegmentHits')
71 main.add_module(
'CDCTriggerNeuro',
72 hitCollectionName=
'CDCTriggerNNInputSegmentHits',
73 outputCollectionName=
'CDCTriggerNeuroTracks',
74 inputCollectionName=
'CDCTriggerNNInput2DFinderTracks',
77 add_reconstruction(main)
80 main.add_module(
'RootOutput', outputFileName=
"phase3bckg-0-reco_sim.root")
81 main.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...