6 <input>../TCPV.udst.root</input>
7 <output>TCPV_Validation.root</output>
8 <contact>reem.rasheed@iphc.cnrs.fr</contact>
12 import modularAnalysis
as ma
13 from stdV0s
import stdKshorts
14 from stdPhotons
import stdPhotons
15 from stdCharged
import stdPi
17 from ROOT
import gROOT
20 gROOT.ProcessLine(
".include " + sysconfig.get_path(
"include"))
24 tcpvskimpath = b2.Path()
27 fileList = [
'../TCPV.udst.root']
28 ma.inputMdstList(
'default', fileList, path=tcpvskimpath)
31 stdKshorts(path=tcpvskimpath)
33 stdPi(
'all', path=tcpvskimpath)
34 ma.applyCuts(
'gamma:loose',
'1.4 < E < 4', path=tcpvskimpath)
36 ma.reconstructDecay(Kres +
":all -> K_S0:merged pi+:all pi-:all ",
"", path=tcpvskimpath)
38 ma.reconstructDecay(
"B0:signal -> " + Kres +
":all gamma:loose",
"Mbc > 5.2 and deltaE < 0.5 and deltaE > -0.5", path=tcpvskimpath)
40 ma.matchMCTruth(
'B0:signal', path=tcpvskimpath)
42 variableshisto = [(
'deltaE', 100, -0.5, 0.5), (
'Mbc', 100, 5.2, 5.3)]
43 ma.variablesToHistogram(
'B0:signal', variableshisto, filename=
'TCPV_Validation.root', path=tcpvskimpath)
46 b2.process(tcpvskimpath)