27import modularAnalysis
as ma
28import charmFlavorTagger
as cft
37b2.conditions.append_globaltag(ma.getAnalysisGlobaltag())
40ma.inputMdst(filename=b2.find_file(
'Dst2D0pi.root',
'examples',
False),
45 "pi+:D0",
"thetaInCDCAcceptance and dr < 1 and abs(dz) < 3 and pionID>0.1", path=cft_path
48 "K+:D0",
"thetaInCDCAcceptance and dr < 1 and abs(dz) < 3 and kaonID>0.1", path=cft_path
53 decayString=
"D0:sig -> K-:D0 pi+:D0",
54 cut=
"1.8 < InvM < 1.9",
59ma.matchMCTruth(list_name=
'D0:sig', path=cft_path)
62ma.buildRestOfEvent(target_list_name=
'D0:sig',
71d_vars = vc.kinematics+vc.mc_truth+[
"CFT_qr",
"CFT_prob"]
72d_vars += vu.create_aliases_for_selected(
73 list_of_variables=vc.kinematics
75 decay_string=
"D0 -> ^K- ^pi+",
79output_file =
'B2A913-CharmFlavorTagger.root'
80ma.variablesToNtuple(decayString=
'D0:sig',