12An example script to find a specific decay chain at MC level.
19from modularAnalysis
import fillParticleListFromMC, inputMdst, reconstructMCDecay, variablesToNtuple
20from variables
import variables
as vm
22basf2.set_log_level(basf2.LogLevel.DEBUG)
24mypath = basf2.create_path()
25testinput = basf2.find_file(
'analysis/tests/mdst.root')
26inputMdst(testinput, path=mypath)
28fillParticleListFromMC(
'K+:primaryMC',
'mcPrimary', path=mypath)
29fillParticleListFromMC(
'pi+:primaryMC',
'mcPrimary', path=mypath)
30fillParticleListFromMC(
'e+:primaryMC',
'mcPrimary', path=mypath)
31fillParticleListFromMC(
'nu_e:primaryMC',
'mcPrimary', path=mypath)
32fillParticleListFromMC(
'gamma:primaryMC',
'mcPrimary', path=mypath)
36 'B+:DstENu =direct=> [anti-D*0 =direct=> [anti-D0 =direct=> K+:primaryMC pi-:primaryMC pi0:gg] pi0:gg ]\
37 e+:primaryMC nu_e:primaryMC ',
53interesting_variables = [
'isSignal',
"Mbc",
"deltaE",
"mcErrors"]
60print(basf2.statistics)