Belle II Software  release-08-01-10
neutralHadron4MomentumCalculation.py
1 
8 
9 from basf2 import Path, process, B2INFO, statistics, find_file
10 from stdCharged import stdK, stdPi, stdPr
11 import modularAnalysis as ma
12 
13 mypath = Path()
14 ma.inputMdst(
15  environmentType='default',
16  filename=find_file(
17  'B02Dpnbar_D2kpipi.root',
18  data_type='examples',
19  silent=False),
20  path=mypath)
21 
22 stdK('higheff', path=mypath)
23 stdPi('higheff', path=mypath)
24 stdPr('higheff', path=mypath)
25 ma.reconstructDecay('D-:sig -> K+:higheff pi-:higheff pi-:higheff', 'abs(dM) < 0.05', path=mypath)
26 ma.fillParticleList('anti-n0:good', 'isFromECL > 0', path=mypath)
27 ma.reconstructDecayWithNeutralHadron('B0:sig -> D-:sig p+:higheff ^anti-n0:good', '', chargeConjugation=False, path=mypath)
28 
29 fname = 'neutralHadron4MomentumCalculation.root'
30 ma.variablesToNtuple('B0:sig', ['deltaE', 'M', 'daughter(2,p)', 'daughter(2,clusterE)'], treename='B0', filename=fname, path=mypath)
31 ma.variablesToNtuple('anti-n0:good', ['p'], treename='nbar', filename=fname, path=mypath)
32 
33 process(mypath)
34 B2INFO(statistics)