34 import modularAnalysis
as ma
37 my_path = b2.create_path()
40 ma.inputMdst(filename=b2.find_file(
'JPsi2ee_e2egamma.root',
'examples',
False),
45 ma.fillParticleList(decayString=
'e+:uncorrected',
46 cut=
'electronID > 0.2 and dr < 2 and abs(dz) < 4',
48 ma.fillParticleList(decayString=
'gamma:bremsinput',
53 ma.matchMCTruth(list_name=
'e+:uncorrected', path=my_path)
54 ma.matchMCTruth(list_name=
'gamma:bremsinput', path=my_path)
58 ma.correctBrems(outputList=
'e+:corrected',
59 inputList=
'e+:uncorrected',
60 gammaList=
'gamma:bremsinput',
62 ma.matchMCTruth(list_name=
'e+:corrected',
66 ma.reconstructDecay(decayString=
'J/psi:uncorrected -> e+:uncorrected e-:uncorrected',
69 ma.reconstructDecay(decayString=
'J/psi:corrected -> e+:corrected e-:corrected',
74 ma.matchMCTruth(list_name=
'J/psi:uncorrected', path=my_path)
75 ma.matchMCTruth(list_name=
'J/psi:corrected', path=my_path)
78 ma.fillParticleListFromMC(decayString=
'J/psi:MC', cut=
"", path=my_path)
103 'extraInfo(bremsCorrected)'
113 'daughter(0, extraInfo(bremsCorrected))',
114 'daughter(1, extraInfo(bremsCorrected))'
117 ma.variablesToNtuple(decayString=
'e+:uncorrected',
119 treename=
'e_uncorrected',
121 ma.variablesToNtuple(decayString=
'e+:corrected',
123 treename=
'e_corrected',
125 ma.variablesToNtuple(decayString=
'J/psi:uncorrected',
127 treename=
'Jpsi_uncorrected',
129 ma.variablesToNtuple(decayString=
'J/psi:corrected',
131 treename=
'Jpsi_corrected',
133 ma.variablesToNtuple(decayString=
'J/psi:MC',