14 <input>PartGunChargedStableGenSim.root</input>
15 <output>ParticleGunSimRec_dedx.root</output>
16 <description>Generates dE/dx debug data (DedxTracks) for testing</description>
17 <contact>renu2@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)
44 output = basf2.register_module(
'RootOutput')
45 output.param(
'outputFileName',
'../ParticleGunSimRec_dedx.root')
47 output.param(
'branchNames', [
'CDCDedxLikelihoods',
'CDCDedxTracks',
'VXDDedxLikelihoods',
'VXDDedxTracks',
'EventMetaData'])
48 main.add_module(output)
50 main.add_module(
"ProgressBar")
53 print(basf2.statistics)