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)
61ma.correctBrems(outputList=
'e+:corrected',
62 inputList=
'e+:uncorrected',
63 gammaList=
'gamma:bremsinput',
65ma.matchMCTruth(list_name=
'e+:corrected',
69ma.reconstructDecay(decayString=
'J/psi:uncorrected -> e+:uncorrected e-:uncorrected',
72ma.reconstructDecay(decayString=
'J/psi:corrected -> e+:corrected e-:corrected',
77ma.matchMCTruth(list_name=
'J/psi:uncorrected', path=my_path)
78ma.matchMCTruth(list_name=
'J/psi:corrected', path=my_path)
81ma.fillParticleListFromMC(decayString=
'J/psi:MC', cut=
"", path=my_path)
106 'extraInfo(bremsCorrected)'
116 'daughter(0, extraInfo(bremsCorrected))',
117 'daughter(1, extraInfo(bremsCorrected))'
120ma.variablesToNtuple(decayString=
'e+:uncorrected',
122 treename=
'e_uncorrected',
124ma.variablesToNtuple(decayString=
'e+:corrected',
126 treename=
'e_corrected',
128ma.variablesToNtuple(decayString=
'J/psi:uncorrected',
130 treename=
'Jpsi_uncorrected',
132ma.variablesToNtuple(decayString=
'J/psi:corrected',
134 treename=
'Jpsi_corrected',
136ma.variablesToNtuple(decayString=
'J/psi:MC',
142b2.process(my_path, calculateStatistics=
True)