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