27 import modularAnalysis
as ma
28 import charmFlavorTagger
as cft
37 b2.conditions.append_globaltag(
'analysis_tools_light-2302-genetta')
40 ma.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",
59 ma.matchMCTruth(list_name=
'D0:sig', path=cft_path)
62 ma.buildRestOfEvent(target_list_name=
'D0:sig',
66 cft.charmFlavorTagger(
71 d_vars = vc.kinematics+vc.mc_truth+[
"CFT_qr",
"CFT_prob"]
72 d_vars += vu.create_aliases_for_selected(
73 list_of_variables=vc.kinematics
75 decay_string=
"D0 -> ^K- ^pi+",
79 output_file =
'B2A913-CharmFlavorTagger.root'
80 ma.variablesToNtuple(decayString=
'D0:sig',