30 from modularAnalysis
import inputMdst
31 from modularAnalysis
import fillParticleList
32 from modularAnalysis
import reconstructDecay
33 from modularAnalysis
import matchMCTruth
34 from kinfit
import fitKinematic4C
35 from modularAnalysis
import variablesToNtuple
38 from stdPhotons
import stdPhotons
41 mypath = b2.create_path()
44 inputMdst(filename=b2.find_file(
'Y4SEventToetaY1S-evtgen_100.root',
'examples',
False),
49 fillParticleList(
'mu+:pid',
'chiProb > 0.001 and p > 1.0', path=mypath)
52 reconstructDecay(
"eta:gg -> gamma:loose gamma:loose",
"", path=mypath)
54 reconstructDecay(
"Upsilon:uu -> mu+:pid mu-:pid",
"M>2.", path=mypath)
57 reconstructDecay(
"Upsilon(4S) -> eta:gg Upsilon:uu",
"", path=mypath)
58 reconstructDecay(
"Upsilon(4S):4c -> eta:gg Upsilon:uu",
"", path=mypath)
61 matchMCTruth(
'Upsilon(4S)', path=mypath)
62 matchMCTruth(
'Upsilon(4S):4c', path=mypath)
65 fitKinematic4C(
"Upsilon(4S):4c", path=mypath)
68 muvars = vc.mc_truth + vc.pid + vc.kinematics
69 gvars = vc.kinematics + vc.mc_truth + vc.inv_mass
70 etaanduvars = vc.inv_mass + vc.kinematics + vc.mc_truth
71 u4svars = vc.inv_mass + vc.kinematics + vc.mc_truth +\
72 vu.create_aliases([
'FourCFitProb',
'FourCFitChi2'],
'extraInfo({variable})',
"") + \
73 vu.create_aliases_for_selected(etaanduvars,
'Upsilon(4S) -> ^eta ^Upsilon') + \
74 vu.create_aliases_for_selected(muvars,
'Upsilon(4S) -> eta [Upsilon -> ^mu+ ^mu-]') + \
75 vu.create_aliases_for_selected(gvars,
'Upsilon(4S) -> [eta -> ^gamma ^gamma] Upsilon')
77 u4svars_4c = u4svars + [
'OrcaKinFitProb',
'OrcaKinFitChi2',
'OrcaKinFitErrorCode']
79 u4svars_def = u4svars + [
'chiProb']
83 output_file =
'B2A423-Orcakinfit_4CFit.root'
85 filename=output_file, treename=
'Upsilon4s', path=mypath)
87 filename=output_file, treename=
'Upsilon4s_4c', path=mypath)