5 import modularAnalysis
as ma
11 filenumber = sys.argv[1]
18 filelist=[b2.find_file(f
"starterkit/2021/1111540100_eph3_BGx0_{filenumber}.root",
"examples")],
25 "electronID > 0.1 and dr < 0.5 and abs(dz) < 2 and thetaInCDCAcceptance",
32 "J/psi:ee -> e+:uncorrected e-:uncorrected", cut=
"dM < 0.11", path=main
37 "B0 -> J/psi:ee K_S0:merged",
38 cut=
"Mbc > 5.2 and abs(deltaE) < 0.15",
43 ma.matchMCTruth(
"B0", path=main)
48 standard_vars = vc.kinematics + vc.mc_kinematics + vc.mc_truth
49 b_vars += vc.deltae_mbc
50 b_vars += standard_vars
53 fs_vars = vc.pid + vc.track + vc.track_hits + standard_vars
54 b_vars += vu.create_aliases_for_selected(
56 "B0 -> [J/psi -> ^e+ ^e-] [K_S0 -> ^pi+ ^pi-]",
57 prefix=[
"ep",
"em",
"pip",
"pim"],
61 jpsi_ks_vars = vc.inv_mass + standard_vars
62 b_vars += vu.create_aliases_for_selected(jpsi_ks_vars,
"B0 -> ^J/psi ^K_S0")
66 cmskinematics = vu.create_aliases(
67 vc.kinematics,
"useCMSFrame({variable})",
"CMS"
69 b_vars += vu.create_aliases_for_selected(
70 cmskinematics,
"^B0 -> [^J/psi -> ^e+ ^e-] [^K_S0 -> ^pi+ ^pi-]"
77 filename=
"Bd2JpsiKS.root",
def stdKshorts(prioritiseV0=True, fitter='TreeFit', path=None, updateAllDaughters=False, writeOut=False)