12An example script to reconstruct unspecified particles and the use of MC
13matching tools for inclusive analyses with sum-of-exclusive method.
20from modularAnalysis
import inputMdst, reconstructDecay, matchMCTruth, \
21 copyLists, variablesToNtuple
23from variables
import variables
as vm
24from stdCharged
import stdE, stdK, stdPi
25from stdPi0s
import stdPi0s
27mypath = basf2.create_path()
28testinput = basf2.find_file(
'analysis/tests/mdst.root')
29inputMdst(testinput, path=mypath)
32stdE(
"loose", path=mypath)
33stdK(
"loose", path=mypath)
34stdPi(
"loose", path=mypath)
36reconstructDecay(
"@Xsd:0 -> K+:loose pi-:loose",
"", path=mypath)
37reconstructDecay(
"@Xsd:1 -> K+:loose pi-:loose pi0:all",
"", path=mypath)
39copyLists(
"Xsd:comb", [
"Xsd:0",
"Xsd:1"], path=mypath)
42reconstructDecay(
"B0:inclusive -> Xsd:comb e+:loose e-:loose",
43 "5.2 < Mbc < 5.3", path=mypath)
45matchMCTruth(
"B0:inclusive", path=mypath)
47interesting_variables = [
'isSignal',
"Mbc",
"deltaE",
"isUnspecified"]
48interesting_variables += create_aliases_for_selected(
49 [
"px",
"py",
"pz",
"E",
"isSignal",
"mcErrors",
"isUnspecified"],
50 "B0:inclusive -> ^Xsd:comb ^e+:loose ^e-:loose")
57print(basf2.statistics)