33from modularAnalysis
import inputMdst
34from modularAnalysis
import fillParticleList
35from modularAnalysis
import reconstructDecay
36from vertex
import kFit
37from modularAnalysis
import matchMCTruth
38from modularAnalysis
import variablesToNtuple
39from stdPhotons
import stdPhotons
44my_path = b2.create_path()
47inputMdst(filename=b2.find_file(
'Y4SEventToetaY1S-evtgen_100.root',
'examples',
False),
53fillParticleList(
'mu+:pid',
'muonID>0.1', path=my_path)
57reconstructDecay(
"eta:gg -> gamma:loose gamma:loose",
"", path=my_path)
59reconstructDecay(
"Upsilon:uu -> mu+:pid mu-:pid",
"M>2.", path=my_path)
62reconstructDecay(
"Upsilon(4S) -> eta:gg Upsilon:uu",
"", path=my_path)
65matchMCTruth(
'Upsilon(4S)', path=my_path)
69kFit(
"Upsilon(4S)", 0.0,
'fourC', path=my_path)
76muvars = vc.mc_truth + vc.pid + vc.kinematics
77gvars = vc.kinematics + vc.mc_truth
78etaanduvars = vc.inv_mass + vc.kinematics + vc.mc_truth
79u4svars = vc.inv_mass + vc.kinematics + vc.mc_truth + \
80 vu.create_aliases([
'FourCFitProb',
'FourCFitChi2'],
'extraInfo({variable})',
"") + \
81 vu.create_aliases_for_selected(etaanduvars,
'Upsilon(4S) -> ^eta ^Upsilon') + \
82 vu.create_aliases_for_selected(muvars,
'Upsilon(4S) -> eta [Upsilon -> ^mu+ ^mu-]') + \
83 vu.create_aliases_for_selected(gvars,
'Upsilon(4S) -> [eta -> ^gamma ^gamma] Upsilon')
86output_file =
'B2A407-KFit-FourCFit.root'
88 filename=output_file, treename=
'Upsilon4s', path=my_path)