31import modularAnalysis
as ma
34sys_tests = [
'def',
'scale',
'scaleUp',
'scaleDown',
'Efficiency']
39if test
not in sys_tests:
40 print(f
"Unknown systematic test {test}")
44my_path = b2.create_path()
47ma.inputMdst(filename=b2.find_file(
'JPsi2ee_e2egamma.root',
'examples',
False),
52ma.fillParticleList(decayString=
'e+:sel',
53 cut=
'electronID > 0.2 and dr < 2 and abs(dz) < 4',
59 ma.scaleTrackMomenta(inputListNames=[
'e+:sel'], scale=1.00056, path=my_path)
60elif test ==
'scaleUp':
61 ma.scaleTrackMomenta(inputListNames=[
'e+:sel'], scale=1.001, path=my_path)
62elif test ==
'scaleDown':
63 ma.scaleTrackMomenta(inputListNames=[
'e+:sel'], scale=0.999, path=my_path)
64elif test ==
'Efficiency':
65 ma.removeTracksForTrackingEfficiencyCalculation(inputListNames=[
'e+:sel'], fraction=0.01, path=my_path)
68ma.reconstructDecay(decayString=
'J/psi:out -> e+:sel e-:sel',
77ma.variablesToNtuple(decayString=
'J/psi:out',
79 filename=f
'Jpsi_out_{test}.root',