7 An example script to find a specific decay chain at MC level.
10 __authors__ =
"Yo Sato"
13 from ROOT
import Belle2
14 from modularAnalysis
import inputMdst, fillParticleListFromMC, variablesToNtuple, reconstructMCDecay, fillParticleList
15 from variables
import variables
as vm
17 basf2.set_log_level(basf2.LogLevel.DEBUG)
19 mypath = basf2.create_path()
21 inputMdst(
"default", testinput, path=mypath)
23 fillParticleListFromMC(
'K+:MC',
'mcPrimary', path=mypath)
24 fillParticleListFromMC(
'pi+:MC',
'mcPrimary', path=mypath)
25 fillParticleListFromMC(
'e+:MC',
'mcPrimary', path=mypath)
26 fillParticleListFromMC(
'nu_e:MC',
'mcPrimary', path=mypath)
27 fillParticleListFromMC(
'gamma:MC',
'mcPrimary', path=mypath)
31 'B+:DstENu =direct=> [anti-D*0 =direct=> [anti-D0 =direct=> K+:MC pi-:MC pi0:gg] pi0:gg ] e+:MC nu_e:MC ',
47 interesting_variables = [
'isSignal',
"Mbc",
"deltaE",
"mcErrors"]
54 print(basf2.statistics)