analysis/graFEI_examples.py
=== stdout of analysis/tests/graFEI_examples.py ===
[INFO] Steering file: /data/b2soft/buildbot/light/build/analysis/tests/graFEI_examples.py
[INFO] Steering file: /data/b2soft/buildbot/light/build/analysis/examples/GraFEI/graFEI_ntupliser_B.py
____ ____ _ ____ ____ _
| _ |__| /_\ |___ |___ |
|__| | \ / \ | |___ |
o
/ \
/ \ x-----x _ _
/ \ |-----\ |\ /| |-----\ |0 1 3 3 5|
o \ |----- \ | \ / | |----- \ |1 0 3 3 5|
/ \ \ |----- / | x | |----- / |3 3 0 1 5|
/ \ \ |-----/ | / \ | |-----/ |3 3 1 0 5|
/ \ \ |/ \| |5 5 5 5 0|
o o \ x-----x  ̄  ̄
/ \ / \ \
x x x x x
Authors: Jacopo Cerasoli, Giulio Dujany, Lucas Martel, Corentin Santos. 2022 - 2024
Model description: https://indico.cern.ch/event/1106990/papers/4996235/files/12252-ACAT_2022_proceedings.pdf
Based on the work of Kahn et al: https://iopscience.iop.org/article/10.1088/2632-2153/ac8de0
Please consider citing both articles.
Code adapted from https://github.com/Helmholtz-AI-Energy/BaumBauen
[INFO] The random number seed is set to "42"
[INFO] Starting event processing, random seed is set to '42'
[INFO] Added file /belle2/validation-data/mdst16.root
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating ParticleList with name: gamma:all
[INFO] -> MDST source: ECLClusters and KLMClusters
[INFO] ParticleSelector: gamma:all
[INFO] -> With cuts : isFromECL
[INFO] Conditions Database: found working metadata provider
provider = http://belle2db.sdcc.bnl.gov/b2s/rest/
[INFO] Conditions data: configured globaltags (highest priority first) are analysis_tools_light-2403-persian, analysis_tools_light-2505-deimos, release-08-00-09
[ERROR] Conditions Database: Problem parsing payload information.
globaltag = analysis_tools_light-2403-persian
server url = http://belle2db.sdcc.bnl.gov/b2s/rest/
error = Operation too slow. Less than 10240 bytes/sec transferred the last 60 seconds { module: MVAExpert }
[WARNING] Conditions data: Problem with payload metadata provider, trying to fall back to next provider...
provider = http://belle2db.sdcc.bnl.gov/b2s/rest/ { module: MVAExpert }
[INFO] Conditions Database: found working metadata provider
provider = /cvmfs/belle.cern.ch/conditions/database.sqlite
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: K+:all (K-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: K+:loose
[INFO] -> With cuts : kaonID > 0.1 and thetaInCDCAcceptance and dr < 0.5 and abs(dz) < 2
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: pi+:all (pi-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: pi+:loose
[INFO] -> With cuts : pionID > 0.1 and thetaInCDCAcceptance and dr < 0.5 and abs(dz) < 2
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: mu+:all (mu-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: mu+:tight
[INFO] -> With cuts : abs(dz)<2 and dr<0.5 and nCDCHits>20 and thetaInCDCAcceptance and pt>0.6 and E<5.5 and muonID_noSVD>0.9
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: pi+:all (pi-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: pi+:all (pi-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: pi+:mostlikely_roe
[INFO] -> With cuts : pidIsMostLikely() > 0 and thetaInCDCAcceptance and nCDCHits>20
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: K+:all (K-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: K+:mostlikely_roe
[INFO] -> With cuts : pidIsMostLikely() > 0 and thetaInCDCAcceptance and nCDCHits>20
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: p+:all (anti-p-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: p+:mostlikely_roe
[INFO] -> With cuts : pidIsMostLikely() > 0 and thetaInCDCAcceptance and nCDCHits>20
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: e+:all (e-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: e+:mostlikely_roe
[INFO] -> With cuts : pidIsMostLikely() > 0 and thetaInCDCAcceptance and nCDCHits>20
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: mu+:all (mu-:all)
[INFO] -> MDST source: Tracks
[INFO] ParticleSelector: mu+:mostlikely_roe
[INFO] -> With cuts : pidIsMostLikely() > 0 and thetaInCDCAcceptance and nCDCHits>20
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating ParticleList with name: gamma:all
[INFO] -> MDST source: ECLClusters and KLMClusters
[INFO] ParticleSelector: gamma:all
[INFO] -> With cuts : isFromECL
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating ParticleList with name: K_L0:all
[INFO] -> MDST source: exclusively KLMClusters or exclusively ECLClusters (matching between those not used)
[INFO] ParticleSelector: K_L0:roe_default
[INFO] -> With cuts : isFromKLM > 0
[INFO] RestOfEventInterpreter added ROEMask with specific fractions under name 'csMask' with track cuts: nCDCHits > 0 and useCMSFrame(p)<=3.2 and eclCluster cuts: p >= 0.05 and useCMSFrame(p)<=3.2
[INFO] RestOfEventInterpreter added ROEMask with specific fractions under name 'basicMask' with track cuts: pidIsMostLikely(0.068,0.05,0.7326,0.1315,0.0183,6e-05)>0 and nCDCHits>0 and thetaInCDCAcceptance and abs(dz)<4 and dr<2 and eclCluster cuts: inCDCAcceptance and clusterErrorTiming<1e6 and [clusterE1E9>0.4 or E>0.075] and [[clusterReg == 1 and E > 0.05] or [clusterReg == 2 and E > 0.05] or [clusterReg == 3 and E > 0.075]]
[INFO] ParticleSelector: B0:sig
[INFO] -> With cuts : cosTBz<0.9
[INFO] Number of ParticleLists studied 1
[INFO] MCMatcher module will search for Particle -> MCParticle associations for the ParticleList B0:sig.
[INFO] - The MCMatcher will use default algorithm suitable for analysis of Belle II MC.
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: B0:forTM (anti-B0:forTM)
[INFO] -> MDST source: RestOfEvents
[INFO] MCMatcher module will search for Particle -> MCParticle associations for the ParticleList B0:forTM.
[INFO] - The MCMatcher will use default algorithm suitable for analysis of Belle II MC.
[INFO] RestOfEventInterpreter added ROEMask with specific fractions under name 'graFEIROE' with track cuts: pidIsMostLikely(0.068,0.05,0.7326,0.1315,0.0183,6e-05)>0 and nCDCHits>20 and thetaInCDCAcceptance and abs(dz)<1.0 and dr<0.5 and p<5 and pt>0.2 and eclCluster cuts: beamBackgroundSuppression>0.4 and fakePhotonSuppression>0.3 and abs(clusterTiming)<100 and abs(formula(clusterTiming/clusterErrorTiming))<2.0 and [[clusterReg==1 and E>0.09] or [clusterReg==2 and E>0.09] or [clusterReg==3 and E>0.14]] and inCDCAcceptance and [clusterErrorTiming < 1e6 and [clusterE1E9 > 0.4 or E > 0.075]]
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: B0:tag (anti-B0:tag)
[INFO] -> MDST source: RestOfEvents
[INFO] MCMatcher module will search for Particle -> MCParticle associations for the ParticleList B0:tag.
[INFO] - The MCMatcher will use default algorithm suitable for analysis of Belle II MC.
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating ParticleList with name: Upsilon(4S):MC
[INFO] -> MDST source: MCParticles
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: B0:MC (anti-B0:MC)
[INFO] -> MDST source: MCParticles
[INFO] ParticleLoader's Summary of Actions:
[INFO] o) creating (anti-)ParticleList with name: B+:MC (B-:MC)
[INFO] -> MDST source: MCParticles
[FATAL] 1 ERROR(S) occurred! The processing of events will not be started. { function: void Belle2::EventProcessor::process(const Belle2::PathPtr&, long int) }
[INFO] ===Error Summary================================================================
[FATAL] 1 ERROR(S) occurred! The processing of events will not be started.
[ERROR] Conditions Database: Problem parsing payload information.
globaltag = analysis_tools_light-2403-persian
server url = http://belle2db.sdcc.bnl.gov/b2s/rest/
error = Operation too slow. Less than 10240 bytes/sec transferred the last 60 seconds { module: MVAExpert }
[WARNING] Conditions data: Problem with payload metadata provider, trying to fall back to next provider...
provider = http://belle2db.sdcc.bnl.gov/b2s/rest/ { module: MVAExpert }
[INFO] ================================================================================
[ERROR] in total, 1 errors occurred during processing
[WARNING] in total, 1 warnings occurred during processing
TFile: graFEI_ntupliser_Upsilon.root
TTree: tree
TBranch: __experiment__, 1003
TBranch: __run__, 0
TBranch: __event__, 6
TBranch: __production__, 0
TBranch: __candidate__, 0
TBranch: __ncandidates__, 1
TBranch: __eventType__,
TBranch: __weight__, 1
TBranch: Bsgn_d0_CMS_E, 2.137
TBranch: Bsgn_d0_CMS_p, 2.079
TBranch: Bsgn_d0_CMS_pt, 1.981
TBranch: Bsgn_d0_CMS_px, -1.567
TBranch: Bsgn_d0_CMS_py, 1.211
TBranch: Bsgn_d0_CMS_pz, 0.6322
TBranch: Bsgn_d0_E, 2.337
TBranch: Bsgn_d0_M, 0.4937
TBranch: Bsgn_d0_Mbc, 4.864
TBranch: Bsgn_d0_PDG, 321
TBranch: Bsgn_d0_deltaE, -3.153
TBranch: Bsgn_d0_genMotherPDG, 521
TBranch: Bsgn_d0_mcErrors, 128
TBranch: Bsgn_d0_mcPDG, 211
TBranch: Bsgn_d0_p, 2.285
TBranch: Bsgn_d0_pt, 1.904
TBranch: Bsgn_d0_px, -1.469
TBranch: Bsgn_d0_py, 1.211
TBranch: Bsgn_d0_pz, 1.263
TBranch: Bsgn_genMotherPDG, 3.006e+05
TBranch: Bsgn_mcErrors, 176
TBranch: Bsgn_mcPDG, 521
TBranch: Btag_CMS_E, 4.941
TBranch: Btag_CMS_p, 1.119
TBranch: Btag_CMS_pt, 1.049
TBranch: Btag_CMS_px, 0.9542
TBranch: Btag_CMS_py, -0.4367
TBranch: Btag_CMS_pz, -0.3891
TBranch: Btag_E, 5.069
TBranch: Btag_M, 4.813
TBranch: Btag_Mbc, 5.17
TBranch: Btag_PDG, 521
TBranch: Btag_deltaE, -0.3487
TBranch: Btag_genMotherPDG, 0
TBranch: Btag_mcErrors, 438
TBranch: Btag_mcPDG, 3.006e+05
TBranch: Btag_p, 1.593
TBranch: Btag_pt, 1.243
TBranch: Btag_px, 1.164
TBranch: Btag_py, -0.4367
TBranch: Btag_pz, 0.9964
TBranch: Ups_E, 7.407
TBranch: Ups_M, 7.004
TBranch: Ups_Mbc, 5.191
TBranch: Ups_PDG, 300553
TBranch: Ups_deltaE, 1.788
TBranch: Ups_genMotherPDG, 0
TBranch: Ups_mcErrors, 438
TBranch: Ups_mcPDG, 3.006e+05
TBranch: Ups_p, 2.408
TBranch: Ups_pt, 0.8324
TBranch: Ups_px, -0.3051
TBranch: Ups_py, 0.7745
TBranch: Ups_pz, 2.259
TBranch: graFEI_goodEvent, 1
TBranch: graFEI_nCharged_postFit, 9
TBranch: graFEI_nCharged_preFit, 9
TBranch: graFEI_nElectrons_postFit, 0
TBranch: graFEI_nElectrons_preFit, 1
TBranch: graFEI_nFSP, 16
TBranch: graFEI_nKaons_postFit, 1
TBranch: graFEI_nKaons_preFit, 0
TBranch: graFEI_nLeptons_postFit, 0
TBranch: graFEI_nLeptons_preFit, 1
TBranch: graFEI_nMuons_postFit, 0
TBranch: graFEI_nMuons_preFit, 0
TBranch: graFEI_nOthers_postFit, 0
TBranch: graFEI_nOthers_preFit, 0
TBranch: graFEI_nPhotons_postFit, 7
TBranch: graFEI_nPhotons_preFit, 7
TBranch: graFEI_nPions_postFit, 8
TBranch: graFEI_nPions_preFit, 8
TBranch: graFEI_nPredictedUnmatched, 0
TBranch: graFEI_nPredictedUnmatched_noPhotons, 0
TBranch: graFEI_nProtons_postFit, 0
TBranch: graFEI_nProtons_preFit, 0
TBranch: graFEI_probEdgeGeom, 0.006048
TBranch: graFEI_probEdgeMean, 0.5455
TBranch: graFEI_probEdgeProd, 3.201e-36
TBranch: graFEI_truth_isSemileptonic, 0
TBranch: graFEI_truth_nElectrons, 0
TBranch: graFEI_truth_nFSP, 31
TBranch: graFEI_truth_nKaons, 0
TBranch: graFEI_truth_nMuons, 0
TBranch: graFEI_truth_nOthers, 0
TBranch: graFEI_truth_nPhotons, 6
TBranch: graFEI_truth_nPions, 10
TBranch: graFEI_truth_nProtons, 0
TBranch: graFEI_truth_perfectEvent, 0
TBranch: graFEI_truth_perfectLCA, 0
TBranch: graFEI_truth_perfectMasses, 0
TBranch: graFEI_validTree, 1
=== stderr of analysis/tests/graFEI_examples.py ===
F
======================================================================
FAIL: test_grafei_examples (__main__.ExamplesTest.test_grafei_examples) [graFEI_ntupliser_B.py]
Test supported GraFEI examples.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/b2soft/buildbot/light/build/lib/Linux_x86_64/opt/b2test_utils_analysis.py", line 53, in _test_examples_dir
self.assertEqual(result.returncode, 0)
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 1 test in 103.699s
FAILED (failures=1)
=== end analysis/tests/graFEI_examples.py ===