28import generators
as gen
29import simulation
as sim
30import reconstruction
as rec
31import modularAnalysis
as ma
35from ROOT
import gSystem
36gSystem.Load(
'libklm.so')
39main = basf2.create_path()
46main.add_module(
'EventInfoSetter',
50main.add_module(
'Progress')
51main.add_module(
'ProgressBar')
55 gen.add_kkmc_generator(finalstate=
'mu+mu-',
58 main.add_module(
'ParticleGun',
61 momentumGeneration=
'fixed',
63 thetaGeneration=
'uniformCos',
68sim.add_simulation(path=main)
69rec.add_reconstruction(path=main)
78 'nCDCHits > 20 and abs(dz) < 2.0 and abs(dr) < 0.5 and 0.15 < clusterE < 0.4 and formula(clusterE/p) < 0.4',
83ma.cutAndCopyList(
'mu+:muid',
89listOfVariables = [
'p',
96 'muidMuonProbability',
97 'muidPionProbability',
98 'muidMuonLogLikelihood',
99 'muidPionLogLikelihood',
100 'muidOutcomeExtTrack',
103 'muidHitLayerPattern',
104 'muidExtLayerPattern',
107 'klmClusterInnermostLayer',
109ma.variablesToNtuple(
'mu+:muid',
111 filename=
'MuidVariables.root',
117print(basf2.statistics)