14 <input>PartGunChargedStableGenSim.root</input>
15 <output>EvtGenSimRec_dedx.root</output>
16 <description>Generates dE/dx debug data (DedxTracks) for testing</description>
17 <contact>jkumar@andrew.cmu.edu</contact>
22 from reconstruction
import add_reconstruction
24 main = basf2.create_path()
27 inputFileName =
"../PartGunChargedStableGenSim.root"
28 main.add_module(
"RootInput", inputFileName=inputFileName)
31 main.add_module(
"Gearbox")
33 main.add_module(
"Geometry")
36 add_reconstruction(main)
39 for m
in main.modules():
40 if m.name() ==
'CDCDedxPID':
41 m.param(
'enableDebugOutput',
True)
42 if m.name() ==
'VXDDedxPID':
43 m.param(
'enableDebugOutput',
True)
47 output = basf2.register_module(
'RootOutput')
48 output.param(
'outputFileName',
'../EvtGenSimRec_dedx.root')
50 output.param(
'branchNames', [
'CDCDedxLikelihoods',
'CDCDedxTracks',
'VXDDedxLikelihoods',
'VXDDedxTracks',
'EventMetaData'])
51 main.add_module(output)
53 main.add_module(
"ProgressBar")
56 print(basf2.statistics)