4import modularAnalysis
as ma
7runningOnMC = snakemake.params.runningOnMC
9inputjson = snakemake.input.inputfileList
10outname = snakemake.output[0]
12mypath = b2.create_path()
13with open(inputjson)
as f:
14 inputMdstList = json.load(f)
16ma.inputMdstList(filelist=inputMdstList, path=mypath)
18ma.fillParticleList(decayString=
'K+:my', cut=
"dr < 0.5 and abs(dz) < 3 and thetaInCDCAcceptance and kaonID > 0.01", path=mypath)
19ma.fillParticleList(decayString=
'pi+:my', cut=
"dr < 0.5 and abs(dz) < 3 and thetaInCDCAcceptance", path=mypath)
21ma.reconstructDecay(decayString=
"D-:K2Pi -> K+:my pi-:my pi-:my", cut=
"1.844 < M < 1.894", path=mypath)
23ma.reconstructDecay(decayString=
'B0:PiD-toK2Pi -> D-:K2Pi pi+:my', cut=
'5.0 < Mbc and abs(deltaE) < 1.0', path=mypath)
24vx.treeFit(
'B0:PiD-toK2Pi', 0, path=mypath, updateAllDaughters=
False, ipConstraint=
True, massConstraint=[411])
27 ma.matchMCTruth(list_name=
'B0:PiD-toK2Pi', path=mypath)
29some_variables = [
'Mbc',
'deltaE']
30ma.variablesToNtuple(decayString=
'B0:PiD-toK2Pi', variables=some_variables,
31 filename=outname, path=mypath, treename=
'BtoPiDtoKPiPi')