-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3_Reconstruction_e.py
407 lines (320 loc) · 16.8 KB
/
3_Reconstruction_e.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# +
#input_file = [''] # for grid
# basf2 command line:
# bsub -q l 'basf2 /current/directory/3_Reconstruction_e.py D_l 1 0.001'
import sys
decaymode = sys.argv[1]
M = sys.argv[2]
W = sys.argv[3]
input_file = f'/home/belle/zhangboy/Danny_HW/B2{decaymode}_N/MC/N_e_mass{M}_width{W}.root'
output_file = f'/home/belle/zhangboy/Danny_HW/B2{decaymode}_N/Ntuples/N_e_mass{M}_width{W}_2.root'
#output_hash = f'/home/belle/zhangboy/Danny_HW/B2{decaymode}_N/Ntuples/hashmap_N_e_mass{M}_width{W}.root'
import basf2 as b2
import modularAnalysis as ma
from variables import variables as vm
import variables.collections as vc
import variables.utils as vu
import vertex as vx
# Define the path
main_path = b2.Path()
ma.inputMdstList(environmentType='default', filelist=input_file, path=main_path)
analysis_gt = ma.getAnalysisGlobaltag()
b2.B2INFO(f"Appending analysis GT: {analysis_gt}")
b2.conditions.append_globaltag(analysis_gt)
goodTrack = 'abs(dz)<4 and dr<2 and pt>0.1 and E<5.5 and thetaInCDCAcceptance and nCDCHits>0'
vm.addAlias("pionID_binary_noSVD", "binaryPID_noSVD(211, 321)")
vm.addAlias("kaonID_binary_noSVD", "binaryPID_noSVD(321, 211)")
ma.fillParticleList('pi+:mypi', cut=goodTrack + ' and pionID_binary_noSVD > 0.1', path=main_path)
ma.fillParticleList('K-:myk', cut=goodTrack + ' and kaonID_binary_noSVD > 0.1', path=main_path)
# if decaymode == 'D_tau':
# ma.fillParticleListFromMC('nu_tau:B', 'abs(genMotherPDG)==511',skipNonPrimaryDaughters=True, path=main_path)
# ma.fillParticleListFromMC('tau-:B', 'abs(genMotherPDG)==511',skipNonPrimaryDaughters=True, path=main_path)
# ma.fillParticleListFromMC('nu_tau:tau', 'abs(genMotherPDG)==15',skipNonPrimaryDaughters=True, path=main_path)
# ma.fillParticleListFromMC('nu_e:tau', 'abs(genMotherPDG)==15',skipNonPrimaryDaughters=True, path=main_path)
# elif decaymode == 'D_l':
# ma.fillParticleListFromMC('nu_e:B', 'abs(genMotherPDG)==511',skipNonPrimaryDaughters=True, path=main_path)
# ma.fillParticleListFromMC('e-:B', 'abs(genMotherPDG)==511',skipNonPrimaryDaughters=True, path=main_path)
# ----------------------------------
# Fill example standard lepton list.
# ----------------------------------
# For electrons, we show the case in which a Bremsstrahlung correction
# is applied first to get the 4-momentum right,
# and the resulting particle list is passed as input to the stdE list creator.
ma.fillParticleList("e+:uncorrected",
cut="dr < 2 and abs(dz) < 4", # NB: whichever cut is set here, will be inherited by the std electrons.
path=main_path)
ma.fillParticleList("gamma:bremsinput", cut="0.05<clusterE<1",
loadPhotonBeamBackgroundMVA=True, path=main_path)
ma.applyCuts('gamma:bremsinput','beamBackgroundSuppression>0.2', path=main_path)
ma.correctBremsBelle(outputListName="e+:corrected",
inputListName="e+:uncorrected",
gammaListName="gamma:bremsinput",
path=main_path)
vm.addAlias("isBremsCorrected", "extraInfo(bremsCorrected)")
ma.applyChargedPidMVA(['e+:corrected'], path=main_path, trainingMode=1,
chargeIndependent=False, binaryHypoPDGCodes=(0, 0))
#ma.applyChargedPidMVA(['e+:corrected'], path=main_path, trainingMode=0,
# chargeIndependent=False, binaryHypoPDGCodes=(11, 211))
ma.fillParticleList("mu+:mymu",
cut="dr<2 and abs(dz)<4 and thetaInCDCAcceptance and inKLMAcceptance",
path=main_path)
ma.applyChargedPidMVA(['mu+:mymu'], path=main_path, trainingMode=1,
chargeIndependent=False, binaryHypoPDGCodes=(0, 0))
# ------------------------------------------------------------
# Add extra cuts on the standard lepton lists and lepton veto.
# ------------------------------------------------------------
ma.applyCuts(f"e-:corrected", "pidChargedBDTScore(11, ALL)>0.9 and pt>0.2 and thetaInCDCAcceptance and nCDCHits>0 and nPXDHits>0", path=main_path)
ma.applyCuts(f"mu-:mymu", "pidChargedBDTScore(13, ALL)>0.9", path=main_path)
# select events only containing 1 lepton
#ma.applyEventCuts('formula(nParticlesInList(e-:corrected) + nParticlesInList(mu-:mymu)) == 1', path=main_path)
vm.addAlias('nElectrons90', 'nParticlesInList(e-:corrected)')
vm.addAlias('nMuons90', 'nParticlesInList(mu-:mymu)')
# Event Kinematics
ma.buildEventKinematics(fillWithMostLikely=True,path=main_path)
# Reconstruct D
Dcuts = '1.855 <M< 1.885'
ma.reconstructDecay('D+:K2pi -> K-:myk pi+:mypi pi+:mypi', cut=Dcuts, path=main_path)
ma.variablesToExtraInfo('D+:K2pi', variables={'M':'D_BFM','InvM':'D_BFInvM'},option=0, path=main_path)
vm.addAlias('BFM','extraInfo(D_BFM)')
vm.addAlias('BFInvM','extraInfo(D_BFInvM)')
Daughters_vars = []
for variable in ['kaonID_binary_noSVD','pionID_binary_noSVD','dr','dz','nCDCHits','nPXDHits','pValue']:
vm.addAlias(f'K_{variable}', f'daughter(0, {variable})')
vm.addAlias(f'pi1_{variable}', f'daughter(1, {variable})')
vm.addAlias(f'pi2_{variable}', f'daughter(2, {variable})')
Daughters_vars.append(f'K_{variable}')
Daughters_vars.append(f'pi1_{variable}')
Daughters_vars.append(f'pi2_{variable}')
# vertex fitting D, save vtx variables before the 2nd freefit
vx.treeFit('D+:K2pi', conf_level=0.00, updateAllDaughters=True, massConstraint=['D+'], ipConstraint=False, path=main_path)
vm.addAlias('vtxChi2','extraInfo(chiSquared)')
vm.addAlias('vtxNDF','extraInfo(ndf)')
vm.addAlias('vtxReChi2','formula(vtxChi2/vtxNDF)')
vm.addAlias('flightDistanceSig','formula(flightDistance/flightDistanceErr)')
vm.addAlias('flightTimeSig','formula(flightTime/flightTimeErr)')
ma.variablesToExtraInfo('D+:K2pi', variables={'flightDistanceSig':'D_A1FflightDistanceSig'},option=0, path=main_path)
vm.addAlias('A1FflightDistanceSig_IP','extraInfo(D_A1FflightDistanceSig)')
vertex_vars = ['vtxReChi2','vtxNDF','flightDistanceSig','flightTimeSig',]
ma.applyCuts('D+:K2pi', 'vtxReChi2<13', path=main_path)
# Reconstruct B
ma.reconstructDecay('B0:D3e -> D-:K2pi e+:corrected e-:corrected e+:corrected ?addbrems ?nu', cut='', path=main_path)
vx.treeFit('B0:D3e', conf_level=-1, updateAllDaughters=False, massConstraint=[], ipConstraint=True, path=main_path)
# Get the distance between vertices De/IP and D+
vm.addAlias('vtxDDSig', 'vertexDistanceOfDaughterSignificance(0,0)')
#vm.addAlias('vtxIPDSig', 'vertexDistanceOfDaughterSignificance(0)')
# Calculate DOCA(D,l)
ma.calculateDistance('B0:D3e', 'B0:D3e -> ^D-:K2pi ^e+:corrected e-:corrected e+:corrected', "vertextrack", path=main_path)
vm.addAlias('DistanceSig', 'formula( extraInfo(CalculatedDistance) / extraInfo(CalculatedDistanceError) )')
def Distance_dic(target='sig_', kind='_vtx'):
return {'extraInfo(CalculatedDistance)':f'{target}Distance{kind}',
'extraInfo(CalculatedDistanceError)':f'{target}DistanceError{kind}',
'DistanceSig':f'{target}DistanceSig{kind}',
# 'extraInfo(CalculatedDistanceVector_X)':f'{target}DistanceVector_X{kind}',
# 'extraInfo(CalculatedDistanceCovMatrixXZ)':f'{target}DistanceCovMatrixXZ{kind}',
'daughterAngle(0, 1)':f'{target}daughterAngleLab{kind}',
'useCMSFrame(daughterAngle(0, 1))':f'{target}daughterAngleCMS{kind}'}
sigDe_DOCA_dic = Distance_dic('sig_','')
sigDe_DOCA = []
for key, value in sigDe_DOCA_dic.items():
vm.addAlias(value,key)
sigDe_DOCA.append(value)
# MC Truth Matching
ma.matchMCTruth('B0:D3e', path=main_path)
# generate the decay string
#main_path.add_module('ParticleMCDecayString', listName='B0:D3e', fileName=output_hash)
#vm.addAlias('DecayHash','extraInfo(DecayHash)')
#vm.addAlias('DecayHashEx','extraInfo(DecayHashExtended)')
# build the ROE
ma.fillParticleList('pi+:all', '', path=main_path)
ma.tagCurlTracks('pi+:all', mcTruth=True, selectorType='mva', path=main_path)
vm.addAlias('isCurl', 'extraInfo(isCurl)')
vm.addAlias('isTruthCurl', 'extraInfo(isTruthCurl)')
vm.addAlias('truthBundleSize', 'extraInfo(truthBundleSize)')
ma.fillParticleList('gamma:all', '', loadPhotonBeamBackgroundMVA=True,loadPhotonHadronicSplitOffMVA=True, path=main_path)
ma.buildRestOfEvent('B0:D3e',fillWithMostLikely=True,path=main_path)
loose_track = 'dr<10 and abs(dz)<20 and thetaInCDCAcceptance and E < 5.5'
loose_gamma = "0.05< clusterE < 5.5"
tight_track = f'nCDCHits>=0 and thetaInCDCAcceptance and pValue>=0.0005 and \
[pt<0.15 and formula(dr**2/36+dz**2/16)<1] or \
[0.15<pt<0.25 and formula(dr**2/49+dz**2/64)<1] or \
[0.25<pt<0.5 and formula(dr**2/49+dz**2/16)<1] or \
[0.5<pt<1 and formula(dr**2/25+dz**2/36)<1] or \
[pt>1 and formula(dr**2+dz**2)<1]'
tight_gamma = f'clusterE>0.05 and abs(clusterTiming)<formula(2*clusterErrorTiming) and abs(clusterTiming)<200 and \
beamBackgroundSuppression>0.05 and hadronicSplitOffSuppression>0.1 and minC2TDist>25'
roe_mask1 = ('my_mask', loose_track, loose_gamma)
ma.appendROEMasks('anti-B0:D3e', [roe_mask1], path=main_path)
# creates V0 particle lists and uses V0 candidates to update/optimize the Rest Of Event
ma.updateROEUsingV0Lists('anti-B0:D3e', mask_names='my_mask', default_cleanup=True, selection_cuts=None,
apply_mass_fit=True, fitter='treefit', path=main_path)
ma.updateROEMask("B0:D3e","my_mask",tight_track, tight_gamma, path=main_path)
# Load ROE as a particle and use a mask 'my_mask':
ma.fillParticleListFromROE('B0:tagFromROE', '', maskName='my_mask',
sourceParticleListName='anti-B0:D3e', path=main_path)
roe_path = b2.Path()
deadEndPath = b2.Path()
ma.signalSideParticleFilter('anti-B0:D3e', '', roe_path, deadEndPath)
ma.discardFromROEMasks('pi+:all', ['my_mask'], '[isCurl==1 or pt==0 or E>5.5] and isInRestOfEvent==1', path=roe_path)
main_path.for_each('RestOfEvent', 'RestOfEvents', roe_path)
# ROE variables
roe_kinematics = ["roeE(my_mask)", "roeP(my_mask)", "roePx(my_mask)",
"roePy(my_mask)","roePz(my_mask)","roePt(my_mask)",]
roe_MC_kinematics = ['roeMC_E','roeMC_M','roeMC_P',
'roeMC_PTheta','roeMC_Pt',
'roeMC_Px','roeMC_Py','roeMC_Pz',]
roe_Mbc_Deltae = ["roeMbc(my_mask)", "roeM(my_mask)","roeDeltae(my_mask)",]
roe_E_Q = ['roeCharge(my_mask)', 'roeNeextra(my_mask)','roeEextra(my_mask)',]
roe_multiplicities = ["nROE_Charged(my_mask)",'nROE_ECLClusters(my_mask)',
'nROE_NeutralECLClusters(my_mask)','nROE_KLMClusters',
'nROE_NeutralHadrons(my_mask)',"nROE_Photons(my_mask)",
'nROE_Tracks(my_mask)',]
vm.addAlias('nROE_e','nROE_Charged(my_mask, 11)')
vm.addAlias('nROE_mu','nROE_Charged(my_mask, 13)')
vm.addAlias('nROE_K','nROE_Charged(my_mask, 321)')
vm.addAlias('nROE_pi','nROE_Charged(my_mask, 211)')
roe_nCharged = ['nROE_e','nROE_mu','nROE_K','nROE_pi']
vm.addAlias('CMS0_weDeltae','weDeltae(my_mask,0)')
vm.addAlias('Lab1_weDeltae','weDeltae(my_mask,1)')
#Option for correctedB_deltae variable should only be 0/1 (CMS/LAB)
#Option for correctedB_mbc variable should only be 0/1/2 (CMS/LAB/CMS with factor)
vm.addAlias('CMS0_weMbc','weMbc(my_mask,0)')
vm.addAlias('Lab1_weMbc','weMbc(my_mask,1)')
vm.addAlias('CMS2_weMbc','weMbc(my_mask,2)')
vm.addAlias('CMS0_weMissM2','weMissM2(my_mask,0)')
vm.addAlias('CMS1_weMissM2','weMissM2(my_mask,1)')
vm.addAlias('CMS2_weMissM2','weMissM2(my_mask,2)')
vm.addAlias('CMS3_weMissM2','weMissM2(my_mask,3)')
vm.addAlias('CMS4_weMissM2','weMissM2(my_mask,4)')
vm.addAlias('Lab5_weMissM2','weMissM2(my_mask,5)')
vm.addAlias('Lab6_weMissM2','weMissM2(my_mask,6)')
vm.addAlias('CMS7_weMissM2','weMissM2(my_mask,7)')
#vm.addAlias('CMS0_weMissPTheta','weMissPTheta(my_mask,0)')
#vm.addAlias('CMS1_weMissPTheta','weMissPTheta(my_mask,1)')
#vm.addAlias('CMS2_weMissPTheta','weMissPTheta(my_mask,2)')
#vm.addAlias('CMS3_weMissPTheta','weMissPTheta(my_mask,3)')
#vm.addAlias('CMS4_weMissPTheta','weMissPTheta(my_mask,4)')
vm.addAlias('Lab5_weMissPTheta','weMissPTheta(my_mask,5)')
vm.addAlias('Lab6_weMissPTheta','weMissPTheta(my_mask,6)')
#vm.addAlias('CMS7_weMissPTheta','weMissPTheta(my_mask,7)')
vm.addAlias('CMS0_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 0)')
vm.addAlias('CMS1_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 1)')
vm.addAlias('CMS2_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 2)')
vm.addAlias('CMS3_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 3)')
vm.addAlias('CMS4_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 4)')
vm.addAlias('Lab5_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 5)')
vm.addAlias('Lab6_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 6)')
vm.addAlias('CMS7_weQ2lnuSimple', 'weQ2lnuSimple(my_mask, 7)')
we= ['CMS0_weDeltae','CMS0_weMbc','CMS2_weMbc','Lab5_weMissPTheta','Lab6_weMissPTheta']
we_vars = ['weMissM2', 'weQ2lnuSimple']
for var in we_vars:
for i in range(8):
if i in [5,6]:
we.append(f'Lab{i}_{var}')
elif i<8:
we.append(f'CMS{i}_{var}')
vm.addAlias('n_e','nDaughterCharged(11)')
vm.addAlias('n_mu','nDaughterCharged(13)')
vm.addAlias('n_K','nDaughterCharged(321)')
vm.addAlias('n_pi','nDaughterCharged(211)')
vm.addAlias('n_particle','nDaughterCharged()')
tag_nParticle = ['n_particle','n_e','n_mu','n_K','n_pi',
'nDaughterNeutralHadrons','nDaughterPhotons']
# fit B vertex on the tag-side
vx.TagV("B0:D3e", fitAlgorithm="Rave", maskName='my_mask', path=main_path)
# Continuum Suppression
ma.buildContinuumSuppression(list_name="anti-B0:D3e", roe_mask="my_mask", path=main_path)
vm.addAlias('KSFWV1','KSFWVariables(et)')
vm.addAlias('KSFWV2','KSFWVariables(mm2)')
vm.addAlias('KSFWV3','KSFWVariables(hso00)')
vm.addAlias('KSFWV4','KSFWVariables(hso01)')
vm.addAlias('KSFWV5','KSFWVariables(hso02)')
vm.addAlias('KSFWV6','KSFWVariables(hso03)')
vm.addAlias('KSFWV7','KSFWVariables(hso04)')
vm.addAlias('KSFWV8','KSFWVariables(hso10)')
vm.addAlias('KSFWV9','KSFWVariables(hso12)')
vm.addAlias('KSFWV10','KSFWVariables(hso14)')
vm.addAlias('KSFWV11','KSFWVariables(hso20)')
vm.addAlias('KSFWV12','KSFWVariables(hso22)')
vm.addAlias('KSFWV13','KSFWVariables(hso24)')
vm.addAlias('KSFWV14','KSFWVariables(hoo0)')
vm.addAlias('KSFWV15','KSFWVariables(hoo1)')
vm.addAlias('KSFWV16','KSFWVariables(hoo2)')
vm.addAlias('KSFWV17','KSFWVariables(hoo3)')
vm.addAlias('KSFWV18','KSFWVariables(hoo4)')
vm.addAlias('CC1','CleoConeCS(1)')
vm.addAlias('CC2','CleoConeCS(2)')
vm.addAlias('CC3','CleoConeCS(3)')
vm.addAlias('CC4','CleoConeCS(4)')
vm.addAlias('CC5','CleoConeCS(5)')
vm.addAlias('CC6','CleoConeCS(6)')
vm.addAlias('CC7','CleoConeCS(7)')
vm.addAlias('CC8','CleoConeCS(8)')
vm.addAlias('CC9','CleoConeCS(9)')
CSVariables = [
'isContinuumEvent',
"R2",
"thrustBm",
"thrustOm",
"cosTBTO",
"cosTBz",
"KSFWV1",
"KSFWV2",
"KSFWV3",
"KSFWV4",
"KSFWV5",
"KSFWV6",
"KSFWV7",
"KSFWV8",
"KSFWV9",
"KSFWV10",
"KSFWV11",
"KSFWV12",
"KSFWV13",
"KSFWV14",
"KSFWV15",
"KSFWV16",
"KSFWV17",
"KSFWV18",
"CC1",
"CC2",
"CC3",
"CC4",
"CC5",
"CC6",
"CC7",
"CC8",
"CC9",
]
# Write variables to Ntuples
vm.addAlias('cos_pV','cosAngleBetweenMomentumAndVertexVector')
vm.addAlias('cos_pB','cosThetaBetweenParticleAndNominalB')
vm.addAlias('TagVReChi2','formula(TagVChi2/TagVNDF)')
vm.addAlias('TagVReChi2IP','formula(TagVChi2IP/TagVNDF)')
# Kinematic variables in CMS
cms_kinematics = vu.create_aliases(vc.kinematics, "useCMSFrame({variable})", "CMS")
roe_cms_kinematics = vu.create_aliases(roe_kinematics, "useCMSFrame({variable})", "CMS")
roe_cms_MC_kinematics = vu.create_aliases(roe_MC_kinematics, "useCMSFrame({variable})", "CMS")
b_vars = vu.create_aliases_for_selected(
list_of_variables= cms_kinematics + vc.kinematics + vc.deltae_mbc + vc.inv_mass +vc.mc_truth
+ roe_Mbc_Deltae + roe_cms_kinematics + roe_kinematics + roe_MC_kinematics + roe_E_Q
+ roe_multiplicities + roe_nCharged + CSVariables + we + sigDe_DOCA
+ vertex_vars + ['vtxDDSig','TagVReChi2','TagVReChi2IP',],
decay_string='^B0:D3e -> D-:K2pi e+:corrected e-:corrected e+:corrected',
prefix=['B0'])
D_vars = vu.create_aliases_for_selected(
list_of_variables= cms_kinematics + vc.kinematics + vc.mc_truth
+ vc.dalitz_3body + vc.inv_mass + Daughters_vars + vertex_vars
+ ['dM','BFM','BFInvM','A1FflightDistanceSig_IP','genMotherPDG',],
decay_string='B0:D3e -> ^D-:K2pi e+:corrected e-:corrected e+:corrected',
prefix=['D'])
e_vars = vu.create_aliases_for_selected(
list_of_variables= cms_kinematics + vc.kinematics + vc.mc_truth + vc.mc_kinematics
+ ['dM','isBremsCorrected','genMotherPDG','nPXDHits']
+ ['cosTheta','phi','phiErr','theta','thetaErr','mcTheta','charge'],
decay_string='B0:D3e -> D-:K2pi ^e+:corrected ^e-:corrected ^e+:corrected',
prefix=['e_0','e_1','e_2'])
candidate_vars = ['nElectrons90','nMuons90','Ecms'] + b_vars + D_vars + e_vars
ma.variablesToNtuple('anti-B0:D3e', candidate_vars,filename=output_file, treename='B0', path=main_path)
#event_vars=['Ecms', 'IPX', 'IPY', 'IPZ'] + vc.event_kinematics + vc.mc_event_kinematics
b2.process(path=main_path)
print(b2.statistics)