23 from modularAnalysis
import inputMdst
24 from modularAnalysis
import fillParticleList
25 from modularAnalysis
import reconstructDecay
26 from modularAnalysis
import matchMCTruth
27 from kinfit
import UnmeasuredfitKinematic1C
28 from modularAnalysis
import variablesToNtuple
33 mypath = b2.create_path()
35 b2.set_log_level(b2.LogLevel.WARNING)
38 inputMdst(filename=b2.find_file(
'darkphotonmumu_mdst.root',
'examples',
False),
42 fillParticleList(
'mu-:z0',
'chiProb > 0.001 and p > 1.0', path=mypath)
43 fillParticleList(
'mu-:z0fit',
'chiProb > 0.001 and p > 1.0', path=mypath)
46 reconstructDecay(
'Z0:mm_rec -> mu+:z0 mu-:z0',
'9.0 < M < 11.0', path=mypath)
47 reconstructDecay(
'Z0:mm_kinfit -> mu+:z0fit mu-:z0fit',
'9.0 < M < 11.0', path=mypath)
50 matchMCTruth(
'Z0:mm_rec', path=mypath)
51 matchMCTruth(
'Z0:mm_kinfit', path=mypath)
54 UnmeasuredfitKinematic1C(
'Z0:mm_kinfit', path=mypath)
58 muvars = vc.kinematics + vc.mc_truth + vc.mc_kinematics + vc.momentum_uncertainty
59 z0vars = vc.inv_mass + vc.kinematics + vc.mc_kinematics + vc.mc_truth + \
60 vu.create_aliases_for_selected(muvars,
'Z0 -> ^mu+ ^mu-')
65 'OrcaKinFitErrorCode',
66 'OrcaKinFitUnmeasuredTheta',
67 'OrcaKinFitUnmeasuredPhi',
68 'OrcaKinFitUnmeasuredE'
72 output_file =
'B2A421-Orcakinfit_1CFit.root'
74 filename=output_file, treename=
'Z0_mm_rec', path=mypath)
76 filename=output_file, treename=
'Z0_mm_kinfit', path=mypath)