2 from basf2
import create_path, register_module, LogLevel, process, statistics
5 from stdCharged
import stdK, stdPi
6 import modularAnalysis
as ma
11 NtupleFilePath =
"/nfs/dust/belle2/user/floschw/Data/example_Ntuple_1000.root"
12 ROOTFilePath =
"/nfs/dust/belle2/user/floschw/Data/simulation/sim_1000.root"
17 path.add_module(
"RootInput",
18 inputFileName=ROOTFilePath,
19 excludeBranchNames=[
"TracksToMCParticles"])
22 chi2Matcher = register_module(
"Chi2MCTrackMatcher")
28 CutOffs = [128024, 95, 173, 424, 90, 424]
29 chi2Matcher.param(
"CutOffs", CutOffs)
33 chi2Matcher.param(
"linalg",
False)
36 chi2Matcher.logging.log_level = LogLevel.DEBUG
37 chi2Matcher.logging.debug_level = 30
40 path.add_module(chi2Matcher)
45 stdPi(
"all", path=path)
46 stdK(
"good", path=path)
47 decaystring =
"anti-B0 -> [D*+ -> [[D0 -> K-:good pi+:good] pi+:good] e-:good anit-nu_e"
49 ma.reconstructDecay(
"D0 -> K-:good pi+:all",
"1.85466<M<1.875", path=path)
50 ma.matchMCTruth(
"D0", path=path)
53 ma.reconstructDecay(
"D*+ -> D0 pi+:all",
"", path=path)
54 ma.matchMCTruth(
"D*+", path=path)
61 "isSignalAcceptMissing",
102 "charge"] + vc.mc_vertex
105 variables = vu.create_aliases(listofvariables,
"{variable}",
"Dstar")
106 variables += vu.create_aliases(listofvariables,
"daughter(0,{variable})",
"D0")
107 variables += vu.create_aliases(listofvariables,
"daughter(1,{variable})",
"Dstarpi")
110 ma.variablesToNtuple(
"D*+",
112 filename=NtupleFilePath,