6 <output>CPVToolsOutput.root</output>
7 <contact>Fernando Abudinen; abudinen@mpp.mpg.de</contact>
8 <description>This file employs all the time dependent CPV analysis tools. It reconstructs B0sig->J/PsiKs on the signal side
9 and applies the flavor tagger on the ROE. The vertex of B0sig is reconstructed and the vertex of B0tag is reconstructed
10 with the TagV module. </description>
15 import modularAnalysis
as ma
16 import flavorTagger
as ft
24 cp_val_path = b2.Path()
26 inputFile = b2.find_file(filename=
'analysis/mdst11_BGx1_b2jpsiks.root', data_type=
'validation')
27 ma.inputMdst(environmentType=
'default', filename=inputFile, path=cp_val_path)
32 ma.fillParticleList(decayString=
'pi+:all', cut=
'', path=cp_val_path)
33 ma.fillParticleList(decayString=
'mu+:all', cut=
'', path=cp_val_path)
35 ma.reconstructDecay(decayString=
'K_S0:pipi -> pi+:all pi-:all', cut=
'dM<0.25', path=cp_val_path)
36 ma.reconstructDecay(decayString=
'J/psi:mumu -> mu+:all mu-:all', cut=
'dM<0.11', path=cp_val_path)
37 ma.reconstructDecay(decayString=
'B0:jpsiks -> J/psi:mumu K_S0:pipi', cut=
'Mbc > 5.2 and abs(deltaE)<0.2', path=cp_val_path)
39 ma.matchMCTruth(list_name=
'B0:jpsiks', path=cp_val_path)
42 ma.buildRestOfEvent(target_list_name=
'B0:jpsiks', path=cp_val_path)
45 b2.use_central_database(
"analysis_tools_release-03-01-00")
49 particleLists=[
'B0:jpsiks'],
50 weightFiles=
'B2nunubarBGx1',
53 vx.raveFit(list_name=
'B0:jpsiks', conf_level=0.0,
54 decay_string=
'B0:jpsiks -> [J/psi:mumu -> ^mu+ ^mu-] K_S0', constraint=
'', path=cp_val_path)
55 vx.TagV(list_name=
'B0:jpsiks', MCassociation=
'breco', path=cp_val_path)
58 fs_vars = vc.pid + vc.track + vc.track_hits + vc.mc_truth
59 jpsiandk0s_vars = vc.mc_truth
60 vertex_vars = vc.vertex + vc.mc_vertex + vc.kinematics + vc.mc_kinematics
61 bvars = vc.reco_stats + \
64 vc.roe_multiplicities + \
69 vu.create_aliases_for_selected(list_of_variables=fs_vars,
70 decay_string=
'B0 -> [J/psi -> ^mu+ ^mu-] [K_S0 -> ^pi+ ^pi-]') + \
71 vu.create_aliases_for_selected(list_of_variables=jpsiandk0s_vars,
72 decay_string=
'B0 -> [^J/psi -> mu+ mu-] [^K_S0 -> pi+ pi-]') + \
73 vu.create_aliases_for_selected(list_of_variables=vertex_vars,
74 decay_string=
'B0 -> [^J/psi -> ^mu+ ^mu-] [^K_S0 -> ^pi+ ^pi-]')
77 ma.variablesToNtuple(decayString=
'B0:jpsiks',
79 filename=
'../CPVToolsOutput.root',
83 ma.summaryOfLists(particleLists=[
'B0:jpsiks'], path=cp_val_path)
86 b2.process(cp_val_path)