14 import modularAnalysis
as ma
15 import variables
as va
18 from b2biiConversion
import convertBelleMdstToBelleIIMdst
20 os.environ[
"USE_GRAND_REPROCESS_DATA"] =
"1"
21 os.environ[
"PGUSER"] =
"g0db"
24 main = b2.create_path()
25 inputfile = b2.find_file(
26 "b2bii_input_evtgen_exp_07_BptoD0pip-D0toKpipi0-0.mdst",
"examples",
False
28 convertBelleMdstToBelleIIMdst(inputfile, path=main)
34 ma.fillParticleList(
"pi+:sig",
"atcPIDBelle(3,2)<0.4", path=main)
35 ma.fillParticleList(
"K+:sig",
"atcPIDBelle(3,2)>0.6", path=main)
38 va.variables.addAlias(
"Lkpi",
"atcPIDBelle(3,2)")
42 "D0:Kpipi0 -> K-:sig pi+:sig pi0:mdst", cut=
"1.7 < M < 2.0", path=main
45 "B+:D0pi -> anti-D0:Kpipi0 pi+:sig",
46 cut=
"4.8 < Mbc >5.2 and abs(deltaE) < 0.15",
50 ma.matchMCTruth(
"B+:D0pi", path=main)
56 standard_vars = vc.kinematics + vc.mc_kinematics + vc.mc_truth + vc.inv_mass
57 b_vars += vc.deltae_mbc
58 b_vars += standard_vars
61 b_vars += vu.create_aliases_for_selected(
63 "B+ -> [ ^D0 -> ^K- ^pi+ ^pi0] ^pi+",
64 prefix=[
"D0",
"K",
"pip1",
"pi0",
"pip2"],
69 [
"eIDBelle",
"muIDBelleQuality",
"muIDBelle",
"Lkpi"]
74 b_vars += vu.create_aliases_for_selected(
75 belle1pid,
"B+ -> [ D0 -> ^K- ^pi+ pi0] ^pi+", prefix=[
"K",
"pip1",
"pip2"]
79 "B+:D0pi", b_vars, filename=
"B2BII_B2D0pi_D2Kpipi0.root", path=main
83 main.add_module(
"Progress")