33 from modularAnalysis
import inputMdst
34 from modularAnalysis
import fillParticleList
35 from modularAnalysis
import reconstructDecay
36 from vertex
import kFit
37 from modularAnalysis
import matchMCTruth
38 from modularAnalysis
import variablesToNtuple
39 from stdPhotons
import stdPhotons
44 my_path = b2.create_path()
47 inputMdst(filename=b2.find_file(
'Y4SEventToetaY1S-evtgen_100.root',
'examples',
False),
53 fillParticleList(
'mu+:pid',
'muonID>0.1', path=my_path)
57 reconstructDecay(
"eta:gg -> gamma:loose gamma:loose",
"", path=my_path)
59 reconstructDecay(
"Upsilon:uu -> mu+:pid mu-:pid",
"M>2.", path=my_path)
62 reconstructDecay(
"Upsilon(4S) -> eta:gg Upsilon:uu",
"", path=my_path)
65 matchMCTruth(
'Upsilon(4S)', path=my_path)
69 kFit(
"Upsilon(4S)", 0.0,
'fourC', path=my_path)
76 muvars = vc.mc_truth + vc.pid + vc.kinematics
77 gvars = vc.kinematics + vc.mc_truth
78 etaanduvars = vc.inv_mass + vc.kinematics + vc.mc_truth
79 u4svars = 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')
86 output_file =
'B2A407-KFit-FourCFit.root'
88 filename=output_file, treename=
'Upsilon4s', path=my_path)