34 import modularAnalysis
as ma
37 my_path = b2.create_path()
40 ma.inputMdst(environmentType=
'default',
41 filename=b2.find_file(
'JPsi2ee_e2egamma.root',
'examples',
False),
46 ma.fillParticleList(decayString=
'e+:uncorrected',
47 cut=
'electronID > 0.2 and dr < 2 and abs(dz) < 4',
49 ma.fillParticleList(decayString=
'gamma:bremsinput',
54 ma.matchMCTruth(list_name=
'e+:uncorrected', path=my_path)
55 ma.matchMCTruth(list_name=
'gamma:bremsinput', path=my_path)
59 ma.correctBrems(outputList=
'e+:corrected',
60 inputList=
'e+:uncorrected',
61 gammaList=
'gamma:bremsinput',
63 ma.matchMCTruth(list_name=
'e+:corrected',
67 ma.reconstructDecay(decayString=
'J/psi:uncorrected -> e+:uncorrected e-:uncorrected',
70 ma.reconstructDecay(decayString=
'J/psi:corrected -> e+:corrected e-:corrected',
75 ma.matchMCTruth(list_name=
'J/psi:uncorrected', path=my_path)
76 ma.matchMCTruth(list_name=
'J/psi:corrected', path=my_path)
79 ma.fillParticleListFromMC(decayString=
'J/psi:MC', cut=
"", path=my_path)
104 'extraInfo(bremsCorrected)'
114 'daughter(0, extraInfo(bremsCorrected))',
115 'daughter(1, extraInfo(bremsCorrected))'
118 ma.variablesToNtuple(decayString=
'e+:uncorrected',
120 filename=
'e_uncorrected.root',
122 ma.variablesToNtuple(decayString=
'e+:corrected',
124 filename=
'e_corrected.root',
126 ma.variablesToNtuple(decayString=
'J/psi:uncorrected',
128 filename=
'Jpsi_uncorrected.root',
130 ma.variablesToNtuple(decayString=
'J/psi:corrected',
132 filename=
'Jpsi_corrected.root',
134 ma.variablesToNtuple(decayString=
'J/psi:MC',
136 filename=
'Jpsi_MC.root',