8import reconstruction
as re
12 """Only execute the code if the script is run but not when it's imported."""
13 basf2.set_random_seed(1234)
15 path = basf2.create_path()
18 environment.setNumberEventsOverride(10000)
21 path.add_module(
'RootInput', inputFileName=
'./EvtGenSim.root')
24 path.add_module(
'Progress')
26 path.add_module(
"Gearbox")
27 path.add_module(
"Geometry")
30 re.add_reconstruction(path, pruneTracks=
False, reconstruct_cdst=
"rawFormat")
33 for module
in path.modules():
34 if 'TrackFinderMCTruthRecoTracks' in module.name():
35 module.param({
"UseReassignedHits":
True,
'UseNLoops': 1})
36 if 'V0Finder' in module.name():
37 module.param(
"Validation",
True)
40 path.add_module(
'MCV0Matcher', V0ColName=
'V0ValidationVertexs')
46 filename=
'./validationSample.root',
51 'CDCSimHitsToCDCHits',
53 'RecoHitInformations',
54 'RecoTracksToRecoHitInformations',
55 'MCRecoTracksToRecoHitInformations',
56 'MCRecoTracksToMCParticles',
57 'MCRecoTracksToRecoTracks',
58 'RecoTracksToMCParticles',
59 'RecoTracksToMCRecoTracks',
60 'V0ValidationVertexs',
61 'V0ValidationVertexsToMCParticles',
62 'V0sToV0ValidationVertexs',
64 'TracksToMCParticles'])
66 basf2.print_path(path)
69 logging.basicConfig(level=logging.INFO)
71 print(basf2.statistics)
74if __name__ ==
"__main__":
static Environment & Instance()
Static method to get a reference to the Environment instance.