7 An example script to reconstruct unspecified particles and the use of MC
8 matching tools for inclusive analyses with sum-of-exclusive method.
11 __authors__ =
"Sam Cunliffe and Yo Sato"
14 from ROOT
import Belle2
15 from modularAnalysis
import inputMdst, reconstructDecay, matchMCTruth, \
16 copyLists, variablesToNtuple
18 from variables
import variables
as vm
19 from stdCharged
import stdE, stdK, stdPi
20 from stdPi0s
import stdPi0s
22 mypath = basf2.create_path()
24 inputMdst(
"default", testinput, path=mypath)
27 stdE(
"loose", path=mypath)
28 stdK(
"loose", path=mypath)
29 stdPi(
"loose", path=mypath)
31 reconstructDecay(
"@Xsd:0 -> K+:loose pi-:loose",
"", path=mypath)
32 reconstructDecay(
"@Xsd:1 -> K+:loose pi-:loose pi0:all",
"", path=mypath)
34 copyLists(
"Xsd:comb", [
"Xsd:0",
"Xsd:1"], path=mypath)
37 reconstructDecay(
"B0:inclusive -> Xsd:comb e+:loose e-:loose",
38 "5.2 < Mbc < 5.3", path=mypath)
40 matchMCTruth(
"B0:inclusive", path=mypath)
42 interesting_variables = [
'isSignal',
"Mbc",
"deltaE",
"isUnspecified"]
43 interesting_variables += create_aliases_for_selected(
44 [
"px",
"py",
"pz",
"E",
"isSignal",
"mcErrors",
"isUnspecified"],
45 "B0:inclusive -> ^Xsd:comb ^e+:loose ^e-:loose")
52 print(basf2.statistics)