8import reconstruction
as re
10basf2.set_random_seed(1234)
12path = basf2.create_path()
15environment.setNumberEventsOverride(10000)
18path.add_module(
'RootInput', inputFileName=
'./EvtGenSim.root')
21path.add_module(
'Progress')
23path.add_module(
"Gearbox")
24path.add_module(
"Geometry")
27re.add_reconstruction(path, pruneTracks=
False, reconstruct_cdst=
"rawFormat")
30for module
in path.modules():
31 if 'TrackFinderMCTruthRecoTracks' in module.name():
32 module.param({
"UseReassignedHits":
True,
'UseNLoops': 1})
33 if 'V0Finder' in module.name():
34 module.param(
"Validation",
True)
37path.add_module(
'MCV0Matcher', V0ColName=
'V0ValidationVertexs')
43 filename=
'./validationSample.root',
48 'CDCSimHitsToCDCHits',
50 'RecoHitInformations',
51 'RecoTracksToRecoHitInformations',
52 'MCRecoTracksToRecoHitInformations',
53 'MCRecoTracksToMCParticles',
54 'MCRecoTracksToRecoTracks',
55 'RecoTracksToMCParticles',
56 'RecoTracksToMCRecoTracks',
57 'V0ValidationVertexs',
58 'V0ValidationVertexsToMCParticles',
59 'V0sToV0ValidationVertexs',
61 'TracksToMCParticles'])
66logging.basicConfig(level=logging.INFO)
68print(basf2.statistics)
static Environment & Instance()
Static method to get a reference to the Environment instance.