13 <contact>software-tracking@belle2.org</contact>
14 <input>CosmicsSimNoBkg.root</input>
15 <output>CosmicsExtrapolation.root</output>
16 <description>Validation of cosmic track extrapolation.</description>
21from reconstruction import add_cosmics_reconstruction
28 Run the cosmics reconstruction and extrapolation.
30 basf2.set_random_seed(12345)
32 main = basf2.create_path()
35 main.add_module(
'RootInput', inputFileName=
'../CosmicsSimNoBkg.root')
39 main.add_module(
'Gearbox')
40 main.add_module(
'Geometry')
41 add_cosmics_reconstruction(main, merge_tracks=
False)
44 output = basf2.register_module(
'RootOutput')
45 output.param(
'outputFileName',
'../CosmicsExtrapolation.root')
46 output.param(
'branchNames', [
'ExtHits',
'KLMHit2ds',
47 'MCParticles',
'Tracks',
'TrackFitResults'])
48 main.add_module(output)
50 main.add_module(
'Progress')
53 basf2.process(main, max_event=1000)
55 print(basf2.statistics)
58if __name__ ==
'__main__':
62 print(
"This validation deactivated and thus basf2 is not executed.\n"
63 "If you want to run this validation, please set the 'ACTIVE' flag above to 'True'.\n"