4 from ROOT
import Belle2
9 import reconstruction
as re
11 basf2.set_random_seed(1234)
13 path = basf2.create_path()
16 environment.setNumberEventsOverride(10000)
19 path.add_module(
'RootInput', inputFileName=
'./EvtGenSim.root')
22 path.add_module(
'Progress')
24 path.add_module(
"Gearbox")
25 path.add_module(
"Geometry")
28 re.add_reconstruction(path, pruneTracks=
False, reconstruct_cdst=
"rawFormat")
31 for module
in path.modules():
32 if 'TrackFinderMCTruthRecoTracks' in module.name():
33 module.param({
"UseReassignedHits":
True,
'UseNLoops': 1})
34 if 'V0Finder' in module.name():
35 module.param(
"Validation",
True)
38 path.add_module(
'MCV0Matcher', V0ColName=
'V0ValidationVertexs')
44 filename=
'./validationSample.root',
49 'CDCSimHitsToCDCHits',
51 'RecoHitInformations',
52 'RecoTracksToRecoHitInformations',
53 'MCRecoTracksToRecoHitInformations',
54 'MCRecoTracksToMCParticles',
55 'MCRecoTracksToRecoTracks',
56 'RecoTracksToMCParticles',
57 'RecoTracksToMCRecoTracks',
58 'V0ValidationVertexs',
59 'V0ValidationVertexsToMCParticles',
60 'V0sToV0ValidationVertexs',
62 'TracksToMCParticles'])
64 basf2.print_path(path)
67 logging.basicConfig(level=logging.INFO)
69 print(basf2.statistics)
static Environment & Instance()
Static method to get a reference to the Environment instance.