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