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