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