28 from modularAnalysis
import inputMdst
29 from modularAnalysis
import fillParticleList
30 from modularAnalysis
import reconstructDecay
31 from vertex
import kFit
32 from modularAnalysis
import matchMCTruth
33 from modularAnalysis
import variablesToNtuple
34 from stdPhotons
import stdPhotons
39 my_path = b2.create_path()
42 inputMdst(environmentType=
'default',
43 filename=b2.find_file(
'Y4SEventToetaY1S-evtgen_100.root',
'examples',
False),
49 fillParticleList(
'mu+:pid',
'muonID>0.1', path=my_path)
53 reconstructDecay(
"eta:gg -> gamma:loose gamma:loose",
"", path=my_path)
55 reconstructDecay(
"Upsilon:uu -> mu+:pid mu-:pid",
"M>2.", path=my_path)
58 reconstructDecay(
"Upsilon(4S) -> eta:gg Upsilon:uu",
"", path=my_path)
61 matchMCTruth(
'Upsilon(4S)', path=my_path)
65 kFit(
"Upsilon(4S)", 0.0,
'fourC', path=my_path)
72 muvars = vc.mc_truth + vc.pid + vc.kinematics
73 gvars = vc.kinematics + vc.mc_truth
74 etaanduvars = vc.inv_mass + vc.kinematics + vc.mc_truth
75 u4svars = vc.inv_mass + vc.kinematics + vc.mc_truth + \
76 vu.create_aliases([
'FourCFitProb',
'FourCFitChi2'],
'extraInfo(variable)',
"") + \
77 vu.create_aliases_for_selected(etaanduvars,
'Upsilon(4S) -> ^eta ^Upsilon') + \
78 vu.create_aliases_for_selected(muvars,
'Upsilon(4S) -> eta [Upsilon -> ^mu+ ^mu-]') + \
79 vu.create_aliases_for_selected(gvars,
'Upsilon(4S) -> [eta -> ^gamma ^gamma] Upsilon')
82 output_file =
'B2A407-KFit-FourCFit.root'
84 filename=output_file, treename=
'Upsilon4s', path=my_path)