15 __doc__ =
"""python library to dump various EDM classes"""
16 __version__ =
"$Revision: 1.32 $"
17 __author__ =
"Scott Snyder, Sebastien Binet"
20 from contextlib
import contextmanager
22 from io
import StringIO
23 from functools
import cmp_to_key
27 hypot
as math_hypot, \
30 from AthenaPython
import PyAthena
31 from PyUtils.fprint
import fprint, fprintln, fwrite
32 from PyDumper
import PDG
37 return (x > y) - (x < y)
44 ROOT.gROOT.ProcessLine (
'#pragma clang diagnostic ignored "-Wdeprecated-declarations"')
47 getattr (ROOT.xAOD,
'TrackParticleContainer_v1',
None)
48 getattr (ROOT.xAOD,
'Jet_v1',
None)
51 JetAssociationBase = getattr (cppyy.gbl,
'JetAssociationBase',
None)
52 Analysis = getattr (cppyy.gbl,
'Analysis',
None)
53 Muon = getattr (Analysis,
'Muon',
None)
if Analysis
else None
54 jetAssocNull = cppyy.bind_object(cppyy.nullptr, JetAssociationBase)
if JetAssociationBase
else None
55 muonNull = cppyy.bind_object(cppyy.nullptr, Muon)
if Muon
else None
57 InDet = getattr (cppyy.gbl,
'InDet',
None)
58 InDetLowBetaCandidate = getattr (InDet,
'InDetLowBetaCandidate',
None)
59 InDetLowBetaCandidateNull = cppyy.bind_object(cppyy.nullptr, InDetLowBetaCandidate)
if InDetLowBetaCandidate
else None
61 Trk = getattr (cppyy.gbl,
'Trk',
None)
62 FitQuality = getattr (Trk,
'FitQuality',
None)
63 fitQualityNull = cppyy.bind_object(cppyy.nullptr, FitQuality)
if FitQuality
else None
67 if hasattr(ROOT,
'TrackParticleTruthCollection'):
68 ROOT.TrackParticleTruthCollection()[ROOT.Rec.TrackParticleTruthKey()]
69 if hasattr(ROOT,
'Jet'):
70 ROOT.Jet().jetTagInfoVector()
71 getattr(ROOT,
'ElementLinkVector<CaloClusterContainer>')
72 if hasattr(ROOT,
'Analysis::MuonContainer'):
73 getattr(ROOT,
'ElementLink<Analysis::MuonContainer>')().
isValid()
74 getattr(ROOT,
'vector<xAOD::CaloClusterBadChannelData_v1>')().__assign__(getattr(ROOT,
'vector<xAOD::CaloClusterBadChannelData_v1>')())
75 if hasattr (ROOT,
'TrigInDetParticleTruth'):
76 ROOT.TrigInDetTrackTruth().getFamilyTree()
77 getattr(ROOT,
'ElementLinkVector<TrigInDetTrackCollection>')
78 getattr(ROOT,
'std::vector<Trig3Momentum>')
79 ROOT.TrigSpacePointCounts().droppedSctModules()
80 hasattr (ROOT,
'xAOD::TruthParticle_v1')
81 ROOT.TClass.GetClass(
'ElementLink<DataVector<xAOD::TruthParticle_v1> >')
82 if hasattr (ROOT,
'xAOD::Muon_v1'):
83 ROOT.gROOT.ProcessLine (
'#include "xAODMuon/MuonContainer.h"')
84 ROOT.TClass.GetClass(
'ElementLink<DataVector<xAOD::Muon_v1> >')
89 arg = math_sqrt (x*x+1) - x
92 return - math_log (arg)
101 return toiter (c.begin(), c.end())
114 if not x:
return None
130 sa = ROOT.PyDumper.SafeFloatAccess(v)
131 return [sa[i]
for i
in range(len(v))]
135 if hasattr(o,
'setSignalState'):
136 old = o.signalState()
137 o.setSignalState (state)
139 o.setSignalState (old)
141 sh = PyAthena.SignalStateHelper (o)
142 sh.setSignalState (state)
160 """Helper for doing formatting compatibly with py2.
162 Convert X to a string, but add a `L' to the ends of integers.
163 Can be used for formatting expressions that using longs in py2.
165 if isinstance (x, list):
166 sl = [formatItemUsingLong (xx)
for xx
in x]
167 return '[' +
', '.join (sl) +
']'
168 if isinstance (x, tuple):
169 sl = [formatItemUsingLong (xx)
for xx
in x]
170 return '(' +
', '.join (sl) +
')'
171 if isinstance (x, int):
173 if isinstance (x, forceInt):
175 if isinstance(x, ROOT.std.string):
194 return getattr (t,
'__cpp_name__', t.__name__)
200 return 0
if x == 0
or abs(x) < thresh
else x
204 fprint (f,
"(%f %f %f)" %
205 (v.perp(),v.eta(),v.phi()))
209 m2 = v.e()**2 - v.px()**2 - v.py()**2 - v.pz()**2
211 m2 = fix_neg0 (m2, 1e-3)
213 m = - math_sqrt (-m2)
219 pt = math_hypot (v.px(), v.py())
226 eta = asinh (v.pz() / pt)
228 fprint (f,
"(%f %f %f %f)" %
229 (v.perp(),eta,v.phi(), m))
234 ParticleImpl_EEtaPhiM = getattr(PyAthena,
'ParticleImpl<NavigableTerminalNode,P4ImplEEtaPhiM,ParticleEvent::Base>')
238 if isinstance(v, (PyAthena.P4EEtaPhiMBase, ParticleImpl_EEtaPhiM, PyAthena.xAOD.IParticle))
or \
239 isinstance(vmom, PyAthena.P4BaseEEtaPhiM):
246 elif isinstance (v, PyAthena.P4PtEtaPhiMBase)
or \
247 isinstance (vmom, PyAthena.P4BasePtEtaPhiM):
251 elif isinstance (v, PyAthena.P4IPtCotThPhiMBase)
or \
252 isinstance (vmom, PyAthena.P4BaseIPtCotThPhiM):
258 if ipt == 0
and m == 0
and cotth == 0
and v.phi() == 0:
262 aux = math_hypot(1, cotth)
263 eta = math_log ((aux-cotth) / (aux+cotth))
272 m2 = v.e()**2 - v.px()**2 - v.py()**2 - v.pz()**2
274 m = - math_sqrt (-m2)
279 pt = math_hypot (v.px(), v.py())
286 eta = asinh (v.pz() / pt)
289 if parens: fprint (f,
'(')
290 fprint (f,
"%f %f %f %f" % (pt, eta, v.phi(), m))
291 if parens: fprint (f,
')')
295 fprint (f,
"(%f %f %f)" % (
fix_neg0(v.x(), thresh=1e-8),
301 fprint (f,
"(%f %f)" % (v.x(), v.y()))
306 for r
in range(m.rows()):
308 for c
in range(m.cols()):
310 if abs(v) < thresh: v = 0
311 fprint (f,
'%#6.3g' % v)
318 fprint (f,
'(null vector)')
321 for r
in range(m.rows()):
323 if abs(v) < thresh: v = 0
324 fprint (f,
'%#6.*g' % (prec, v))
332 pos2 = nm.rfind (
'>')
333 nm = nm[pos1+1:pos2].strip()
337 nm = nm +
'/%s[%d]' % (l.dataID(), l.index())
343 dump_Fourvec (e, f, 0)
344 orig = e.originLink()
346 charge =
"%f" % e.charge()
349 fprint (f,
" %1d %1d %4d %s" %
350 (e.dataType(), e.hasPdgId(),
asint32(e.pdgId()), charge))
352 fprint (f,
"%1d"%orig.index())
353 dump_Threevec (e.origin().position(), f)
355 fprint (f,
"(no orig)")
360 dump_Fourvec (p, f, 0)
366 fprint (f,
' %d %s %5d ' %
367 (p.dataType(), c,
asint32(p.pdgId())))
369 dump_Threevec (p.origin().position(), f)
371 fprint (f,
"(no orig)")
376 fprint (f, d.convTrackMatch(), d.convAngleMatch())
381 iperr = d.bremInvpTerr()
383 if iperr==-999: iperr = 0
386 if br == -999: br = 0
387 if bx == -999: bx = 0
390 if nt == -999: nt = 0
391 if nr == -999: nr = 0
394 if d0 == -999: d0 = 0
395 if phi0 == -999: phi0 = 0
396 fprint (f,
"%f %f %f %f %f %2d %2d %2d %2d %f %f" %
397 (ip*1e6, br, bx, iperr*1e6,
398 d.bremClusterRadius(), d.bremFitStatus(), d.bremErrorFlag(),
400 fprint (f, d.bremZ0(), d.bremDzDr(), d.bremNZ(), d.bremFitChi2())
404 fprint (f,
"%f %f %4d %4d" %
405 (d.deltaEta(2), d.deltaPhi(2),
406 d.trackNumber(), d.tracksInBroadWindow()))
407 fprint (f, d.trackRefit(), d.isPrimary())
412 if weta1 < -10: weta1 = 0
414 if pos7 < -10: pos7 = 0
416 if not hasattr(d,
'etconoisedR04Sig2'):
417 d.etconoisedR04Sig2 = d.etconoise20
418 d.etconoisedR04Sig3 = d.etconoise30
419 fprint (f, d.e011(), d.e033(), d.ethad1(),
420 d.ethad(), d.ehad1(), d.f1(), d.f3(), d.f1core(), d.f3core(),
421 d.e233(), d.e235(), d.e255(), d.e237(), d.e277(), d.e333(),
422 d.e335(), d.e337(), d.e377(), weta1, d.weta2(), d.e2ts1(),
423 d.e2tsts1(), d.fracs1(), d.widths1(), d.widths2(),
424 d.poscs1(), d.poscs2(), d.asy1(), d.pos(), pos7, d.barys1(),
425 d.wtots1(), d.emins1(), d.emaxs1(), d.etcone(), d.etcone20(),
426 d.etcone30(), d.etcone40(),
427 d.etconoisedR04Sig2(), d.etconoisedR04Sig3(),
429 if hasattr (d,
'e131'):
430 fprint (f, d.e131(), d.e1153(), d.iso())
432 fprint (f, d.e132(), d.e1152(), d.r33over37allcalo())
439 if abs(x) < 1e-38:
return 0
443 fprint (f, d.linkIndex())
445 uf(d.EMconvertedphoton_perigee_d0()),
446 uf(d.EMconvertedphoton_perigee_z0()),
447 uf(d.EMconvertedphoton_perigee_phi0()),
448 uf(d.EMconvertedphoton_perigee_theta()),
449 uf(d.EMconvertedphoton_perigee_eta()),
450 uf(d.EMconvertedphoton_perigee_momentum()),
451 uf(d.EMconvertedphoton_perigee_Covd0d0 ()),
452 uf(d.EMconvertedphoton_perigee_Covd0z0 ()),
453 uf(d.EMconvertedphoton_perigee_Covd0phi ()),
454 uf(d.EMconvertedphoton_perigee_Covd0theta ()),
455 uf(d.EMconvertedphoton_perigee_Covz0z0 ()),
456 uf(d.EMconvertedphoton_perigee_Covz0phi ()),
457 uf(d.EMconvertedphoton_perigee_Covz0theta ()),
458 uf(d.EMconvertedphoton_perigee_Covphiphi ()),
459 uf(d.EMconvertedphoton_perigee_Covphitheta ()),
460 uf(d.EMconvertedphoton_perigee_Covthetatheta ()))
462 uf(d.EMtrack_perigee_d0 ()),
463 uf(d.EMtrack_perigee_phi0 ()),
464 uf(d.EMtrack_perigee_z0 ()),
465 uf(d.EMtrack_perigee_theta ()),
466 uf(d.EMtrack_perigee_eta ()),
467 uf(d.EMtrack_perigee_momentum ()),
468 uf(d.EMtrack_perigee_Covd0d0 ()),
469 uf(d.EMtrack_perigee_Covd0z0 ()),
470 uf(d.EMtrack_perigee_Covd0phi ()),
471 uf(d.EMtrack_perigee_Covd0theta ()),
472 uf(d.EMtrack_perigee_Covz0z0 ()),
473 uf(d.EMtrack_perigee_Covz0phi ()),
474 uf(d.EMtrack_perigee_Covz0theta ()),
475 uf(d.EMtrack_perigee_Covphiphi ()),
476 uf(d.EMtrack_perigee_Covphitheta ()),
477 uf(d.EMtrack_perigee_Covthetatheta ()))
479 uf(d.EMphoton_eta ()),
480 uf(d.EMphoton_phi0 ()),
481 uf(d.EMphoton_Eclus ()),
482 uf(d.EMphoton_Covetaeta ()),
483 uf(d.EMphoton_Covetaphi ()),
484 uf(d.EMphoton_CovetaEclus ()),
485 uf(d.EMphoton_Covphiphi ()),
486 uf(d.EMphoton_CovphiEclus ()),
487 uf(d.EMphoton_CovEclusEclus ()))
489 uf(d.EMtrack_comb_Covd0d0 ()),
490 uf(d.EMtrack_comb_Covd0z0 ()),
491 uf(d.EMtrack_comb_Covd0phi ()),
492 uf(d.EMtrack_comb_Covd0eta ()),
493 uf(d.EMtrack_comb_Covd0P ()),
494 uf(d.EMtrack_comb_Covz0z0 ()),
495 uf(d.EMtrack_comb_Covz0phi ()),
496 uf(d.EMtrack_comb_Covz0eta ()),
497 uf(d.EMtrack_comb_Covz0P ()),
498 uf(d.EMtrack_comb_Covphiphi ()),
499 uf(d.EMtrack_comb_Covphieta ()),
500 uf(d.EMtrack_comb_CovphiP ()),
501 uf(d.EMtrack_comb_Covetaeta ()),
502 uf(d.EMtrack_comb_CovetaP ()),
503 uf(d.EMtrack_comb_CovPP ()))
509 d.track_perigee_d0 (),
510 d.track_perigee_phi0 (),
511 d.track_perigee_qOverP(),
512 d.track_perigee_z0 (),
513 d.track_perigee_theta (),
514 d.track_perigee_Covd0d0 (),
515 d.track_perigee_Covd0z0 (),
516 d.track_perigee_Covd0phi (),
517 d.track_perigee_Covd0theta (),
518 d.track_perigee_Covd0qOverP (),
519 d.track_perigee_Covz0z0 (),
520 d.track_perigee_Covz0phi (),
521 d.track_perigee_Covz0theta (),
522 d.track_perigee_Covz0qOverP (),
523 d.track_perigee_Covphiphi (),
524 d.track_perigee_Covphitheta (),
525 d.track_perigee_CovphiqOverP (),
526 d.track_perigee_Covthetatheta (),
527 d.track_perigee_CovthetaqOverP (),
528 d.track_perigee_CovqOverPqOverP ())
530 d.track_LastM_loc1 (),
531 d.track_LastM_loc2 (),
532 d.track_LastM_phi (),
533 d.track_LastM_theta (),
534 d.track_LastM_qOverP (),
535 d.bremTrackAuthor (),
541 d.bremMaterialTraversed (),
549 dump_ParticleImpl (e, f)
550 fprint (f,
"\n %d %d %d" % (e.author(), e.isem(), e.isemse()))
551 if e.clusterElementLink().
isValid():
552 fprint (f,
'\n cl: %2d:' % e.clusterElementLink().
index())
553 dump_Fourvec (e.cluster(), f)
554 for i
in range(e.nTrackParticles()):
555 tp = e.trackParticleElementLink(i)
557 fprint (f,
'\n tp: %2d:' %tp.index())
558 dump_Fourvec (e.trackParticle(i), f)
559 for i
in range(e.nConversions()):
560 cv = e.conversionElementLink(i)
562 fprint (f,
'\n cv: %2d:' % cv.index())
563 dump_Threevec (e.conversion(i).recVertex().position(), f)
564 for i
in range (e.nDetails()):
565 if e.detailElementLink(i).
isValid():
567 fprint (f,
'\n %s: ' % d.className())
568 if isinstance (d, PyAthena.EMConvert):
569 dump_EMConvert (d, f)
570 elif isinstance (d, PyAthena.EMBremFit):
571 dump_EMBremFit (d, f)
572 elif isinstance (d, PyAthena.EMTrackMatch):
573 dump_EMTrackMatch (d, f)
574 elif isinstance (d, PyAthena.EMShower):
576 elif isinstance (d, PyAthena.EMErrorDetail):
577 dump_EMErrorDetail (d, f)
578 elif isinstance (d, PyAthena.EMTrackFit):
579 dump_EMTrackFit (d, f)
583 fprint (f,
'\n Detail link %d not valid; skipped.' % i)
585 pid = PyAthena.egammaPIDObs
587 pid = PyAthena.egammaPID
588 fprint (f,
'\n pid: %g %g %f %g %f %f' %
589 (e.egammaID(pid.ElectronWeight), e.egammaID(pid.BgWeight),
590 e.egammaID(pid.NeuralNet), e.egammaID(pid.Hmatrix),
591 e.egammaID(pid.IsolationLikelihood_jets),
592 e.egammaID(pid.IsolationLikelihood_HQDelectrons)))
608 fprint (f, p.deltaE(), p.sigmaDeltaE(), p.sigmaMinusDeltaE(), p.sigmaPlusDeltaE())
609 fprint (f, p.meanIoni(), p.sigmaIoni(), p.meanRad(), p.sigmaRad(), p.length())
614 dump_EnergyLoss (p, f)
615 fprint (f,
'%d %f %f %f %f' %
618 p.caloLRLikelihood(),
619 p.fsrCandidateEnergy(),
621 fprint (f, p.deltaEParam(), p.sigmaMinusDeltaEParam(), p.sigmaPlusDeltaEParam(), p.deltaEMeas(), p.sigmaDeltaEMeas())
622 fprint (f,
'\n deposits:')
623 for d
in p.depositInCalo():
624 fprint (f,
" (%d %f %f)" %
625 (d.subCaloId(), d.energyDeposited(), d.muonEnergyLoss()))
630 dump_ParticleImpl (m, f)
631 fprint (f,
' %1d' % m.author())
632 if m.inDetTrackLink().
isValid():
633 fprint (f,
'\n idtp: %2d:' % m.inDetTrackLink().
index())
634 dump_Fourvec (m.inDetTrackParticle(), f)
636 if hasattr(m,
'muonSpTrackLink')
and m.muonSpTrackLink().
isValid():
637 fprint (f,
'\n sptp: %2d:' % m.muonSpTrackLink().
index())
638 dump_Fourvec (m.muonSpectrometerTrackParticle(), f)
639 if m.muonExtrapTrackLink().
isValid():
640 fprint (f,
'\n mxtp: %2d:' % m.muonExtrapTrackLink().
index())
641 dump_Fourvec (m.muonExtrapolatedTrackParticle(), f)
642 if m.innerExtrapTrackLink().
isValid():
643 fprint (f,
'\n ixtp: %2d:' % m.innerExtrapTrackLink().
index())
644 dump_Fourvec (m.innerExtrapolatedTrackParticle(), f)
645 if m.combinedTrackLink().
isValid():
646 fprint (f,
'\n cmtp: %2d:' % m.combinedTrackLink().
index())
647 dump_Fourvec (m.combinedMuonTrackParticle(), f)
649 fprint (f,
'\n cl: %2d:' % m.clusterLink().
index())
650 dump_Fourvec (m.cluster(), f)
651 fprint (f,
'\n a: %f %f %d %f %d %f %d' %
652 (m.matchChi2(), m.matchChi2OverDoF(), m.matchNumberDoF(),
653 m.fitChi2(), m.fitNumberDoF(), m.fitChi2OverDoF(),
655 fprint (f,
'\n b: %d %d %d %d %d %d %d %d %d %d %d %d' %
656 (m.numberOfInnermostPixelLayerHits(),
657 m.numberOfPixelHits(),
660 m.numberOfTRTHighThresholdHits(),
661 m.numberOfInnermostPixelLayerSharedHits(),
662 m.numberOfPixelSharedHits(),
663 m.numberOfPixelHoles(),
664 m.numberOfSCTSharedHits(),
665 m.numberOfSCTHoles(),
666 m.numberOfTRTOutliers(),
667 m.numberOfTRTHighThresholdOutliers()))
668 fprint (f,
'\n c: %d %d %d %d %d %d %d %d %d %d %d %d %d %d' %
669 (m.numberOfMDTHits(),
670 m.numberOfMDTHoles(),
671 m.numberOfCSCEtaHits(),
672 m.numberOfCSCEtaHoles(),
673 m.numberOfCSCPhiHits(),
674 m.numberOfCSCPhiHoles(),
675 m.numberOfRPCEtaHits(),
676 m.numberOfRPCEtaHoles(),
677 m.numberOfRPCPhiHits(),
678 m.numberOfRPCPhiHoles(),
679 m.numberOfTGCEtaHits(),
680 m.numberOfTGCEtaHoles(),
681 m.numberOfTGCPhiHits(),
682 m.numberOfTGCPhiHoles()))
683 fprint (f,
'\n d: %d %d %f %f %f %f %f %f' %
684 (m.numberOfGangedPixels(),
685 m.numberOfOutliersOnTrack(),
687 m.segmentChi2OverDoF(),
692 fprint (f,
'\n e: %f %f %d %d' %
693 (m.parameter(etcone10),
694 m.parameter(nucone10),
695 m.alsoFoundByLowPt(),
696 m.alsoFoundByCaloMuonId()))
697 fprint (f,
'\n f:', [i
for i
in m.associatedEtaDigits()])
698 fprint (f,
'\n h:', [i
for i
in m.associatedPhiDigits()])
699 fprint (f,
'\n i:', [i
for i
in m.segmentEtaDigits()])
700 fprint (f,
'\n j:', [i
for i
in m.segmentPhiDigits()])
701 caloe = m.caloEnergyLoss()
704 dump_CaloEnergy (caloe, f)
710 if nm.startswith(
'Analysis::'):
712 fprint (f,
'%s:' % nm)
716 dump_TauDetail (t, f)
717 fprint (f,
' %f %1d %f %f %1d %1d %f %f %f %f' %
722 t.nAssocTracksCore(),
723 t.nAssocTracksIsol(),
729 fprint (f,
' %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f' %
730 (t.isolationFraction(),
737 t.etChrgHADoverPttot(),
744 t.etResChrgEMTrk(0)))
746 dump_HLV (t.sumEM(), f)
748 dump_Threevec (t.secVertex().position(), f)
749 if t.cellEM012Cluster():
750 dump_Fourvec (t.cellEM012Cluster(), f)
751 for i
in range(t.numPi0()):
752 fprint (f,
'\n pi: ')
753 dump_Fourvec (t.pi0 (i), f)
758 dump_TauDetail (t, f)
760 fprint (f,
'%f %f %f %f %2d %f %f %f' %
762 t.isolationFraction(),
763 t.centralityFraction(),
770 for i
in range(t.numTrack()):
771 fprint (f,
'(%f %f) ' % (t.trackCaloEta(i), t.trackCaloPhi(i)))
773 dump_HLV (t.sumEM(), f)
775 dump_Threevec (t.secVertex().position(), f)
780 dump_TauDetail (t, f)
781 fprint (f, t.sumPTTracks())
786 for tr
in range(t.ntrack()):
787 for s
in range(t.nsamp()):
788 fprint (f,
'\n ', tr, s,
789 t.etaTrackCaloSamp(tr,s), t.phiTrackCaloSamp(tr,s))
794 dump_TauDetail (t, f)
795 fprint (f, t.numEMCells(), t.stripET(), t.emCentralityFraction(),
796 t.etHadAtEMScale(), t.etEMAtEMScale(), t.energy(), t.emEnergy(),
797 t.sumPTTracks(), t.seedType(),
tonone(t.analysisHelper()))
802 dump_HLV (t.hlv(), f)
804 for c
in t.pi0ClusterVec():
805 fprint (f, c.clusterLink().
index(),
', ')
811 fprint (f, t.clusterLink().
index(),
821 t.asymmetryInEM1WRTTrk(),
826 t.firstEtaWRTClusterPosition_EM1(),
827 t.firstEtaWRTClusterPosition_EM2(),
828 t.secondEtaWRTClusterPosition_EM1(),
829 t.secondEtaWRTClusterPosition_EM2(),
836 dump_TauDetail (t, f)
837 dump_HLV (t.visTauhlv(), f)
838 fprint (f,
' candidates')
839 for c
in t.pi0CandidateVector():
841 dump_TauPi0Candidate (c, f)
842 fprint (f,
' clusters')
843 for c
in t.pi0ClusterVector():
845 dump_TauPi0Cluster (c, f)
850 dump_TauDetail (t, f)
851 fprint (f, t.ipZ0SinThetaSigLeadTrk(), t.etOverPtLeadTrk(),
852 t.leadTrkPt(), t.ipSigLeadTrk(), t.ipSigLeadLooseTrk(),
853 t.etOverPtLeadLooseTrk(), t.leadLooseTrkPt(), t.chrgLooseTrk(),
854 t.massTrkSys(), t.trkWidth2())
856 fprint (f, t.trFlightPathSig(), t.etEflow(), t.seedCalo_EMRadius(),
857 t.seedCalo_hadRadius(), t.seedCalo_etEMAtEMScale(),
858 t.seedCalo_etHadAtEMScale(), t.seedCalo_isolFrac(),
859 t.seedCalo_centFrac(), t.seedCalo_stripWidth2(), t.seedCalo_nStrip())
861 fprint (f, t.seedCalo_etEMCalib(), t.seedCalo_etHadCalib(),
862 t.seedCalo_eta(), t.seedCalo_phi(), t.seedCalo_nIsolLooseTrk(),
863 t.seedTrk_EMRadius(), t.seedTrk_isolFrac(),
864 t.seedTrk_etChrgHadOverSumTrkPt(), t.seedTrk_isolFracWide(),
865 t.seedTrk_etHadAtEMScale())
867 fprint (f, t.seedTrk_etEMAtEMScale(), t.seedTrk_etEMCL(),
868 t.seedTrk_etChrgEM(), t.seedTrk_etNeuEM(),
869 t.seedTrk_etResNeuEM(), t.seedTrk_hadLeakEt(),
870 t.seedTrk_sumEMCellEtOverLeadTrkPt(), t.seedTrk_secMaxStripEt(),
871 t.seedTrk_stripWidth2(), t.seedTrk_nStrip())
873 fprint (f, t.seedTrk_etChrgHad(), t.seedTrk_nOtherCoreTrk(),
874 t.seedTrk_nIsolTrk(), t.seedTrk_etIsolEM(), t.seedTrk_etIsolHad())
875 fprint (f,
'\n %d loose tracks' % t.nLooseTrk())
876 looseTrks = t.looseTrk()
877 for i
in range(looseTrks.size()):
879 fprint (f,
'\n ', el.index(), el.dataID(),
880 t.seedTrk_etChrgEM01Trk(i), t.seedTrk_etResChrgEMTrk(i))
881 fprint (f,
'\n %d pi0s' % t.nPi0())
883 for i
in range(vec.size()):
886 fprint (f,
'\n ', el.dataID(), el.e())
887 fprint (f,
'\n pi0 sum:')
888 dump_HLV (t.sumPi0Vec(), f)
889 cl = t.cellEM012ClusterLink()
890 fprint (f,
'\n cluster:')
892 fprint (f, cl.index(), cl.dataID())
894 fprintln (f,
'(invalid)')
895 fprint (f,
'\n secvertex:')
897 dump_RecVertex (t.secVtx(), f)
909 fprint (f,
'(', el.dataID(), el.index(),
') ')
911 fprint (f,
'(invEL) ')
929 dump_TauDetail (t, f)
930 fprint (f, t.sumPtLooseTrk(), t.sumPtTrk(), t.seedCalo_nEMCell(),
931 t.seedCalo_stripEt(), t.seedCalo_EMCentFrac(),
932 t.seedCalo_sumCellEnergy(), t.seedCalo_sumEMCellEnergy())
934 dump_vvelccell (t.closestEtaTrkVertCell(), f)
936 dump_vvelccell (t.closestPhiTrkVertCell(), f)
938 dump_vvelccell (t.closestEtaTrkCell(), f)
940 dump_vvelccell (t.closestPhiTrkCell(), f)
942 dump_vvdouble (t.etaTrkCaloSamp(), f)
944 dump_vvdouble (t.phiTrkCaloSamp(), f)
946 dump_vvdouble (t.etaLooseTrkCaloSamp(), f)
948 dump_vvdouble (t.phiLooseTrkCaloSamp(), f)
953 dump_ParticleImpl (t, f)
954 fprint (f,
' %1d' % (t.author(),))
957 fprint (f,
'\n cl: %2d:' % t.clusterLink().
index())
958 dump_Fourvec (t.cluster(), f)
959 if t.cellClusterLink().
isValid():
962 fprint (f,
'\n ce: ')
963 dump_Fourvec (t.cellCluster(), f)
965 fprint (f,
'\n je: %2d:' % t.jetLink().
index())
967 if j.e() == 0
and j.phi() == 0
and j.eta() == 0:
968 with signalstate (j, PyAthena.P4SignalState.JETEMSCALE):
972 for i
in range (t.numTrack()):
973 el = t.trackLinkVector()[i]
975 fprint (f,
'\n t%d: %2d:' % (i,el.index()))
976 dump_Fourvec (t.track(i), f)
978 TJP = PyAthena.TauJetParameters
980 fprint (f,
'\n pid: %f %f %f %d %d %d' %
981 (pid.discriminant(0),
984 pid.flag (TJP.ElectronFlag),
985 pid.flag (TJP.EgammaFlag),
986 pid.flag (TJP.MuonFlag)))
987 if hasattr (TJP,
'TauCutLoose'):
988 flags = [TJP.TauCutLoose,
997 if hasattr (TJP,
'TauRecOld'):
998 flags.append (TJP.TauRecOld)
999 if hasattr (TJP,
'Tau1P3POld'):
1000 flags.append (TJP.Tau1P3POld)
1001 fprint (f,
'\n ', [pid.isTau(ff)
for ff
in flags])
1003 fprint (f,
'\n ', pid.isTau())
1004 for i
in range (t.nDetails()):
1006 if t.detailElementLink(i).
isValid():
1008 if (hasattr (PyAthena.Analysis,
'Tau1P3PDetails')
and
1009 isinstance (d, PyAthena.Analysis.Tau1P3PDetails)):
1010 dump_Tau1P3PDetails (d, f)
1011 elif (hasattr (PyAthena.Analysis,
'TauRecDetails')
and
1012 isinstance (d, PyAthena.Analysis.TauRecDetails)):
1013 dump_TauRecDetails (d, f)
1014 elif (hasattr (PyAthena.Analysis,
'Tau1P3PExtraDetails')
and
1015 isinstance (d, PyAthena.Analysis.Tau1P3PExtraDetails)):
1016 dump_Tau1P3PExtraDetails (d, f)
1017 elif (hasattr (PyAthena.Analysis,
'TauRecExtraDetails')
and
1018 isinstance (d, PyAthena.Analysis.TauRecExtraDetails)):
1019 dump_TauRecExtraDetails (d, f)
1020 elif (hasattr (PyAthena.Analysis,
'TauPi0Details')
and
1021 isinstance (d, PyAthena.Analysis.TauPi0Details)):
1022 dump_TauPi0Details (d, f)
1023 elif isinstance (d, PyAthena.Analysis.TauCommonDetails):
1024 dump_TauCommonDetails (d, f)
1025 elif isinstance (d, PyAthena.Analysis.TauCommonExtraDetails):
1026 dump_TauCommonExtraDetails (d, f)
1028 fprint (f, t.detailName(i), d,
'(not dumped)')
1029 fprint (f,
'\n p: %f %f %f' %
1037 fprint (f,
' '.join ([
'%f'%x
for x
in info.tagLikelihood()]),
1038 info.weight(), info.isValid())
1043 dump_BaseTagInfo (info, f)
1044 fprint (f,
' %s %f %d ' %
1045 (info.jetTruthLabel(),
1046 info.deltaRMinTo (
'b'),
1048 dump_Threevec (info.BDecayVertex(), f)
1053 fprint (f,
'%d %d %d %d %d %d ' %
1060 dump_H3V (info.momentum(), f)
1062 dump_H3V (info.prodvtx(), f)
1066 dump_BaseTagInfo (info, f)
1067 for i
in range (info.numSLTrueInfo()):
1069 dump_SLTrueInfo (info.getSLTrueInfo(i), f)
1074 dump_BaseTagInfo (info, f)
1075 fprint (f,
'\n %d %d %d %d %f %f %f %f %f' %
1077 info.numSelTracksForFit(),
1079 info.NumberOfG2TrackVertices(),
1081 info.rphidistance(),
1084 info.energyFraction()))
1085 return dump_Threevec (info.secVertexPos().position(), f)
1089 dump_Fourvec (info.track(), f)
1090 fprint (f,
' %d %s %d %f %f %f %f %f %f %f' %
1091 (info.trackGrade().gradeNumber(),
1092 info.trackGrade().gradeString(),
1095 info.d0Significance(),
1097 info.z0Significance(),
1098 info.trackWeight2D(),
1099 info.trackWeight3D(),
1100 info.trackProbJP()))
1104 dump_BaseTagInfo (info, f)
1105 fprint (f,
' %d' % info.numTrackInfo())
1106 for i
in range(info.numTrackInfo()):
1108 dump_IPTrackInfo (info.getTrackInfo(i), f)
1113 dump_BaseTagInfo (info, f)
1114 fprint (f, info.nbTracks())
1119 dump_BaseTagInfo (info, f)
1128 dump_Fourvec (tp, f)
1133 dump_BaseTagInfo (info, f)
1134 fprint (f, info.getNGTrackInJet(),
1135 info.getNGTrackInSvx(),
1138 info.getEnergyFraction(),
1140 info.numTrackInfo())
1141 fprint (f,
'\n vert: ')
1142 dump_RecVertex (info.getRecSvx(), f)
1143 fprint (f,
'\n tracks: ')
1146 ti = [info.getTrackInfo(i)
for i
in range(info.numTrackInfo())]
1147 ti.sort (key=
lambda a: a.track().
pt(), reverse=
True)
1148 i = info.numTrackInfo()-1
1150 fprint (f,
'\n %d: ' % i)
1151 dump_SVTrackInfo (tt, f)
1156 dump_BaseTagInfo (info, f)
1157 fprint (f, info.getNGTrackInJet(),
1158 info.getNGTrackInSvx(),
1162 fprint (f,
'\n verts: ')
1163 for i
in range (info.numVtxInfo()):
1164 fprint (f,
'\n %d: ' % i)
1165 vx = info.getVtxInfo(i)
1166 fprint (f, vx.getMass(), vx.getPt(), vx.getEta(), vx.getPhi(),
1167 vx.getEnergyFraction(), vx.getNormDist(), vx.numTrackInfo())
1168 fprint (f,
'\n vert: ')
1169 dump_RecVertex (vx.getRecSvx(), f)
1170 fprint (f,
'\n tracks: ')
1173 ti = [vx.getTrackInfo(i)
for i
in range(vx.numTrackInfo())]
1174 ti.sort (key=
lambda a: a.track().
pt(), reverse=
True)
1175 i = vx.numTrackInfo()-1
1177 fprint (f,
'\n %d: ' % i)
1178 dump_SVTrackInfo (tt, f)
1183 dump_BaseTagInfo (info, f)
1184 fprint (f, info.nbTracks())
1189 dump_Fourvec (info.electron(), f)
1190 fprint (f,
'%f %f' % (info.d0Value(), info.pTrel()),
1191 [x
for x
in info.tagLikelihood()])
1196 dump_BaseTagInfo (info, f)
1197 fprint (f,
' '.
join([
'%f'%x
for x
in info.vectorTrackProb()]),
1198 info.nTrackProb(), info.numTrackInfo())
1199 for i
in range(info.numTrackInfo()):
1201 dump_SETrackInfo (info.getTrackInfo(i), f)
1206 dump_BaseTagInfo (info, f)
1207 fprint (f,
'%d %d %d %f %f %f %f %f' %
1209 info.nSingleTracks(),
1210 info.nTracksAtVtx(),
1211 info.energyFraction(),
1213 info.significance3d(),
1220 dump_BaseTagInfo (info, f)
1221 fprint (f,
'%d %f %f %f %f' %
1224 info.d0sig_abs_2nd(),
1226 info.d0sig_abs_3rd()))
1231 dump_BaseTagInfo (info, f)
1232 fprint (f, info.isBTagged(), info.isTauTagged(), info.isTau1PTagged(),
1233 info.isTau3PTagged(), info.LightHypoCalFactor(),
1234 info.TauHypoCalFactor(), info.Tau1P3PHypoCalFactor(),
1235 info.BHypoCalFactor(),
1236 info.deltaRMinTo(
"b"),
1237 info.deltaRMinTo(
"c"),
1238 info.deltaRMinTo(
"t"))
1243 dump_ParticleImpl (info.muon(), f)
1244 fprint (f, info.d0Value(), info.pTrel(),
list(info.tagLikelihood()))
1249 dump_BaseTagInfo (info, f)
1250 for i
in range (info.numTrackInfo()):
1252 dump_SMTrackInfo (info.getTrackInfo(i), f)
1257 dump_BaseTagInfo (info, f)
1258 fprint (f, info.nMatchingTracks(), info.trkJetWidth(),
1259 info.trkJetMaxDeltaR())
1264 fprint (f, [info.energyInSample(i)
for i
in range(8)],
1265 info.energyInCryostat(), info.wtCryo(), info.jet())
1278 ROOT.SetOwnership (tr,
True)
1280 fprint (f,
'\n tr: ')
1282 fprint (f, info.getTrackWeight(t))
1288 dump_Fourvec (info.electron(), f)
1289 fprint (f, info.getElectronWeight (info.electron()))
1297 dump_Fourvec (info.muon(), f)
1298 fprint (f, info.getMuonWeight (info.muon()))
1304 dump_ParticleBase (j, f)
1305 fprint (f,
'\n %s %f %f' %
1309 fprint (f, [x
for x
in j.combinedLikelihood()])
1310 ti = j.jetTagInfoVector()
1312 fprint (f,
'\n %s: ' % info.infoType())
1313 if isinstance (info, PyAthena.Analysis.TruthInfo):
1314 dump_TruthInfo (info, f)
1315 elif isinstance (info, PyAthena.Analysis.SoftLeptonTruthInfo):
1316 dump_SoftLeptonTruthInfo (info, f)
1317 elif isinstance (info, PyAthena.Analysis.SecVtxInfo):
1318 dump_SecVtxInfo (info, f)
1319 elif isinstance (info, PyAthena.Analysis.IPInfoPlus):
1320 dump_IPInfoPlus (info, f)
1321 elif isinstance (info, PyAthena.Analysis.IPInfoBase):
1322 dump_IPInfoBase (info, f)
1323 elif isinstance (info, PyAthena.Analysis.SVInfoBase):
1324 dump_SVInfoBase (info, f)
1325 elif isinstance (info, PyAthena.Analysis.JetProbInfoBase):
1326 dump_JetProbInfoBase (info, f)
1327 elif isinstance (info, PyAthena.Analysis.SoftElectronInfo):
1328 dump_SoftElectronInfo (info, f)
1329 elif isinstance (info, PyAthena.Analysis.JetFitterTagInfo):
1330 dump_JetFitterTagInfo (info, f)
1331 elif isinstance (info, PyAthena.Analysis.BaseTagInfo):
1332 dump_BaseTagInfo (info, f)
1336 for c
in j.constituentKeys():
1337 fprint (f,
'\n %s: ' % c)
1338 info = j.constituent (c)
1339 if isinstance (info, PyAthena.Analysis.JetConstituent):
1340 dump_JetConstituent (info, f)
1341 elif isinstance (info, PyAthena.Analysis.TrackConstituents):
1342 dump_TrackConstituents (info, f)
1343 elif isinstance (info, PyAthena.Analysis.ElectronConstituent):
1344 dump_ElectronConstituent (info, f)
1345 elif isinstance (info, PyAthena.Analysis.MuonConstituent):
1346 dump_MuonConstituent (info, f)
1353 dump_ParticleImpl (p, f)
1354 poltheta = fix_neg0 (p.polarization().theta())
1355 fprint (f,
' %3d %3d %f %f %d %d' %
1359 p.polarization().phi(),
1362 fprint (f,
'\n ', p.hasEtIsol())
1363 dump_HLV (p.genParticle().
momentum(), f)
1365 fprint (f,
'\n p0:')
1369 for i
in range(p.nParents()):
1371 mother = p.genMother(i)
1373 dump_HLV (mother.momentum(), f)
1374 dump_Fourvec (p.mother(mni), f)
1376 fprint (f,
'\n c0:')
1378 for i
in range(p.nDecay()):
1380 child = p.genChild(i)
1382 dump_HLV (child.momentum(), f)
1383 dump_Fourvec (p.child(mni), f)
1388 fprint (f,
'%4d %f' % (p.particleLink().
barcode(), p.probability()))
1389 gp = p.particleLink().cptr()
1391 dump_HLV (gp.momentum(), f)
1393 fprint (f,
' (no part)')
1399 fprintln (f,
' ', c.trackParticleContainerLink().
isValid())
1400 elclass = PyAthena.ElementLink (PyAthena.Rec.TrackParticleContainer)
1401 for i
in range (c.size()):
1404 cont = PyAthena.Rec.TrackParticleContainer()
1405 el.toIndexedElement (cont, i)
1406 dump_TrackParticleTruth (c[PyAthena.Rec.TrackParticleTruthKey(el)], f)
1412 fprint (f, [s[i].
value()
for i
in range(s.NUM_SUBDETECTORS)])
1417 fprint (f, [l.barcode()
for l
in t])
1423 fprint (f,
' ', c.trackCollectionLink().
key(), c.size())
1425 fprint (f,
'\n %3d' % p.first.index(),
' common ')
1426 dump_SubDetHitStatistics (p.second.statsCommon(), f)
1427 fprint (f,
'\n ',
' track ')
1428 dump_SubDetHitStatistics (p.second.statsTrack(), f)
1429 fprint (f,
'\n ',
' truth ')
1430 dump_SubDetHitStatistics (p.second.statsTruth(), f)
1431 fprint (f,
'\n ',
' trajectory ')
1432 dump_TruthTrajectory (p.second.trajectory(), f)
1438 fprint (f,
'(null)')
1440 fprint (f,
'%f %f' % (info.chiSquared(), info.doubleNumberDoF()))
1446 fprint (f,
'(null)')
1448 fprint (f, [info.get(i)
for i
in range(32)],
1449 [info.isHit(i)
for i
in range(21)])
1454 fprint (f,
typename(info.__class__) +
':')
1455 dump_Threevec (info.center(), f)
1456 dump_Threevec (PyAthena.Trk.Surface.normal (info), f)
1457 if (isinstance (info, PyAthena.Trk.DiscSurface)
and
1458 typename(info.bounds().__class__).find (
'NoBounds') >= 0):
1459 bd_class = info.bounds().__class__
1460 fprint (f,
'(no bounds)')
1461 elif (isinstance (info, PyAthena.Trk.CylinderSurface)
and
1462 (
not info.hasBounds()
or not info.bounds())):
1463 fprint (f,
'(no bounds)')
1464 bd_class = PyAthena.Trk.CylinderBounds
1466 dump_Threevec (info.globalReferencePoint(), f)
1467 bd_class = info.bounds().__class__
1468 if isinstance (info, PyAthena.Trk.CylinderSurface):
1469 dump_AmgVector (info.rotSymmetryAxis(), f)
1471 dump_AmgMatrix (info.transform().
matrix(), f, thresh=1e-8)
1473 layer = tonone (info.associatedLayer())
1475 layer = typename (info.associatedLayer().__class__)
1476 fprint (f,
'\n ly', layer)
1477 fprint (f,
'\n bd',
typename(bd_class))
1479 info.associatedDetectorElementIdentifier().getString())
1483 dump_Surface (info, f)
1488 dump_Surface (info, f)
1493 dump_Surface (info, f)
1498 dump_Surface (info, f)
1503 dump_Surface (info, f)
1508 os = ROOT.ostringstream()
1510 s = os.str().replace (
'\n',
';')
1516 dump_StraightLineSurface (info, f)
1518 dump_LineSaggingDescriptor (info.distortionDescriptor())
1525 elif isinstance (p, PyAthena.Trk.PerigeeSurface):
1526 dump_PerigeeSurface (p, f)
1527 elif isinstance (p, PyAthena.Trk.PlaneSurface):
1528 dump_PlaneSurface (p, f)
1529 elif isinstance (p, PyAthena.Trk.StraightLineSurface):
1530 dump_StraightLineSurface (p, f)
1531 elif isinstance (p, PyAthena.Trk.CylinderSurface):
1532 dump_CylinderSurface (p, f)
1533 elif isinstance (p, PyAthena.Trk.DiscSurface):
1534 dump_DiscSurface (p, f)
1535 elif isinstance (p, PyAthena.Trk.SaggedLineSurface):
1536 dump_SaggedLineSurface (p, f)
1543 if hasattr(p,
'hasSurface')
and not p.hasSurface():
1546 dump_surface (p.associatedSurface(), f)
1551 dump_AmgVector (info.parameters(), f)
1552 dump_Threevec (info.momentum(), f)
1553 dump_Threevec (info.position(), f)
1554 dump_Twovec (info.localPosition(), f)
1555 fprint (f,
"%f" % (info.charge(),))
1556 if info.covariance():
1557 fprint (f,
'\n cov')
1558 dump_AmgMatrix (info.covariance(), f)
1560 dump_associatedSurface (info, f)
1565 dump_ParametersBase (info, f)
1566 fprint (f,
'\n curvilinear')
1567 fprint (f, info.cIdentifier())
1568 mat = info.measurementFrame()
1569 dump_AmgVector (mat.col(0), f)
1570 dump_AmgVector (mat.col(1), f)
1571 dump_AmgVector (mat.col(2), f)
1579 if typename(p.__class__).startswith (
'DataModel_detail::ElementProxy<'):
1583 elif (
typename(p.__class__).startswith (
'Trk::ParametersT<')
or
1584 typename(p.__class__).startswith (
'Trk::ParametersBase<')):
1585 dump_ParametersBase (p, f)
1586 elif typename(p.__class__).startswith (
'Trk::CurvilinearParametersT<'):
1587 dump_CurvilinearParameters (p, f)
1596 if p.trackParameters().
size() > 0
and p.trackParameters()[-1]:
1597 dp = p.definingParameters()
1599 fprint (f,
"%f" % p.charge())
1602 fprint (f,
"%1d" % p.particleOriginType())
1607 vx = p.reconstructedVertex()
1609 dump_Threevec (vx.recVertex().position(), f)
1611 fprint (f, tonone (vx))
1612 if p.fitQuality() != fitQualityNull:
1614 dump_FitQuality (p.fitQuality(), f)
1615 if p.trackSummary():
1617 dump_TrackSummary (p.trackSummary(), f)
1619 dump_parameters (dp, f)
1621 for x
in p.trackParameters():
1623 dump_parameters (x, f)
1628 dump_AmgVector (p, f)
1629 fprint (f, p.parameterKey())
1634 dump_LocalParameters (p.localParameters(), f)
1635 dump_AmgMatrix (p.localCovariance(), f)
1640 dump_MeasurementBase (p, f)
1641 fprint (f, p.identify().getString())
1646 dump_RIO_OnTrack (p, f)
1647 fprint (f, p.idDE().
value(), p.isBroadCluster())
1648 dump_AmgVector (p.globalPosition(), f)
1653 dump_SiClusterOnTrack (p, f)
1654 dump_EL (p.prepRawDataLink(), f)
1655 fprint (f, p.hasClusterAmbiguity(), p.isFake(), p.energyLoss())
1656 fprint (f, p.detectorElement().identifyHash().
value())
1661 dump_SiClusterOnTrack (p, f)
1662 dump_EL (p.prepRawDataLink(), f)
1663 fprint (f, p.positionAlongStrip())
1664 fprint (f, p.detectorElement().identifyHash().
value())
1669 dump_RIO_OnTrack (p, f)
1670 dump_AmgVector (p.globalPosition(), f)
1671 fprint (f, p.idDE().
value())
1672 dump_EL (p.prepRawDataLink(), f)
1673 fprint (f, p.status(), p.localAngle(), p.positionAlongWire())
1674 fprint (f, p.highLevel(), p.timeOverThreshold())
1675 fprint (f, p.detectorElement().identifyHash().
value())
1680 dump_RIO_OnTrack (p, f)
1681 dump_AmgVector (p.globalPosition(), f, thresh=1e-8)
1682 dump_EL (p.prepRawDataLink(), f)
1683 fprint (f, p.status(), p.localAngle(), p.positionAlongWire())
1685 fprint (f, p.detectorElement().identifyHash().
value())
1686 dump_StraightLineSurface (p.associatedSurface(), f)
1691 dump_MeasurementBase (p, f)
1692 fprint (f, p.indexOfMaxAssignProb())
1693 sz = p.numberOfContainedROTs()
1694 fprint (f, [p.assignmentProbability(i)
for i
in range(sz)])
1699 dump_RIO_OnTrack (p, f)
1700 dump_AmgVector (p.globalPosition(), f, 1e-12, 4)
1701 fprint (f, p.positionAlongStrip())
1707 dump_CompetingRIOsOnTrack (p, f)
1708 dump_AmgVector (p.globalPosition(), f)
1709 dump_associatedSurface (p, f)
1710 for r
in p.containedROTs():
1711 fprint (f,
'\n mc ')
1712 dump_MuonClusterOnTrack (r, f)
1717 dump_MuonClusterOnTrack (p, f)
1718 dump_EL (p.prepRawDataLink(), f)
1719 fprint (f, p.time())
1720 fprint (f, p.detectorElement().identifyHash().
value())
1725 if isinstance (p, str):
1728 ss = ROOT.std.ostringstream()
1729 p.toOutputStream (ss)
1730 fprint (f, ss.str())
1737 ss = ROOT.std.ostringstream()
1743 if s[0] ==
'{': s = s[1:]
1744 if s[-1] ==
'}': s = s[:-1]
1745 for a
in s.split(
','):
1746 fprint (f,
' ', a,
'\n')
1751 fprint (f, p.first, p.second)
1757 for x
in p.getAll():
1758 fprint (f,
'\n ', x.first, x.second)
1764 fprint (f,
' Missing errors:', list (p.getMissingErrorSet()))
1765 fprint (f,
'\n Error errors:', list (p.getErrorErrorSet()))
1766 fprint (f,
'\n Sid errors:', list (p.getSidErrorSet()))
1767 fprint (f,
'\n L1 errors:', [(x.first, x.second)
for x
in p.getL1ErrorSet()])
1768 fprint (f,
'\n BCID errors:', [(x.first, x.second)
for x
in p.getBCIDErrorSet()])
1769 fprint (f,
'\n ROB errors:', [(x.first, x.second)
for x
in p.getRobErrorSet()])
1774 fprint (f,
'feb', p.FEBId().getString(), p.FebELVL1Id(), p.FebBCId(),
1775 'febh', p.FormatVersion(), p.SourceId(),
1776 p.RunNumber(), p.ELVL1Id(), p.BCId(), p.LVL1TigType(),
1778 'dsp', p.DspCodeVersion(), p.DspEventCounter(),
1779 'res', p.RodResults1Size(), p.RodResults2Size(), p.RodRawDataSize(),
1780 p.NbSamples(), p.NbSweetCells1(), p.NbSweetCells2(),
1781 p.OnlineChecksum(), p.OfflineChecksum(), p.RodStatus(),
1783 list(p.FebCtrl1()),
list(p.FebCtrl2()),
list(p.FebCtrl3()))
1788 fprint (f, p.identify().getString(), p.energy(), p.time(),
1789 p.quality(), p.provenance(), p.gain())
1794 fprint (f, [(x.getROBId(), x.isStatusOk(), x.isStatusPrefetched(),
1795 x.getROBSize(), x.getEncodedState(), x.getHistory(),
1796 x.getStatus())
for x
in p.getData()],
1801 fprint (f,
list(p.getWord()),
list(p.getVarKey()),
list(p.getVarVal()))
1805 fprint (f, [ord(x)
for x
in p.getByte()],
list(p.getWord()))
1809 fprint (f, p.getEncoded(),
list(p.getVarKey()),
list(p.getVarVal()))
1810 for a
in p.getAlg():
1812 dump_TrigMonAlg (a, f)
1816 fprint (f, p.getId(),
1817 p.getIndex(), p.getType(),
1818 p.getActiveState(), p.getErrorState(), p.isTerminalNode(),
1819 p.isOutputL2Node(), p.isOutputEFNode(), p.isTopologicalTE(),
1820 list(p.getChildIndex()), list (p.getParentIndex()),
1821 list(p.getRoiId()),
list(p.getClid()),
1822 list(p.getVarKey()),
list(p.getVarVal()))
1826 fprint (f,
'r/e/lb/bc', p.getRun(), p.getEvent(), p.getLumi(), p.getBunchId(),
1827 'tm', p.getSec(), p.getNanoSec(),
'addl',
list(p.word()))
1828 fprint (f,
'\n robs')
1829 for r
in p.getROBVec():
1831 dump_TrigMonROB (r, f)
1832 fprint (f,
'\n rois')
1833 for r
in p.getRoiVec():
1835 dump_TrigMonRoi (r, f)
1836 fprint (f,
'\n seq2')
1837 for r
in p.getSeqVec():
1839 dump_TrigMonSeq (r, f)
1840 fprint (f,
'\n tes')
1841 for r
in p.getTEVec():
1843 dump_TrigMonTE (r, f)
1844 fprint (f,
'\n l1',
list(p.getL1Item()))
1845 fprint (f,
'\n hlt',
list(p.getChain()))
1846 fprint (f,
'\n key',
list(p.getVarKey()))
1847 fprint (f,
'\n val',
list(p.getVarVal()))
1852 fprint (f, p.getCounter(), p.getLogic(), p.getLabel(),
1853 list(p.getOutputTEs()))
1857 fprint (f, p.getName(), p.getChainName(), p.getLowerName(),
1858 p.getId(), p.getCounter(),
1859 p.getLowerId(), p.getLowerCounter(),
1860 p.getLevelId(), p.getPrescale(), p.getPassThrough())
1861 fprint (f,
'\n lower ids',
list(p.getLowerIds()))
1862 fprint (f,
'\n stream ps',
list(p.getStreamPS()))
1863 fprint (f,
'\n stream name',
list(p.getStream()))
1864 fprint (f,
'\n group',
list(p.getGroup()))
1865 fprint (f,
'\n EB hypo',
list(p.getEBHypo()))
1866 fprint (f,
'\n sigs')
1867 for s
in p.getSignature():
1869 dump_TrigConfSig (s, f)
1874 ss = ROOT.ostringstream()
1876 fprint (f, p.index(), ss.str())
1880 fprint (f, p.getName(), p.getIndex(), p.getId(), p.getTopoTE())
1881 fprint (f,
'\n algs')
1882 for a
in p.getAlg():
1884 dump_TrigConfAlg (a, f)
1885 fprint (f,
'\n input TE',
list(p.getInputTEs()))
1889 fprint (f,
'r/e/lb', p.getRun(), p.getEvent(), p.getLumi(),
1890 'tm', p.getSec(), p.getNanoSec(),
1891 'keys', p.getMasterKey(), p.getHLTPrescaleKey(),
1892 p.getLVL1PrescaleKey())
1893 fprint (f,
'\n chains')
1894 for r
in p.getChainVec():
1896 dump_TrigConfChain (r, f)
1897 fprint (f,
'\n seqs')
1898 for r
in p.getSeqVec():
1900 dump_TrigMonSeq (r, f)
1901 fprint (f,
'\n key',
list(p.getVarKey()))
1902 fprint (f,
'\n val',
list(p.getVarVal()))
1903 fprint (f,
'\n pairkey',
list(p.getPairKey()))
1904 fprint (f,
'\n pairval',
list(p.getPairVal()))
1915 fprint (f, p.lvl1Id(), p.link(), p.frontendFlag(), p.bcId(), p.robId())
1919 fprint (f, p.hitDiscConfig(), p.link())
1923 dump_AFP_RawDataCommonHead (p, f)
1924 fprint (f, p.column(), p.row(), p.timeOverThreshold())
1928 dump_AFP_RawCollectionHead (p, f)
1929 for r
in p.dataRecords():
1931 dump_AFP_SiRawData (r, f)
1935 dump_AFP_RawDataCommonHead (p, f)
1936 fprint (f, p.header(), p.edge(), p.channel())
1938 fprint (f, p.delayedTrigger(), p.triggerPattern())
1940 fprint (f, p.time(), p.pulseLength())
1944 dump_AFP_RawCollectionHead (p, f)
1945 for r
in p.dataRecords():
1947 dump_AFP_ToFRawData (r, f)
1952 fprint (f, p.lvl1Id(), p.bcId(), p.lumiBlock(),
1953 p.timeStamp(), p.timeStampNS())
1954 fprint (f,
'\n si collections')
1955 for c
in p.collectionsSi():
1957 dump_AFP_SiRawCollection (c, f)
1958 fprint (f,
'\n tof collections')
1959 for c
in p.collectionsToF():
1961 dump_AFP_ToFRawCollection (c, f)
1966 fprint (f, p.GetWordId_PMF(), p.GetPMFId_PMF(), p.GetMBId_PMF(),
1967 p.GetEventCount_PMF(), p.Get_bit16(), p.Get_bit18(),
1968 p.Get_bit26_27(), p.Get_bit24_27(), p.Get_error_bit17(),
1969 list(p.HitChan()), list (p.dataWords()))
1974 fprint (f,
'collection')
1975 fprint (f,
'mb', p.GetMBId_POT(),
'mrod', p.GetMrodId_POT(),
1976 'ec', p.GetEventCount_POT(),
1977 'scid', p.Get_scaler_POT(),
1978 'adc', p.Get_ADC1_POT(), p.Get_ADC2_POT(),
1979 'err', p.GetTrigSyncErr(),
1980 'pat', boolvec (p.Get_pattern_POT()))
1981 fprint (f,
'\n data')
1982 for r
in p.Get_POT_DATA():
1984 dump_ALFA_RawData (r, f)
1985 fprint (f,
'\n contents')
1988 dump_ALFA_RawData (r, f)
1994 if p.is_FullEVmarker(): fprint (f,
'fullev')
1995 if p.is_ROBmarker(): fprint (f,
'rob')
1996 if p.is_RODmarker(): fprint (f,
'rod')
1997 fprint (f,
'sd/mrod/l1/ecr/bc', p.subdetId(), p.mrodId(), p.lvl1Id(),
1998 p.ecrId(), p.bcId())
1999 fprint (f,
'\n run/typ/tt/evtyp', p.runNum(), p.runType(),
2000 p.trigtypeId(), p.DetEventType(),
2001 'ts', p.GetTimeStamp(), p.GetTimeStampns(),
2002 p.GetLumiBlock(), p.GetBCId())
2003 fprint (f,
'\n lvl1',
boolvec(p.GetLvl1Pattern_POT()))
2004 fprint (f,
'\n lvl2',
boolvec(p.GetLvl2Pattern_POT()))
2005 fprint (f,
'\n ef',
boolvec(p.GetEFPattern_POT()))
2008 dump_ALFA_RawDataCollection (c, f)
2013 fprint (f,
list(p.triggerEnergies()),
list(p.triggerTimes()))
2019 fprint (f,
'(Dumped as a part of Analysis::TauJetContainer)')
2025 fprint (f,
'(Dumped as a part of egamma)')
2031 fprint (f,
'(Dumped as a part of jets)')
2037 fprint (f,
'(Dumped as a part of jets)')
2043 for x
in p.get_all_febs():
2044 fprint (f,
'\n ', x.first, x.second)
2050 for x
in p.splitProbMap():
2051 fprint (f,
'\n ', x.first, x.second.first, x.second.second, x.second.isSplit())
2057 fprint (f,
'(null)')
2059 fprint (f, p.word())
2060 for d
in p.getdeposits():
2062 dump_HepMcParticleLink (d.first, f)
2063 fprint (f, d.second)
2069 getData = ROOT.InDetSimDataHelpers.getData
2070 for id
in ROOT.InDetSimDataHelpers.identifiers(p):
2071 fprint (f,
'\n ', id.getString())
2072 dump_InDetSimData (getData (p, id), f)
2078 for x
in ROOT.TrkTruthDataHelpers.getData (p):
2079 fprint (f,
'\n ', x.first.getString())
2080 dump_HepMcParticleLink (x.second, f)
2087 fprint (f,
'\n ', x.first.index())
2088 dump_HepMcParticleLink (x.second.particleLink(), f)
2089 fprint (f, x.second.probability())
2094 fprint (f, p.ttOnlineID().getString(), p.ttOfflineID().getString(),
2101 fprint (f, p.getTTCTime(), p.getTime())
2102 dump_H3V (p.GetCounterPosition(), f)
2103 dump_H3V (p.GetcosThetaDirection(), f)
2115 dump_MuonClusterOnTrack (p, f)
2116 dump_EL (p.prepRawDataLink(), f)
2117 fprint (f, p.detectorElement().identifyHash().
value())
2122 dump_MuonClusterOnTrack (p, f)
2123 dump_EL (p.prepRawDataLink(), f)
2124 fprint (f, p.detectorElement().identifyHash().
value())
2129 dump_MuonClusterOnTrack (p, f)
2130 dump_EL (p.prepRawDataLink(), f)
2131 fprint (f, p.detectorElement().identifyHash().
value())
2132 fprint (f,
'\n stripDriftDists: ',
list(p.stripDriftDists()))
2133 fprint (f,
'\n stripDriftDistErrors:')
2134 for m
in p.stripDriftDistErrors():
2136 dump_AmgMatrix (m, f)
2141 dump_MuonClusterOnTrack (p, f)
2142 dump_EL (p.prepRawDataLink(), f)
2143 fprint (f, p.status(), p.timeStatus(), p.time())
2144 if p.detectorElement():
2145 fprint (f, p.detectorElement().identifyHash().
value())
2147 fprint (f,
'(null detEl)')
2152 dump_MeasurementBase (p, f)
2153 dump_AmgVector (p.globalPosition(), f)
2154 dump_associatedSurface (p, f)
2160 fprint (f,
'(null)')
2163 fprint (f, nm +
': ')
2164 if nm ==
'InDet::PixelClusterOnTrack':
2165 dump_PixelClusterOnTrack (p, f)
2166 elif nm ==
'InDet::SCT_ClusterOnTrack':
2167 dump_SCT_ClusterOnTrack (p, f)
2168 elif nm ==
'InDet::TRT_DriftCircleOnTrack':
2169 dump_TRT_DriftCircleOnTrack (p, f)
2170 elif nm ==
'Muon::MdtDriftCircleOnTrack':
2171 dump_MdtDriftCircleOnTrack (p, f)
2172 elif nm ==
'Muon::MdtDriftCircleOnTrack':
2173 dump_MdtDriftCircleOnTrack (p, f)
2174 elif nm ==
'Muon::CompetingMuonClustersOnTrack':
2175 dump_CompetingMuonClustersOnTrack (p, f)
2176 elif nm ==
'Muon::RpcClusterOnTrack':
2177 dump_RpcClusterOnTrack (p, f)
2178 elif nm ==
'Muon::TgcClusterOnTrack':
2179 dump_TgcClusterOnTrack (p, f)
2180 elif nm ==
'Muon::sTgcClusterOnTrack':
2181 dump_sTgcClusterOnTrack (p, f)
2182 elif nm ==
'Muon::MMClusterOnTrack':
2183 dump_MMClusterOnTrack (p, f)
2184 elif nm ==
'Muon::CscClusterOnTrack':
2185 dump_CscClusterOnTrack (p, f)
2186 elif nm ==
'Trk::PseudoMeasurementOnTrack':
2187 dump_PseudoMeasurementOnTrack (p, f)
2194 fprint (f, p.dumpType(), p.thicknessInX0())
2195 dump_associatedSurface (p, f)
2203 fprint (f,
daz(p.deltaPhi()),
daz(p.deltaTheta()))
2204 fprint (f, p.sigmaDeltaPhi(), p.sigmaDeltaTheta())
2209 dump_MaterialEffectsBase (p, f)
2210 dump_ScatteringAngles (p.scatteringAngles(), f)
2211 dump_EnergyLoss (p.energyLoss(), f)
2217 fprint (f,
'(null)')
2220 fprint (f, nm +
': ')
2221 if nm ==
'Trk::MaterialEffectsOnTrack':
2222 dump_MaterialEffectsOnTrack (p, f)
2228 fprint (f,
'(null)')
2230 fprint (f, p.deltaTranslation(), p.sigmaDeltaTrranslation(), p.deltaAngle(), p.sigmaDeltaAngle())
2231 for t
in p.vectorOfAffectedTSOS():
2232 fprint (f,
'\n ts ')
2233 dump_parameters (t.trackparameters(), f)
2234 fprint (f,
'\n sf ')
2235 dump_Surface (p.associatedSurface(), f)
2240 dump_FitQuality (p.fitQualityOnSurface(), f)
2241 fprint (f,
'\n pm ')
2242 dump_parameters (p.trackParameters(), f)
2243 fprint (f,
'\n ms ')
2244 dump_measurement (p.measurementOnTrack(), f)
2245 fprint (f,
'\n me ')
2246 dump_materialeffects (p.materialEffectsOnTrack(), f)
2247 fprint (f,
'\n ae ')
2248 dump_AlignmentEffectsOnTrack (p.alignmentEffectsOnTrack(), f)
2253 fprint (f, p.trackFitter(), p.particleHypothesis())
2255 fprint (f, p.patternRecognition().
to_string())
2261 pm = p.trackParameters()
2262 for i
in range(len(pm)):
2264 dump_parameters (pm[i], f)
2266 for x
in p.measurementsOnTrack():
2268 dump_measurement (x, f)
2270 for x
in p.outliersOnTrack():
2272 dump_measurement (x, f)
2274 for x
in p.trackStateOnSurfaces():
2276 dump_TrackStateOnSurface (x, f)
2277 fprint (f,
'\n pp ')
2278 dump_parameters (p.perigeeParameters(), f)
2279 fprint (f,
'\n fq ')
2280 dump_FitQuality (p.fitQuality(), f)
2281 fprint (f,
'\n tm ')
2282 dump_TrackSummary (p.trackSummary(), f)
2283 fprint (f,
'\n ti ')
2284 dump_TrackInfo (p.info(), f)
2289 dump_MeasurementBase (p, f)
2290 fprint (f, p.author())
2291 dump_FitQuality (p.fitQuality(), f)
2292 for x
in p.containedMeasurements():
2293 dump_measurement (x, f)
2299 fprint (f,
'%d %f %f %f %f %f' %
2309 fprint (f,
'\n %d %f %f %f' %
2320 fprint (f,
"%f %f" %
2323 fprint (f,
"\n %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f" %
2340 fprint (f,
"\n %f %f %f %f %f %f %f %f" %
2349 fprint (f,
"\n %f %f %f %f" %
2363 fprint (f,
"%d %d %d %d %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %f %d %d %d" %
2392 dump_Fourvec (h.getObject(), f)
2394 fprint (f,
'\n %d %f %f %f %f %f' %
2401 fprint (f,
'\n ', [x
for x
in toiter1(h)])
2407 fprint (f,
" %d %d %d %d %d %d %d %d %d %f %f %f %f %f %f %f %f %f %f %f " %
2408 (m.isValidDefault(),
2413 m.getDefaultType().
type(),
2416 m.getType(0).
type(),
2428 fprint (f,
'\n %f %f %f %f %f %f %f %d %d %d' %
2440 fprint (f,
'\n ', [i
for i
in m.types()])
2442 fprint (f,
'\n %d %f %f %f %f %f' %
2450 [x
for x
in toiter1 (m.getExcess())],
2451 [x
for x
in toiter1 (m.getDeficit())])
2452 dump_MissingETSigHypo (m.getHypo(), f)
2453 dump_MissingETSigHypo (m.getDefaultHypo(), f)
2454 dump_MissingETSigHypo (m.getHypo(0), f)
2460 dump_MissingET (m, f)
2461 fprintln (f,
' ', m.calibType())
2463 fprintln (f,
' %d %d %f %f %f' %
2474 dump_MissingET (m, f)
2476 fprintln (f,
' %d %f %f %f' %
2487 fprint (f,
"%3d %f %f %f %f %f %d %d %d" %
2488 (c.getClusterSize(),
2497 fprint (f, c.getRecoStatus().getStatusWord())
2498 beg = c.beginMoment()
2501 fprint (f,
'\n mom %d %f' % (c.getMomentType(beg),
2502 c.getMomentValue(beg)))
2505 for i
in range (c.nSamples()):
2506 fprint (f,
'\n %2d %d %d %d %f %f %f %f %f %f %f %f %f %f %f' %
2508 c.is_valid_sampling(i),
2528 ll.sort (key=
lambda a: a.pt(), reverse=
True)
2529 dump_list (ll, f, dump_CaloCluster, nmax=nmax)
2538 el = beg.getElement()
2539 if last != el.dataID():
2542 fprint (f, el.index())
2551 fprint (f,
'%d/%f' % (beg.index(), beg.weight()))
2557 fprint (f, l.ID().getString())
2558 if l.__class__ == PyAthena.TileCell:
2559 fprint (f,
'%.2f %.2f %d %d %d ' % (l.ene1(), l.time1(), l.qual1(), l.qbit1(), l.gain1()))
2560 fprint (f,
'%.2f %.2f %d %d %d ' % (l.ene2(), l.time2(), l.qual2(), l.qbit2(), l.gain2()))
2562 fprint (f,
'%.2f %.2f %d %d %d ' % (l.energy(), l.time(), l.quality(), l.provenance(), l.gain()))
2567 dump_Threevec (v.position(), f)
2573 dump_FitQuality (v.fitQuality(), f)
2574 dump_AmgMatrix (v.covariancePosition(), f)
2582 pm = trk.trackParameters()
2583 if pm
and len(pm) > 0:
2585 dump_parameters (perigee, f)
2590 dump_ITrackLink (l, f)
2591 fprint (f,
'\n ', l.isValid(), l.index(), l.dataID())
2596 dump_ITrackLink (l, f)
2597 fprint (f, l.isValid(), l.index(), l.dataID())
2602 dump_FitQuality (t.trackQuality(), f)
2603 fprint (f,
'%f %f' %
2604 (t.vtxCompatibility(),
2606 fprint (f,
tonone(t.linState()),
tonone(t.ImpactPoint3dAtaPlane()))
2607 if t.perigeeAtVertex():
2609 dump_parameters (t.perigeeAtVertex(), f)
2616 tel = PyAthena.ElementLink (
'DataVector<Trk::Track>')
2617 if not isinstance (t.trackOrParticleLink(), tel):
2620 trk = t.trackOrParticleLink().cptr()
2622 pm = trk.trackParameters()
2623 if pm
and len(pm) > 0:
2625 dump_parameters (perigee, f)
2627 if isinstance (t.trackOrParticleLink(), PyAthena.Trk.LinkToTrack):
2628 dump_LinkToTrack (t.trackOrParticleLink(), f)
2629 elif isinstance (t.trackOrParticleLink(),PyAthena.Trk.LinkToTrackParticleBase):
2630 dump_LinkToTrackParticleBase (t.trackOrParticleLink(), f)
2632 fprint (f, t.trackOrParticleLink())
2637 dump_VxTrackAtVertex (t, f)
2638 fprint (f,
'\n ',
tonone(t.linkToVertices()))
2643 dump_RecVertex (v.recVertex(), f)
2647 tav = v.vxTrackAtVertex()
2648 for i
in range(tav.size()):
2650 fprint (f,
'\n ',
typename(t.__class__))
2651 if isinstance (t, PyAthena.Trk.MVFVxTrackAtVertex):
2652 dump_MVFVxTrackAtVertex (t, f)
2653 elif t.__class__ == PyAthena.Trk.VxTrackAtVertex:
2654 dump_VxTrackAtVertex (t, f)
2661 fprint (f,
tonone(v.constraintVertex()),
2663 tonone(v.linearizationVertex()))
2668 dump_VxCandidate1 (v, f)
2669 fprint (f,
'\n ', v.isInitialized(),
'fi')
2670 dump_MvfFitInfo (v.vertexFitInfo(), f)
2676 if isinstance (v, PyAthena.Trk.MVFVxCandidate):
2677 dump_MVFVxCandidate (v, f)
2678 elif (v.__class__ == PyAthena.Trk.VxCandidate
or
2679 isinstance (v, PyAthena.Trk.V0Hypothesis)):
2680 dump_VxCandidate1 (v, f)
2681 elif isinstance (v, PyAthena.Trk.ExtendedVxCandidate):
2682 dump_ExtendedVxCandidate (v, f)
2685 dump_VxCandidate1 (v, f)
2690 fprint (f,
'%9d %9d %9d %9d %9d %9d' %
2694 e.time_stamp_ns_offset(),
2696 e.bunch_crossing_id()))
2701 fprint (f, e.typeToString(), e.user_type(), e.mc_event_weight())
2706 fprint (f, e.statusElement(), e.extendedLevel1ID(), e.level1TriggerType())
2707 fprint (f,
'\n l2:', formatItemUsingLong ([x
for x
in e.level2TriggerInfo()]))
2708 fprint (f,
'\n ef:', formatItemUsingLong ([x
for x
in e.eventFilterInfo()]))
2709 fprint (f,
'\n st:', [(x.name(), x.type(), x.obeysLumiblock())
for x
in e.streamTags()])
2715 fprint (f, e.clID())
2716 dump_EventID (e.event_ID(), f)
2718 fprint (f, e.actualInteractionsPerCrossing(), e.averageInteractionsPerCrossing())
2719 for i
in range(ROOT.EventInfo.nDets):
2720 fprint (f,
'\n det', i, e.eventFlags(i), e.errorState(i))
2722 dump_EventType (e.event_type(), f)
2724 dump_TriggerInfo (e.trigger_info(), f)
2730 dump_EventInfo (e, f)
2731 for (i,s)
in enumerate (toiter (e.beginSubEvt(), e.endSubEvt())):
2732 fprint (f,
'\n subevt', i, s.time(), s.index(), s.BCID(), s.type())
2738 fprint (f,
'nevents: ', e.getNumberOfEvents())
2741 fprint (f,
'\nproc tags: ',
list(e.getProcessingTags()))
2742 fprint (f,
'\nitem list: ',
formatItemUsingLong([(p.first, p.second)
for p
in e.getItemList()]))
2743 for typ
in list(e.getEventTypes()):
2745 dump_EventType (typ, f)
2751 fn = getattr(e, a,
None)
2754 v = e.attribute_as_string(a)
2755 if v ==
'':
return None
2758 fn = getattr(e, a,
None)
2761 return [typ(x)
for x
in e.attribute_as_string(a).
split()]
2765 if hasattr(e,
'particles_size'):
2766 return e.particles_size()
2767 return e.particles().
size()
2769 if hasattr(e,
'vertices_size'):
2770 return e.vertices_size()
2771 return e.vertices().
size()
2773 if hasattr(e,
'particles_begin'):
2774 return toiter (e.particles_begin(), e.particles_end())
2775 return e.particles()
2777 if hasattr(e,
'vertices_begin'):
2778 return toiter (e.vertices_begin(), e.vertices_end())
2781 if hasattr(e,
'signal_process_vertex'):
2782 return e.signal_process_vertex()
2783 for v
in e.vertices():
2784 if v.attribute_as_string(
'signal_process_vertex') ==
'1':
2788 if hasattr(e,
'particles_in_size'):
2789 return e.particles_in_size()
2790 return e.particles_in().
size()
2792 if hasattr(e,
'particles_out_size'):
2793 return e.particles_out_size()
2794 return e.particles_out().
size()
2802 while beg != end
and sz > 0:
2806 out.append (x.barcode())
2811 if hasattr(v,
'particles_in_const_begin'):
2812 parts =
barcodes(v.particles_in_const_begin(),
2813 v.particles_in_const_end(),
2814 v.particles_in_size())
2820 if hasattr(v,
'particles_out_const_begin'):
2821 parts =
barcodes(v.particles_out_const_begin(),
2822 v.particles_out_const_end(),
2823 v.particles_out_size())
2829 fprint (f,
"%d %d %d %d %d" %
2830 (v.status()
if hasattr(v,
'status')
else v.id(),
2832 v.parent_event().event_number(),
2835 dump_Threevec (v.position(), f)
2836 fprint (f,
'%f ' % v.position().
t())
2837 if not hasattr(v,
'weights'):
2839 elif v.weights().
size() == 0:
2842 ww =
list(v.weights())
2843 fprintln (f, [w
for w
in ww])
2856 fprint (f,
"%d %5s %d %d" %
2858 PDG.pdgid_to_name(p.pdg_id()),
2859 p.parent_event().event_number(),
2861 if p.production_vertex():
2862 s =
str(_gen_barcode (p.production_vertex())) +
'('
2863 parts = genvertex_in_barcodes (p.production_vertex())
2864 for bc
in parts: s +=
'%d ' % bc
2865 if len(parts) > 3: s +=
'...'
2871 s = str (_gen_barcode (p.end_vertex())) +
'(->'
2872 parts = genvertex_out_barcodes (p.end_vertex())
2873 for bc
in parts: s +=
'%d ' % bc
2874 if len(parts) > 3: s +=
'...'
2879 dump_HLV (p.momentum(), f)
2880 if hasattr (p,
'polarization'):
2881 pol = p.polarization()
2882 poltheta = fix_neg0 (pol.theta())
2883 fprint (f,
"%f %f" % (poltheta, pol.phi()))
2884 if pol.normal3d().theta() != 0
or pol.normal3d().phi() != 0:
2885 fprint (f,
"%f %f" %
2886 (pol.normal3d().theta(), pol.normal3d().phi()))
2888 poltheta = fix_neg0 (
_gen_attr(p,
'theta', float))
2890 fprint (f,
"%f %f" % (poltheta, polphi))
2895 fprint (f,
'%d %d %f %f %f %d %d' %
2903 fprint (f,
'\n wt', [w
for w
in e.weights()], \
2908 dump_GenVertex (sv, f)
2913 dump_GenVertex (v, f)
2920 dump_GenParticle (p, f)
2928 fprint (f, t.dump())
2934 fprint (f,
"%d %s %f %d %d %d %d %d %d %d %d" %
2940 m.getSectorAddress(),
2941 m.isFirstCandidate(),
2942 m.isMoreCandInRoI(),
2943 m.isMoreCandInSector(),
2951 fprint (f,
"%d %f %f %f %f %f %f %d" %
2960 for (n,v)
in zip (m.getThresholdNames(), m.getThresholdValues()):
2967 fprint (f,
"%d %d %f %f %f" %
2973 for (n,v)
in zip (m.getThresholdNames(), m.getThresholdValues()):
2979 fprint (f,
"%d %d" %
2981 m.getThrPattern(),))
2982 fprint (f, [t
for t
in m.getThresholds()])
2987 fprint (f,
"%d %d %d %f %f %f %f %f %d %d %d %d %d %d" %
3000 m.getThrPatSummET(),
3001 m.getThrPatMissET()))
3002 fprint (f, [t
for t
in m.getThresholds()])
3008 for m
in t.getMuonROIs():
3010 dump_Muon_ROI (m, f)
3011 for m
in t.getEmTauROIs():
3013 dump_EmTau_ROI (m, f)
3014 for m
in t.getJetROIs():
3017 for m
in t.getJetEtROIs():
3019 dump_JetET_ROI (m, f)
3020 for m
in t.getEnergySumROIs():
3022 dump_EnergySum_ROI (m, f)
3027 fprint (f,
"%d %d %d" %
3036 dump_GenericResult (t, f)
3037 fprint (f,
"%d %d %d %d %d %d %d %d %d %d %d %d" %
3038 (t.getHLTResultClassVersion(),
3041 t.getHLTStatus().code,
3042 t.getLvlConverterStatus().code,
3045 t.getNumOfSatisfiedSigs(),
3046 t.isCreatedOutsideHLT(),
3047 t.isHLTResultTruncated(),
3051 fprint (f, [i
for i
in t.partSizes()])
3052 fprint (f, [i
for i
in t.getNavigationResult()])
3053 fprint (f, [i
for i
in t.getChainResult()])
3054 fprint (f, [i
for i
in t.getNavigationResultCuts()])
3060 fprint (f,
'version', p.getVersion())
3061 fprint (f,
'\n streamtags',
list(p.getStreamTags()))
3064 fprint (f,
'\n hltbits',
list(p.getHltBitsAsWords()))
3065 fprint (f,
'\n data size', p.getSerialisedData().
size())
3067 fprint (f,
'\n status',
list(p.getStatus()))
3068 fprint (f,
'\n trunc', p.severeTruncation(),
list(p.getTruncatedModuleIds()))
3074 fprint (f, t.isConfigured(),
3076 t.anyActiveL1ItemAfterVeto(),
3078 fprint (f,
'\n ', [i
for i
in t.itemsPassed()])
3079 fprint (f,
'\n ', [i
for i
in t.itemsBeforePrescale()])
3080 fprint (f,
'\n ', [i
for i
in t.itemsAfterPrescale()])
3081 fprint (f,
'\n ', [i
for i
in t.itemsAfterVeto()])
3087 fprint (f, t.masterKey())
3089 dump_Lvl1Result (t.getL1Result(), f)
3091 dump_HLTResult (t.getL2Result(), f)
3093 dump_HLTResult (t.getEFResult(), f)
3098 fprint (f, e.id(), e.name())
3103 fprint (f,
'(', s.signature_counter(),
3106 for e
in s.outputTEs():
3107 dump_HLTTriggerElement (e, f)
3122 fprint (f, c.chain_name(),
3126 c.lower_chain_name(),
3127 c.lower_chain_counter(),
3131 c.lower_chain_hash_id())
3132 for s
in c.signatureList():
3133 dump_HLTSignature (s, f)
3134 fprint (f, [t.bit()
for t
in c.triggerTypeList()])
3135 for s
in c.streamTagList():
3136 dump_HLTStreamTag (s, f)
3137 fprint (f, [s
for s
in c.groupList()])
3143 dump_HLTTriggerElement (s.outputTE(), f)
3144 dump_HLTTriggerElement (s.topoStartTE(), f)
3145 for t
in s.inputTEs():
3146 dump_HLTTriggerElement (t, f)
3147 fprint (f, [a
for a
in s.algorithms()],
')')
3155 for c
in d.getChainList().
chains():
3157 dump_HLTChain (c, f)
3158 for c
in d.getSequenceList().sequences():
3160 dump_HLTSequence (c, f)
3170 dump_L1DataBaseclass (c, f)
3194 fprint (f, d.masterKey())
3195 fprint (f,
'\nit', [s
for s
in d.getItems()])
3196 fprint (f,
'\nmu', [s
for s
in d.getMuonThresholds()])
3197 fprint (f,
'\nem', [s
for s
in d.getEMTauThresholds()])
3198 fprint (f,
'\njt', [s
for s
in d.getJetThresholds()])
3199 fprint (f,
'\nfj', [s
for s
in d.getForwardJetThresholds()])
3200 fprint (f,
'\net', [s
for s
in d.getTotalEtThresholds()])
3201 fprint (f,
'\nje', [s
for s
in d.getJetEtThresholds()])
3202 fprint (f,
'\nms', [s
for s
in d.getMissingEtThresholds()])
3205 dump_CTPConfig (d.ctpConfig(), f)
3209 if d.thresholdConfig():
3210 fprint (f, d.thresholdConfig())
3218 fprint (f, d.masterKey())
3219 fprint (f, [i
for i
in d.getPrescales()])
3224 dump_H3V (t.GetPosition(), f)
3225 dump_H3V (t.GetMomentum(), f)
3226 fprint (f, t.GetEnergy(),
3235 fprintln (f, s.code(),
3247 dump_DetStatus (e.second, f)
3252 fprint (f, t.nrMatches())
3253 if t.nrMatches() == 0:
return
3254 fprint (f, t.bestMatch().
barcode(),
3258 t.nrCommonHitsBestSi(),
3259 t.nrCommonHitsBestTRT())
3262 t.nrCommonSiHits(i),
3263 t.nrCommonTRTHits(i))
3264 for i
in range(t.nrMatches())]))
3265 fprint (f, formatItemUsingLong ([(p.first, p.second)
for p
in t.getFamilyTree()]))
3270 fprint (f,
"%f %f %f %f %f %f %f %f %f %f %f %d" %
3281 p.surfaceCoordinate,
3284 fprint (f, [x
for x
in p.cov])
3289 fprint (f,
"%d %f %d %d %d %d" %
3296 fprint (f,
tonone(t.siSpacePoints),
tonone(t.trtDriftCircles))
3297 fprint (f,
'\n par')
3299 dump_TrigInDetTrackFitPar (t.param, f)
3302 fprint (f,
'\n end')
3304 dump_TrigInDetTrackFitPar (t.endParam, f)
3325 self.
cov = [x
for x
in t.cov()]
3341 self.
param = PyTrigInDetTrackFitPar (t.param())
3353 if x[0].nrMatches() > 0:
3354 xbc = x[0].bestSiMatch().
barcode()
3356 if y[0].nrMatches() > 0:
3357 ybc = y[0].bestSiMatch().
barcode()
3363 return cmp (x[1].chi2, y[1].chi2)
3372 tm.sort (key = cmp_to_key (_tmcmp))
3373 for (i, (truth, track))
in enumerate(tm):
3374 fprint (f,
'\n ', i)
3375 dump_TrigInDetTrackTruth (truth, f)
3377 dump_TrigInDetTrack (track, f)
3385 bv = a.beginAssociation(obj)
3386 ev = a.endAssociation(obj)
3391 targ = bv.__deref__()
3393 except RuntimeError
as e:
3394 if e.args[0].find (
'dereferencing invalid ElementLink') >= 0:
3406 a.assocs (obj, coll)
3412 bo = a.beginObject()
3416 obj = a.getObject(bo)
3418 errflag = safe_assocs (a, obj, coll, f)
3419 l.append ((obj, coll, errflag))
3422 l.sort (key=
lambda a: a[0].
pt(), reverse=
True)
3424 for obj, coll, errflag
in l:
3425 fprint (f,
'\n',
typename(obj.__class__))
3426 dump_Fourvec (obj, f)
3432 fprint (f,
' [Got invalid EL error]')
3438 return dump_Assocs (a, f, PyAthena.DataVector(PyAthena.INavigable4Momentum))
3443 return dump_Assocs (a, f, PyAthena.Rec.TrackParticleContainer)
3447 fprint (f, a.RoiWord(), a.DeltaPhi(), a.DeltaR(), a.InvMass(),
3448 a.ElecValid(), a.OppositeCharge(), a.VertexState())
3453 fprint (f,
"%f %f %d %d %d %d %d %d %d" %
3456 m.numberOfTriggerHits(),
3457 m.numberOfInnerHits(),
3458 m.numberOfMiddleHits(),
3459 m.numberOfOuterHits(),
3460 m.numberOfInnerSegments(),
3461 m.numberOfMiddleSegments(),
3462 m.numberOfOuterSegments()))
3467 fprint (f, a.name())
3472 dump_JetAssociationBase (a, f)
3475 fprint (f, a.getElectronWeight (ele))
3476 dump_Fourvec (ele, f)
3481 dump_JetAssociationBase (a, f)
3484 fprint (f, a.getPhotonWeight (gam))
3485 dump_Fourvec (gam, f)
3490 dump_JetAssociationBase (a, f)
3493 fprint (f, a.getMuonWeight (muo))
3494 dump_Fourvec (muo, f)
3499 dump_JetAssociationBase (a, f)
3500 fprint (f, a.nTracks())
3502 ROOT.SetOwnership (tr,
True)
3504 fprint (f, a.getTrackWeight (t))
3510 dump_JetAssociationBase (a, f)
3513 for v
in vi.vertices():
3514 dump_Threevec (v.position(), f)
3522 if j.e() == 0
and j.phi() == 0
and j.eta() == 0:
3523 with signalstate (j, PyAthena.P4SignalState.JETEMSCALE):
3524 dump_ParticleImpl (j, f)
3526 dump_ParticleImpl (j, f)
3527 fprint (f,
'\n %s %f' %
3529 j.getFlavourTagWeight(),))
3531 tower_constituents_p =
False
3532 if j.firstConstituent() != j.lastConstituent():
3533 if isinstance (j.getContainer(j.firstConstituent()),
3534 PyAthena.CaloTowerContainer):
3535 tower_constituents_p =
True
3536 elif j.firstConstituent().__deref__():
3537 ss =
asint(j.constituentSignalState())
3538 j.setConstituentSignalState (PyAthena.P4SignalState.CALIBRATED)
3539 dump_HLV (j.constituent_sum4Mom(), f)
3540 j.setConstituentSignalState (ss)
3541 fprint (f, [x
for x
in j.combinedLikelihood()])
3542 fprint (f,
'\n moms ')
3543 for mk
in j.getMomentKeys():
3544 if mk
in [
'Timing',
'LArQuality']:
continue
3545 mom = j.getMoment (mk,
False)
3547 fprint (f, mk, j.getMoment (mk,
True))
3548 if hasattr(j,
'getJetTime'):
3549 fprint (f,
'\n timing ', j.getJetTime(),
3550 ' qual ', j.getJetQuality())
3552 fprint (f,
'\n timing ', j.getMoment(
'Timing',
True),
3553 ' qual ', j.getMoment(
'LArQuality',
True))
3554 fprint (f,
'\n assoc ')
3555 for ak
in j.getAssociationKeys():
3556 ass = j.getAssociationBase(ak)
3557 if ass == jetAssocNull :
continue
3558 fprint (f,
'\n ', ak)
3559 if isinstance (ass, PyAthena.Analysis.ElectronAssociation):
3560 dump_ElectronAssociation (ass, f)
3561 elif isinstance (ass, PyAthena.Analysis.PhotonAssociation):
3562 dump_PhotonAssociation (ass, f)
3563 elif isinstance (ass, PyAthena.Analysis.MuonAssociation):
3564 dump_MuonAssociation (ass, f)
3565 elif isinstance (ass, PyAthena.Analysis.TrackAssociation):
3566 dump_TrackAssociation (ass, f)
3567 elif isinstance (ass, PyAthena.Analysis.ISvxAssociation):
3568 dump_ISvxAssociation (ass, f)
3571 ti = j.jetTagInfoVector()
3572 fprint (f,
'\n tag info:')
3576 ti.sort (key=_infoType)
3579 fprint (f,
'\n (null)')
3581 fprint (f,
'\n %s %s: %f: '
3582 % (info.infoType(),
typename(info.__class__), j.getFlavourTagWeight (info.infoType())))
3583 if isinstance (info, PyAthena.Analysis.TruthInfo):
3584 dump_TruthInfo (info, f)
3585 elif isinstance (info, PyAthena.Analysis.SoftLeptonTruthInfo):
3586 dump_SoftLeptonTruthInfo (info, f)
3587 elif isinstance (info, PyAthena.Analysis.SecVtxInfo):
3588 dump_SecVtxInfo (info, f)
3589 elif isinstance (info, PyAthena.Analysis.IPInfoPlus):
3590 dump_IPInfoPlus (info, f)
3591 elif isinstance (info, PyAthena.Analysis.IPInfoBase):
3592 dump_IPInfoBase (info, f)
3593 elif isinstance (info, PyAthena.Analysis.SVInfoBase):
3594 dump_SVInfoBase (info, f)
3595 elif isinstance (info, PyAthena.Analysis.SVInfoPlus):
3596 dump_SVInfoPlus (info, f)
3597 elif isinstance (info, PyAthena.Analysis.MultiSVInfoPlus):
3598 dump_MultiSVInfoPlus (info, f)
3599 elif isinstance (info, PyAthena.Analysis.JetProbInfoBase):
3600 dump_JetProbInfoBase (info, f)
3601 elif isinstance (info, PyAthena.Analysis.SoftElectronInfo):
3602 dump_SoftElectronInfo (info, f)
3603 elif isinstance (info, PyAthena.Analysis.JetFitterTagInfo):
3604 dump_JetFitterTagInfo (info, f)
3605 elif (hasattr (PyAthena.Analysis,
'TrackCountingInfo')
and
3606 isinstance (info, PyAthena.Analysis.TrackCountingInfo)):
3607 dump_TrackCountingInfo (info, f)
3608 elif isinstance (info, PyAthena.Analysis.AtlfInfo):
3609 dump_AtlfInfo (info, f)
3610 elif isinstance (info, PyAthena.Analysis.SoftMuonInfo):
3611 dump_SoftMuonInfo (info, f)
3612 elif info.__class__
is PyAthena.Analysis.BaseTagInfo:
3613 dump_BaseTagInfo (info, f)
3614 elif info.__class__
is PyAthena.Analysis.GbbNNTagInfo:
3615 dump_GbbNNTagInfo (info, f)
3618 if tower_constituents_p:
3619 fprint (f,
'\n (not dumping tower constituents)')
3621 fprint (f,
'\n constituents:')
3622 for c
in toiter (j.firstConstituent(), j.lastConstituent()):
3628 fprint (f, j.getWeight (c))
3634 dump_VxCandidate1 (c, f)
3636 if c.fullCovariance():
3637 dump_AmgMatrix (c.fullCovariance(), f)
3647 fprint (f,
'V0Hypothesis', h.positiveTrackID(),
3648 h.negativeTrackID(), h.hypothesisID())
3650 dump_ExtendedVxCandidate (h, f)
3655 fprint (f,
"V0Candidate", len(v.v0Hypothesis()))
3656 for h
in v.v0Hypothesis():
3658 dump_V0Hypothesis (h, f)
3663 dump_Threevec (v, f)
3664 fprint (f, v.algorithmId(), v.chi2(), v.ndof(), v.mass(),
3665 v.massVariance(), v.energyFraction(), v.nTwoTracksSecVtx())
3666 fprint (f,
'\n cov: ', [v.cov()[i]
for i
in range(6)])
3667 if v.tracks()
and v.tracks().
size() > 0:
3668 for (i, t)
in enumerate (v.tracks()):
3669 fprint (f,
'\n t%d'%i)
3671 fprint (f, p.a0(), p.z0(), p.phi0(), p.eta(), p.pT())
3672 if v.getMotherTrack():
3673 fprint (f,
'\n mother: ')
3674 dump_TrigInDetTrackFitPar (v.getMotherTrack(), f)
3686 fprint (f,
'%f, ' % last)
3688 fprint (f,
'%d*%f, ' % (n, last))
3695 fprint (f,
'%f, ' % last)
3697 fprint (f,
'%d*%f, ' % (n, last))
3702 fprint (f,
'z0_pt:')
3703 dump_TrigHisto2D (t.z0_pt(), f)
3704 fprint (f,
'\neta_phi:')
3705 dump_TrigHisto2D (t.eta_phi(), f)
3709 dump_TrigTrackCounts (t, f)
3715 fprint (f, t.roiId(), t.Zvtx(), t.err_Zvtx(), t.etCalibCluster(),
3716 t.simpleEtFlow(), t.nMatchedTracks())
3717 fprint (f,
'\n ',
tonone(t.tauCluster()),
3718 tonone(t.trackCollection()),
3728 fprint (f, c.rawEnergy(), c.rawEt(), c.rawEta(), c.rawPhi(), c.RoIword(),
3729 c.nCells(), c.quality())
3730 fprint (f,
'\n ', [c.rawEnergy(i)
for i
in range(25)])
3735 dump_TrigCaloCluster (c, f)
3736 fprint (f,
'\n ', c.energy(), c.et(), c.eta(), c.phi(),
3737 c.e237(), c.e277(), c.fracs1(), c.weta2(),
3738 c.ehad1(), c.Eta1(), c.emaxs1(), c.e2tsts1())
3739 fprint (f,
'\n ', [c.energyInSample(i)
for i
in range(25)])
3743 dump_TrigEMCluster (c, f)
3749 fprint (f, p.isValid(), p.roiId())
3750 fprint (f,
'\n ', p.trackAlgo(), p.trackIndx(), p.charge(),
3752 fprint (f,
'\n ', p.err_Pt(), p.err_eta(), p.err_phi(), p.err_Zvtx())
3753 fprint (f,
'\n ', p.trkClusDeta(), p.trkClusDphi(), p.EtOverPt())
3759 fprint (f, p.isValid(), p.roiId())
3760 fprint (f,
'\n ', p.Et(), p.HadEt(), p.energyRatio(), p.rCore(),
3764 dump_TrigEMCluster (p.cluster(), f)
3770 fprintln (f,
' ROI ', t.RoI_ID())
3772 dump_list (t2, f, dump_TrigInDetTrack)
3778 fprint (f, j.isValid(), j.roiId())
3779 fprint (f,
'\n ', j.prmVtx(), j.xComb(), j.xIP1D(), j.xIP2D(),
3780 j.xIP3D(), j.xCHI2(), j.xSV(), j.xMVtx(), j.xEVtx(), j.xNVtx())
3781 fprint (f,
'\n ',
tonone(j.TrackCollection()),
3782 tonone(j.PrmVertexCollection()),
3783 tonone(j.SecVertexCollection()))
3788 fprint (f, j.roiId(), j.particleType(), j.eta(), j.phi(),
3789 j.mass(), j.fitmass(), j.fitchi2(), j.fitndof(),
3790 j.fitx(), j.fity(), j.fitz())
3791 if j.pSecondDecay():
3792 fprint (f,
'\n second:')
3793 dump_TrigEFBphys (j.pSecondDecay(), f)
3794 vec = j.trackVector()
3795 for i
in range(len(vec)):
3797 fprint (f,
'\n tv:')
3799 fprint (f, t.dataID(), t.index())
3801 fprint (f,
'(invalid)')
3807 fprint (f, j.isValid(), j.roiId())
3808 fprint (f,
'\n ', j.prmVtx(), j.xComb(), j.xIP1D(), j.xIP2D(),
3809 j.xIP3D(), j.xCHI2(), j.xSV(), j.xMVtx(), j.xEVtx(), j.xNVtx())
3811 tonone(j.TrackCollection()),
3812 tonone(j.PrmVertexCollection()),
3813 tonone(j.SecVertexCollection()))
3818 fprint (f, j.roiId(), j.particleType(), j.eta(), j.phi(),
3819 j.mass(), j.fitmass(), j.fitchi2(), j.fitndof(),
3820 j.fitx(), j.fity(), j.fitz())
3821 if j.pSecondDecay():
3822 fprint (f,
'\n second:')
3823 dump_TrigL2Bphys (j.pSecondDecay(), f)
3827 tv = j.trackVector()
3828 for i
in range(tv.size()):
3830 fprint (f,
'\n tv:', t.dataID(), t.index())
3835 fprint (f,
' ', m.ex(), m.ey(), m.ez(), m.sumEt(), m.sumE(),
3836 m.RoIword(), m.getFlag(), m.getNumOfComponents())
3837 for ic
in range(m.getNumOfComponents()):
3838 fprint (f,
'\n ', m.getNameOfComponent(ic),
3839 m.getExComponent(ic), m.getEyComponent(ic),
3840 m.getEzComponent(ic), m.getSumEtComponent(ic),
3841 m.getSumEComponent(ic), m.getComponentCalib0(ic),
3842 m.getComponentCalib1(ic), m.getSumOfSigns(ic),
3843 m.getUsedChannels(ic), m.getStatus(ic))
3848 dump_TrigMissingET (m, f)
3854 d.version(), d.isFullscan(),
3855 d.eta(), d.etaPlus(), d.etaMinus(),
3856 d.phi(), d.phiPlus(), d.phiMinus(),
3857 d.zed(), d.zedPlus(), d.zedMinus(),
3858 d.composite(), d.manageConstituents(), d.size(),
3859 formatItemUsingLong ([d.at(i).
roiId()
for i
in range(d.size())]))
3864 fprint (f,
' ', d.roiId(), d.l1Id(), d.roiWord())
3865 dump_RoiDescriptor (d, f)
3868 dump_TrigRoiDescriptor (d, f)
3873 fprint (f, m.e(), m.eta(), m.phi(), m.inCone(), m.caloSample())
3880 fprint (f,
' ', j.e(), j.ehad0(), j.eem0(), j.eta(), j.phi(), j.m(),
3885 dump_Trig3Momentum (m, f)
3890 dump_TrigT2Jet (j, f)
3897 fprint (f,
'\n EM%d: '% s)
3898 fprint (f, t.EMRadius(s), t.EMenergyWidth(s), t.EMenergyMedium(s),
3899 t.EMenergyWide(s), t.EMenergyNarrow(s))
3901 fprint (f,
'\n HAD%d: '% s)
3902 fprint (f, t.HADRadius(s), t.HADenergyWidth(s), t.HADenergyMedium(s),
3903 t.HADenergyWide(s), t.HADenergyNarrow(s))
3908 dump_TrigCaloCluster (t, f)
3909 fprint (f,
'\n ', t.energy(), t.EMCalibEnergy(), t.EMenergy(),
3910 t.HADenergy(), t.eta(), t.phi(), t.IsoFrac(), t.numStripCells(),
3911 t.stripWidth(), t.eCalib(), t.eEMCalib(), t.EMRadius2())
3913 fprint (f,
'\n %2d: '% s)
3914 fprint (f, t.energy(s))
3915 dump_TrigTauClusterDetails (t.clusterDetails(), f)
3920 dump_TrigTauCluster (t, f)
3925 fprint (f,
"x:", h.nbins_x(), h.min_x(), h.max_x(),
'[')
3926 for x
in h.contents():
3931 dump_TrigHisto (h, f)
3934 fprint (f,
"y:", h.nbins_y(), h.min_y(), h.max_y())
3935 dump_TrigHisto (h, f)
3939 fprint (f, c.sctSpEndcapC(), c.sctSpBarrel(), c.sctSpEndcapA(),
'[')
3940 for id
in c.droppedSctModules():
3941 fprint (f, id.getString())
3943 fprint (f,
'\n clus endcap c: ')
3944 dump_TrigHisto2D (c.pixelClusEndcapC(), f)
3945 fprint (f,
'\n clus barrel: ')
3946 dump_TrigHisto2D (c.pixelClusBarrel(), f)
3947 fprint (f,
'\n clus endcap a: ')
3948 dump_TrigHisto2D (c.pixelClusEndcapA(), f)
3952 dump_TrigSpacePointCounts (c, f)
3959 fprint (f,
' ', t.roiId(), t.nCoreTracks(), t.nSlowTracks(),
3961 t.charge(), t.leadingTrackPt(), t.scalarPtSumCore(),
3962 t.scalarPtSumIso(), t.ptBalance())
3963 dump_Fourvec (t.threeFastestTracks(), f)
3964 if t.trackCollection():
3966 dump_TrigInDetTrackCollection (t.trackCollection(), f)
3971 dump_TrigTauTracksInfo (t, f)
3976 fprint (f,
' ', m.roiId(), m.saddress(), m.pt(), m.radius(),
3977 m.eta(), m.phi(), m.dir_phi(), m.zeta(), m.dir_zeta(), m.beta(),
3978 m.sp1_r(), m.sp1_z(), m.sp1_slope(),
3979 m.sp2_r(), m.sp2_z(), m.sp2_slope(),
3980 m.sp3_r(), m.sp3_z(), m.sp3_slope(),
3981 m.br_radius(), m.br_sagitta(), m.ec_alpha(), m.ec_beta(),
3982 m.dq_var1(), m.dq_var2(), m.algoId())
3986 dump_MuonFeature (m, f)
3991 fprint (f, m.extension_capacity(),
3992 m.max_rob_capacity(),
3993 m.max_csm_capacity(),
3994 m.max_lvl1_emu_capacity(),
3995 m.max_rpc_hits_capacity(),
3996 m.max_tgc_hits_capacity(),
3997 m.max_mdt_hits_capacity(),
3998 m.id(), m.te_id(), m.error())
4000 m.lvl1_id(), m.lumi_block(), m.muondetmask(),
4001 m.roi_id(), m.roi_system(), m.roi_subsystem(),
4002 m.roi_sector(), m.roi_number(), m.roi_threshold(),
4003 daz(m.roi_eta()),
daz(m.roi_phi()),
4004 m.rpc_pad_error(), m.tgc_rdo_error())
4006 m.rpc1_x(), m.rpc1_y(), m.rpc1_z(),
4007 m.rpc2_x(), m.rpc2_y(), m.rpc2_z(),
4008 m.rpc3_x(), m.rpc3_y(), m.rpc3_z())
4010 m.tgc_Mid1_eta(), m.tgc_Mid1_phi(), m.tgc_Mid1_r(), m.tgc_Mid1_z(),
4011 m.tgc_Mid2_eta(), m.tgc_Mid2_phi(), m.tgc_Mid2_r(), m.tgc_Mid2_z(),
4012 m.tgc_Mid_rho_chi2(), m.tgc_Mid_rho_N(),
4013 m.tgc_Mid_phi_chi2(), m.tgc_Mid_phi_N())
4015 m.tgc_Inn_eta(), m.tgc_Inn_phi(),
4016 m.tgc_Inn_r(), m.tgc_Inn_z(),
4017 m.tgc_Inn_rho_std(), m.tgc_Inn_rho_N(),
4018 m.tgc_Inn_phi_std(), m.tgc_Inn_phi_N(),
4021 m.mdt_Inner_slope(),
4022 m.mdt_Inner_intercept(),
4025 m.mdt_Inner_fit_chi(),
4026 m.mdt_Middle_slope(),
4027 m.mdt_Middle_intercept(),
4030 m.mdt_Middle_fit_chi(),
4031 m.mdt_Outer_slope(),
4032 m.mdt_Outer_intercept(),
4035 m.mdt_Outer_fit_chi())
4037 m.Address(), m.Sagitta(), m.Radius(), m.Slope(), m.Intercept(),
4038 m.Alpha(), m.Beta(), m.DeltaR(), m.Speed_over_c(),
4039 m.PhiMap(), m.Phi(), m.PhiDir(), m.Pt(), m.Charge())
4047 m.eta_high_0_lay0(),
4048 m.eta_high_1_lay0(),
4049 m.eta_high_0_lay1(),
4050 m.eta_high_1_lay1(),
4057 m.phi_high_0_lay0(),
4058 m.phi_high_1_lay0(),
4059 m.phi_high_0_lay1(),
4060 m.phi_high_1_lay1())
4062 fprint (f,
'\n ', formatItemUsingLong (
list(m.rob_id())))
4063 fprint (f,
'\n ', formatItemUsingLong (
list(m.csm_id())))
4064 fprint (f,
'\n ', formatItemUsingLong (
list(m.csm_size())))
4065 fprint (f,
'\n ', formatItemUsingLong (
list(m.csm_error())))
4066 fprint (f,
'\n ', formatItemUsingLong (
list(m.removed_rob_id())))
4067 fprint (f,
'\n ', formatItemUsingLong (
list(m.removed_csm_id())))
4068 fprint (f,
'\n ', formatItemUsingLong (
list(m.lvl1_emulation())))
4069 fprint (f,
'\n ', formatItemUsingLong (
list(m.pad_hit_onlineId())))
4070 fprint (f,
'\n ', formatItemUsingLong (
list(m.pad_hit_code())))
4080 fprint (f,
'\n ', formatItemUsingLong (
list(m.tgc_Inn_rho_hit_in_seg())))
4085 fprint (f,
'\n ', formatItemUsingLong (
list(m.tgc_Inn_phi_hit_in_seg())))
4090 fprint (f,
'\n ', formatItemUsingLong (
list(m.tgc_Mid_rho_hit_in_seg())))
4095 fprint (f,
'\n ', formatItemUsingLong (
list(m.tgc_Mid_phi_hit_in_seg())))
4096 fprint (f,
'\n ', formatItemUsingLong (
list(m.mdt_onlineId())))
4097 fprint (f,
'\n ', formatItemUsingLong (
list(m.mdt_offlineId())))
4104 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension0())))
4105 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension1())))
4106 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension2())))
4107 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension3())))
4108 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension4())))
4109 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension5())))
4110 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension6())))
4111 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension7())))
4112 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension8())))
4113 fprint (f,
'\n ', formatItemUsingLong (
list(m.extension9())))
4118 fprint (f,
' ', m.eta(), m.phi(), m.quality(),
list(m.enedep()))
4124 fprint (f, m.PtTR_Trk(), m.EtaTR_Trk(), m.PhiTR_Trk(), m.Typ_IDTrk())
4125 fprint (f,
'\n ', m.pt(), m.eta(), m.phi(), m.m())
4126 fprint (f,
'\n ', m.TileMuLink().
isValid())
4128 fprintln (f, m.TileMuLink().dataID(), m.TileMuLink().
index())
4129 fprint (f,
'\n ', m.IDScanLink().
isValid())
4131 fprintln (f, m.IDScanLink().dataID(), m.IDScanLink().
index())
4138 fprint (f, m.pt(), m.eta(), m.phi(), m.m(), m.sigma_pt())
4139 if m.IDTrackLink().
isValid()
and m.IDTrack():
4142 if m.muFastTrackLink().
isValid()
and m.muFastTrack():
4143 fprint (f,
'\n fast')
4144 dump_MuonFeature (m.muFastTrack(), f)
4150 dump_CombinedMuonFeature (m, f)
4156 fprint (f, m.MuonCode(), m.RoINum(), m.charge())
4161 fprint (f, m.eta(), m.phi(), m.quality(),
list(m.enedep()))
4169 fprint (f,
'\n ', beg.getMomentType(), beg.getMoment().getValue())
4175 nsamp = s.getNumberOfSamplings()
4176 for i
in range(
min(10, s.getNumberOfVariableTypes())):
4178 slist = [s.retrieveData(i, samp)
for samp
in range(nsamp)]
4179 fprint (f,
'\n ', i, slist)
4184 fprint (f,
' moments:')
4185 dump_CaloClusterMomentStore (s.getMomentStore(), f)
4186 fprint (f,
'\n sampling data:')
4187 dump_CaloSamplingData (s.getSamplingStore(), f)
4194 fprintln (f, t.neta(), t.etamin(), t.deta(),
4195 t.nphi(), t.phimin(), t.dphi())
4202 dump_CaloTowerContainer (t, f)
4203 fprint (f,
' ', t.GetMinimumCellEnergy(),
4204 t.GetMinimumClusterEnergy(),
4205 t.GetUseCellWeights(),
4209 t.GetCellESignificanceThreshold(),
4210 t.GetCaloSelection())
4211 ci = t.GetCaloIndices()
4213 fprint (f, [ci[i]
for i
in range(ci.size())])
4216 if l.isValid(): fprintln (f, l.dataID())
4217 else: fprintln (f,
'(null)')
4221 if t.GetCellToClusterMap():
4222 fprintln (f,
' ', t.GetCellToClusterMap().
size())
4224 fprintln (f,
' (null)')
4229 fprint (f, t.cellID().getString(), t.particleID(),
4230 [t.energy(i)
for i
in range(4)])
4235 fprint (f, t.cellID().getString(), t.energy(), t.time())
4241 fprint (f, t.identify().getString(), [t.energy(i)
for i
in range(sz)],
4242 [t.time(i)
for i
in range(sz)])
4247 fprint (f, p.barcode(), p.eventIndex())
4252 fprint (f, t.identify())
4253 dump_Threevec (t.localStartPosition(), f)
4254 dump_Threevec (t.localEndPosition(), f)
4255 fprint (f, t.energyLoss(), t.meanTime(), t.truthBarcode())
4256 dump_HepMcParticleLink (t.particleLink(), f)
4261 fprint (f, t.GetHitID(), t.truthBarcode(), t.GetParticleEncoding(),
4262 t.GetKineticEnergy(), t.GetEnergyDeposit(),
4263 t.GetPreStepX(), t.GetPreStepY(), t.GetPreStepZ(),
4264 t.GetPostStepX(), t.GetPostStepY(), t.GetPostStepZ(),
4270 if hasattr(t,
'triggerEnergies'):
4271 fprint (f,
list(t.triggerEnergies()),
list(t.triggerTimes()))
4273 fprint (f, t.mbtsWord(),
list(t.triggerTimes()))
4308 fprint (f,
'\n ', m.getEtInnerConeEC(), m.getEtOuterConeEC(),
4309 m.getEtInnerConeHC(), m.getEtOuterConeHC())
4310 fprint (f,
'\n ', m.getNTracksCone(), m.getSumPtTracksCone(),
4311 m.getPtMuTracksCone())
4312 fprint (f,
'\n ', m.getRoiIdMu(), m.getPtMu(), m.getEtaMu(),
4313 m.getPhiMu(), m.getLArWeight(), m.getTileWeight())
4322 fprint (f, t.charge())
4327 fprint (f,
'\n ', t.MuonType())
4328 fprint (f,
'\n spectrometer: ')
4329 dump_TrigMuonEFTrack (t.SpectrometerTrack(), f)
4330 fprint (f,
'\n extrapolated: ')
4331 dump_TrigMuonEFTrack (t.ExtrapolatedTrack(), f)
4332 fprint (f,
'\n combined: ')
4333 dump_TrigMuonEFTrack (t.CombinedTrack(), f)
4338 fprint (f, t.RoINum())
4339 for tt
in t.TrackContainer():
4340 dump_TrigMuonEFInfoTrack (tt, f)
4345 fprint (f,
list(r.rings()))
4350 fprint (f,
' barrel')
4351 dump_TrigHisto1D (p.barrel(), f)
4352 fprint (f,
'\n endcapA')
4353 dump_TrigHisto1D (p.endcapA(), f)
4354 fprint (f,
'\n endcapC')
4355 dump_TrigHisto1D (p.endcapC(), f)
4360 fprint (f,
list(p.output()))
4368 if p == InDetLowBetaCandidateNull:
4369 fprint (f,
'(null)')
4371 if hasattr (p,
'getTRTInverseBeta'):
4372 fprint (f, p.getTRTCorrBitsOverThreshold(),
4373 p.getTRTInverseBeta(),
4374 p.getTRTInverseBetaError(),
4375 p.getTRTNLastBits())
4377 fprint (f, p.getTRTCorrBitsOverThreshold(),
4378 p.getTRTTrailingEdge(),
4379 p.getTRTTrailingEdgeError(),
4380 p.getTRTNLastBits())
4381 others = (p.getTRTdEdx(),
4382 p.getTRTLikelihoodBeta(),
4383 p.getTRTLikelihoodError(),
4384 p.getTRTHighTbits(),)
4385 if max(others)!=0
or min(others) != 0:
4386 for o
in others: fprint (f, o)
4392 fprintln (f,
' noisy febs', [id.getString()
for id
in p.get_noisy_febs()])
4400 fprint (f, p.getName(), p.isAccepted())
4407 if a.startswith (
'get'):
4408 fprintln (f, a[3:]+
':', getattr(p, a)())
4414 for p
in toiter1 (m):
4415 fprint (f,
' ',
typename(p.__class__))
4417 fprint (f,
'(null)')
4422 fprint (f,
' [', w.wet(), w.wpx(), w.wpy(), w.statusWord(),
']')
4423 except RuntimeError:
4430 for p
in m.getAllT0s():
4431 fprintln (f,
' ', p.first.getString(), p.second)
4437 fprint (f, m.getNRoi(), m.getNTRK(), m.getNJet())
4442 fprint (f, [b.isPassing(i)
for i
in range(b.size())])
4448 fprint (f, [
str(s)
for s
in p.first],
list(p.second))
4454 formatItemUsingLong (
list(v.vtxNtrks())),
4455 list(v.vtxTrkPtSqSum()))
4459 fprint (f, m.sumTrkPtCone02(), m.sumTrkPtCone03(), m.trackPosition())
4465 if hasattr (m,
'getNumObjects'):
4466 for i
in range (m.getNumObjects()):
4468 fprint (f, i,
list(m.getFlag(i,j)
for j
in range(m.getNumFlags(i))))
4470 for i
in range (m.size()):
4472 fprint (f, i,
list(m.getFlagBit(i,j)
for j
in range(m.flagSize())))
4478 fprint (f, e.eflowType(), e.isValid(), e.d0(), e.z0(),
4479 e.getPassEOverPCheck(), e.getIsSubtracted(),
4480 e.getIsDuplicated(), e.getCaloRecoStatus().getStatusWord())
4481 for i
in range(e.numTrack()):
4482 fprint (f,
'\n tk: ')
4483 dump_EL (e.trackLink(i), f)
4484 for i
in range(e.numClus()):
4485 fprint (f,
'\n cl: ')
4486 dump_EL (e.clusLink(i), f)
4487 fprint (f,
'\n mu: ')
4488 dump_EL (e.muonLink(), f)
4489 fprint (f,
'\n cv: ')
4490 dump_EL (e.conversionLink(), f)
4496 print (c.missET(), c.sumET(), c.pTx(), c.pTy(), c.numEf(),
4497 c.numPhot(), c.numEle(), c.numMuo(), c.isValid(),
4498 c.circularity(), c.thrust(), c.oblateness(),
4500 dump_list (c, f, dump_eflowObject)
4505 fprintln (f, list (c))
4511 fprint (f, p.smk(), p.l1psk(), p.hltpsk())
4516 fprint (f, p.collHash(), p.objIndex())
4521 fprint (f, p.identify().getString())
4522 dump_IdentContIndex (p.getHashAndIndex(), f)
4523 dump_AmgVector (p.localPosition(), f)
4524 dump_AmgMatrix (p.localCovariance(), f)
4526 for i
in p.rdoList():
4527 fprint (f, i.getString())
4533 dump_PrepRawData (p, f)
4534 dump_AmgVector (p.globalPosition(), f, thresh=1e-8, prec=4)
4539 dump_MuonCluster (p, f)
4540 fprint (f, p.charge(), p.time(), p.status(), p.timeStatus())
4541 fprint (f, p.detectorElement().identifyHash().
value())
4546 dump_MuonCluster (p, f)
4547 fprint (f, p.timeOfFirstSample(), p.samplingPhase(), p.samplingTime())
4548 fprint (f,
list(p.sampleCharges()))
4549 fprint (f, p.detectorElement().identifyHash().
value())
4554 dump_MuonCluster (p, f)
4555 fprint (f, p.getBcBitMap())
4556 fprint (f, p.detectorElement().identifyHash().
value())
4561 fprint (f, p.type(), p.channelIdIn().getString(), p.channelIdOut().getString(), p.identifyHash().
value())
4562 dump_IdentContIndex (p.getHashAndIndex(), f)
4563 fprint (f, p.isAside(), p.phi(), p.isInner(), p.isForward(), p.isStrip(), p.trackletId(), p.trackletIdStrip())
4564 fprint (f, p.widthIn(), p.widthOut())
4565 fprint (f, p.delta(), p.roi(), p.pt(), p.veto(), p.sub(), p.inner(), p.isPositiveDeltaR())
4566 if p.channelIdIn().get_compact() != 0:
4567 dump_AmgVector (p.posIn(), f, thresh=1e-8)
4568 dump_AmgVector (p.globalposIn(), f, thresh=1e-8)
4569 if p.channelIdOut().get_compact() != 0:
4570 dump_AmgVector (p.posOut(), f, thresh=1e-8)
4571 dump_AmgVector (p.globalposOut(), f, thresh=1e-8)
4573 dump_AmgMatrix (p.errMat(), f)
4574 if p.detectorElementIn():
4575 fprint (f, p.detectorElementIn().identifyHash().
value())
4577 fprint (f,
'(null detel)')
4578 if p.detectorElementOut():
4579 fprint (f, p.detectorElementOut().identifyHash().
value())
4581 fprint (f,
'(null detel)')
4586 dump_MuonCluster (p, f)
4587 fprint (f, p.tdc(), p.adc(), p.status())
4588 fprint (f, p.detectorElement().identifyHash().
value())
4593 fprint (f, p.time(), p.ambiguityFlag())
4594 fprint (f, p.detectorElement().identifyHash().
value())
4599 dump_RpcPrepData (p, f)
4600 fprint (f, p.ijk(), p.threshold(), p.overlap(), p.parentCmId(), p.parentPadId(), p.parentSectorId())
4605 dump_AmgVector (p.colRow(), f)
4606 dump_AmgVector (p.widthPhiRZ(), f)
4611 dump_PrepRawData (p, f)
4612 fprint (f, p.gangedPixel())
4613 dump_AmgVector (p.globalPosition(), f)
4614 dump_SiWidth (p.width(), f)
4615 fprint (f, p.detectorElement().identifyHash().
value())
4620 dump_SiCluster (p, f)
4621 fprint (f, p.omegax(), p.omegay(), list (p.totList()))
4622 fprint (f, p.totalToT(),
list(p.chargeList()), p.totalCharge())
4623 fprint (f, p.isFake(), p.isAmbiguous(), p.LVL1A(), p.splitInfoRaw(), p.tooBigToBeSplit())
4628 dump_SiCluster (p, f)
4629 fprint (f, p.hitsInThirdTimeBin())
4634 dump_PrepRawData (p, f)
4635 fprint (f, p.getWord())
4636 fprint (f, p.detectorElement().identifyHash().
value())
4641 fprint (f, p.identify().getString(), p.getWord())
4646 dump_InDetRawData (p, f)
4647 fprint (f, p.getToT(), p.getBCID(), p.getLVL1A(), p.getLVL1ID())
4652 dump_InDetRawData (p, f)
4653 fprint (f, p.highLevel(), p.timeOverThreshold(), p.driftTimeBin())
4658 dump_InDetRawData (p, f)
4659 fprint (f, p.getGroupSize())
4663 def dump_IDC (payload_dumper, p, f, extra_idc_dumper = None):
4666 if hasattr(beg.__class__,
'__preinc__'):
4667 nextfunc = beg.__preinc__
4668 elif hasattr(beg.__class__,
'__next__'):
4669 nextfunc = beg.__next__
4674 if hasattr (coll,
'identifyHash'):
4675 hash = coll.identifyHash().
value()
4677 hash = coll.identifierHash().
value()
4678 fprint (f,
'IDC', beg.hashId().
value(), hash, coll.size())
4679 if hasattr (coll,
'type'):
4680 fprint (f, coll.type())
4681 if extra_idc_dumper:
4682 extra_idc_dumper (coll, f)
4685 payload_dumper (x, f)
4694 dump_IDC (dump_CscPrepData, p, f)
4700 dump_IDC (dump_CscStripPrepData, p, f)
4706 dump_IDC (dump_RpcCoinData, p, f)
4712 dump_IDC (dump_RpcPrepData, p, f)
4718 dump_IDC (dump_TgcPrepData, p, f)
4724 dump_IDC (dump_TgcCoinData, p, f)
4730 dump_IDC (dump_MdtPrepData, p, f)
4736 dump_IDC (dump_PixelCluster, p, f)
4742 dump_IDC (dump_SCT_Cluster, p, f)
4748 dump_IDC (dump_TRT_DriftCircle, p, f)
4754 dump_IDC (dump_PixelRDORawData, p, f)
4760 dump_IDC (dump_TRT_RDORawData, p, f)
4766 dump_IDC (dump_SCT_RDORawData, p, f)
4771 fprint (f, p.energy(), p.ypos(), p.zpos(), p.charge())
4776 fprint (f, p.word())
4777 for d
in p.getdeposits():
4778 dump_HepMcParticleLink (d.first, f)
4779 dump_CscMcData (d.second, f)
4786 fprint (f, elt.first.getString())
4787 dump_CscSimData (elt.second, f)
4793 fprint (f, p.firstEntry(), p.secondEntry())
4798 fprint (f, p.word())
4799 dump_AmgVector (p.globalPosition(), f)
4800 for d
in p.getdeposits():
4801 dump_HepMcParticleLink (d.first, f)
4802 dump_MuonMcData (d.second, f)
4809 fprint (f, elt.first.getString())
4810 dump_MuonSimData (elt.second, f)
4818 dump_SiCluster (elt.first, f)
4819 dump_SiCluster (elt.second, f)
4825 fprint (f, p.identify().getString())
4830 dump_TileRawData (p, f)
4831 fprint (f,
list(p.get_digits()))
4837 fprint (f, p.get_unit(), p.get_type(), p.get_bsflags())
4838 fprint (f, p.hashFunc().
max(), p.hashFunc().
offset(), p.hashFunc().
type())
4842 if hasattr(beg.__class__,
'__preinc__'):
4843 nextfunc = beg.__preinc__
4844 elif hasattr(beg.__class__,
'__next__'):
4845 nextfunc = beg.__next__
4851 beg.hashId().
value(),
4852 list(coll.getFragChipCRCWords()),
4853 list(coll.getFragChipCRCWordsHigh()),
4854 list(coll.getFragChipHeaderWords()),
4855 list(coll.getFragChipHeaderWordsHigh()),
4857 coll.getFragBCID(), coll.getFragSize())
4860 dump_TileDigits (x, f)
4868 dump_TileRawData (data, f)
4869 fprint (f, [data.amplitude(i)
for i
in range(data.size())])
4870 fprint (f, [data.time(i)
for i
in range(data.sizeTime())])
4871 fprint (f, [data.quality(i)
for i
in range(data.sizeQuality())])
4872 fprint (f, data.pedestal())
4878 fprint (f,
'\n ', data.identify(),
4881 data.getDetEvType(),
4885 dump_TileRawChannel (x, f)
4890 fprint (f,
'\n ', data.getFragGlobalCRC(),
4891 data.getFragDSPBCID(),
4893 data.getFragMemoryPar(),
4894 data.getFragSstrobe(),
4895 data.getFragDstrobe(),
4896 data.getFragHeaderBit(),
4897 data.getFragHeaderPar(),
4898 data.getFragSampleBit(),
4899 data.getFragSamplePar(),
4900 data.getFragFEChipMask(),
4901 data.getFragRODChipMask())
4902 dump_TileRawDataCollection (data, f)
4908 fprintln (f, data.get_unit(), data.get_type(), data.get_bsflags())
4913 fprint (f,
'Coll', beg.hashId().
value(), coll.size())
4914 dump_TileRawChannelCollection (coll, f)
4923 fprintln (f, data.get_unit(), data.get_type(), data.get_bsflags())
4928 fprint (f,
'Coll', beg.hashId().
value(), coll.size())
4937 fprint (f, p.identify(), p.phi(0), p.cosphi(), p.sinphi())
4938 fprint (f, [p.sumE(i)
for i
in range(p.NsumE())])
4939 fprint (f, [p.eta(i)
for i
in range(p.NMuons())])
4940 fprint (f, [p.enemu0(i)
for i
in range(p.NMuons())])
4941 fprint (f, [p.enemu1(i)
for i
in range(p.NMuons())])
4942 fprint (f, [p.enemu2(i)
for i
in range(p.NMuons())])
4943 fprint (f, formatItemUsingLong ([p.qual(i)
for i
in range(p.NMuons())]))
4944 fprint (f, formatItemUsingLong ([p.val(i)
for i
in range(p.Ndata())]))
4949 fprint (f, p.identify().getString(),
list(p.fsamples()))
4954 fprint (f, p.GetID(), list (p.GetDecision()),
4955 list(p.GetThresholds()),
list(p.GetEne()),
list(p.GetTime()))
4960 fprint (f, p.crate(), p.dataID(), p.peak(),
4961 formatItemUsingLong (
list(p.HitsVec0())),
4962 formatItemUsingLong (
list(p.HitsVec1())),
4963 list(p.ErrorVec0()),
4964 list(p.ErrorVec1()))
4969 fprint (f, p.crate(), p.dataID(), p.peak(),
4970 formatItemUsingLong (
list(p.EtVec())),
4971 formatItemUsingLong (
list(p.ExVec())),
4972 formatItemUsingLong (
list(p.EyVec())),
4973 list(p.EtErrorVec()),
4974 list(p.ExErrorVec()),
4975 list(p.EyErrorVec()))
4980 fprint (f, p.crate(), p.dataID(), p.peak(),
4981 formatItemUsingLong (
list(p.HitsVec())),
4988 fprint (f, p.jetEtRoiWord(),
4996 fprint (f, p.crate(), p.module(), p.peak(),
4997 formatItemUsingLong (
list(p.HitsVec0())),
4998 formatItemUsingLong (
list(p.HitsVec1())))
5003 fprint (f, p.roiWord())
5008 fprint (f, p.eta(), p.phi(), p.peak(),
5009 list(p.emEnergyVec()),
5010 list(p.hadEnergyVec()),
5011 list(p.emErrorVec()),
5012 list(p.hadErrorVec()))
5018 fprint (f, p.getCTPVersionNumber(),
5019 p.getCTPVersion().getVersionNumber(),
5020 formatItemUsingLong (
list(p.getDataWords())),
5021 p.getL1AcceptBunchPosition(),
5023 p.getNumberOfBunches(),
5024 p.getNumberOfAdditionalWords())
5031 formatItemUsingLong (
list(p.getAllCandidateMultiplicities())),
5032 formatItemUsingLong (
list(p.dataWord())))
5037 fprint (f, p.crate(), p.module(), p.peak(),
5038 formatItemUsingLong (
list(p.EtVec())),
5039 formatItemUsingLong (
list(p.ExVec())),
5040 formatItemUsingLong (
list(p.EyVec())))
5045 fprint (f, p.crate(), p.module(), p.peak(),
5046 formatItemUsingLong (
list(p.JetHitsVec())))
5051 fprint (f, p.roiWord())
5056 fprint (f, p.eta(), p.phi(), p.key(), p.peak(),
5057 list(p.emEnergyVec()),
5058 list(p.hadEnergyVec()),
5059 list(p.emErrorVec()),
5060 list(p.hadErrorVec()),
5061 list(p.linkErrorVec()))
5066 fprint (f, formatItemUsingLong (
list(p.header())))
5071 fprint (f, formatItemUsingLong (
list(p.trailer())))
5076 fprint (f, p.roIWord())
5081 dump_ROIBHeader (p.header(), f)
5082 for r
in p.roIVec():
5083 dump_MuCTPIRoI (r, f)
5084 dump_ROIBTrailer (p.trailer(), f)
5089 fprint (f, p.roIWord())
5094 dump_ROIBHeader (p.header(), f)
5095 for r
in p.roIVec():
5097 dump_ROIBTrailer (p.trailer(), f)
5102 fprint (f, p.roIWord())
5107 dump_ROIBHeader (p.header(), f)
5108 for r
in p.roIVec():
5109 dump_JetEnergyRoI (r, f)
5110 dump_ROIBTrailer (p.trailer(), f)
5115 fprint (f, p.roIWord())
5120 dump_ROIBHeader (p.header(), f)
5121 for r
in p.roIVec():
5122 dump_EMTauRoI (r, f)
5123 dump_ROIBTrailer (p.trailer(), f)
5128 fprint (f, p.getSourceID(),
5129 list(p.getErrors()),
5130 list(p.getDataWords()),
5131 list(p.getStatusWords()))
5136 dump_ROIBHeader (p.header(), f)
5137 dump_L1TopoRDO (p.rdo(), f)
5138 dump_ROIBTrailer (p.trailer(), f)
5144 fprint (f,
'MuCTPI:')
5145 dump_MuCTPIResult (p.muCTPIResult(), f)
5146 fprint (f,
'\nCTP:')
5147 dump_CTPResult (p.cTPResult(), f)
5148 for r
in p.jetEnergyResult():
5149 fprint (f,
'\nJetEnergy:')
5151 for r
in p.eMTauResult():
5152 fprint (f,
'\nEMTau:')
5154 for r
in p.l1TopoResult():
5155 fprint (f,
'\nL1Topo:')
5161 fprint (f, p.eta(), p.phi(), p.key(), p.emError(), p.hadError(),
5162 p.emPeak(), p.emADCPeak(), p.hadPeak(), p.hadADCPeak(),
5165 list(p.emBCIDvec()),
list(p.hadBCIDvec()),
5166 list(p.emBCIDext()),
list(p.hadBCIDext()))
5171 fprint (f, p.getStatus(),
5172 p.getWord0(), p.getWord1(), p.getWord2() , p.getWord3(),
5173 p.getWord0p(), p.getWord1p(), p.getWord2p(), p.getWord3p(),
5174 p.getWord0n(), p.getWord1n(), p.getWord2n(), p.getWord3n())
5179 fprint (f,
'[', p.getWord1(), p.getWord2(),
']')
5184 fprint (f, p.getChannel())
5191 fprint (f, p.CSCid(), p.globalTime(), p.energyDeposit())
5192 dump_Threevec (p.getHitStart(), f)
5193 dump_Threevec (p.getHitEnd(), f)
5194 fprint (f, p.particleID(), p.kineticEnergy())
5195 dump_HepMcParticleLink (p.particleLink(), f)
5200 fprint (f, p.MDTid(), p.globalTime(), p.driftRadius())
5201 dump_Threevec (p.localPosition(), f)
5202 fprint (f, p.stepLength(), p.energyDeposit(), p.particleEncoding(), p.kineticEnergy())
5203 dump_HepMcParticleLink (p.particleLink(), f)
5208 fprint (f, p.RPCid(), p.globalTime())
5209 dump_Threevec (p.localPosition(), f)
5210 dump_Threevec (p.postLocalPosition(), f)
5211 fprint (f, p.stepLength(), p.energyDeposit(), p.particleEncoding(), p.kineticEnergy())
5212 dump_HepMcParticleLink (p.particleLink(), f)
5217 fprintln (f, p.TGCid(), p.globalTime())
5218 dump_Threevec (p.localPosition(), f)
5219 dump_Threevec (p.localDireCos(), f)
5220 fprint (f, p.stepLength(), p.energyDeposit(), p.particleEncoding(), p.kineticEnergy())
5221 dump_HepMcParticleLink (p.particleLink(), f)
5226 fprint (f, p.channelID().getString(), p.gain(),
list(p.samples()))
5231 fprint (f, p.identify().getString())
5236 dump_ZdcRawData (p, f)
5237 fprint (f,
list(p.get_digits_gain0_delay0()))
5238 fprint (f,
list(p.get_digits_gain0_delay1()))
5239 fprint (f,
list(p.get_digits_gain1_delay0()))
5240 fprint (f,
list(p.get_digits_gain1_delay1()))
5245 fprint (f, p.getName(), p.getDescription(), p.getInputStream(), p.getOutputStream(), p.getLogic(), p.getNAcceptedEvents(), p.getNWeightedAcceptedEvents(), p.getCycle())
5246 for c
in list(p.getChildrenEventBookkeepers()):
5247 fprint (f,
'\n ' + (
' '*level))
5248 dump_EventBookkeeper (c, f, level+1)
5253 fprint (f,
'RpcFiredChannel', p.bcid(), p.time(), p.ijk(), p.channel(), p.ovl(), p.thr())
5258 fprint (f, p.identify().getString(), p.onlineId(), p.crc(), p.fel1Id(), p.febcId())
5261 dump_RpcFiredChannel (chan, f)
5267 dump_IDC (dump_RpcCoinMatrix, p, f,
5268 extra_idc_dumper =
lambda p, f: \
5269 fprint (f, p.identify().getString(), p.onlineId(), p.lvl1Id(), p.bcId(),
5270 p.sector(), p.status(), p.errorCode()))
5275 fprint (f,
'hit', p.rowinBcid(), p.padId(), p.ptId(), p.roi(),
5276 p.outerPlane(), p.overlapPhi(), p.overlapEta(),
5277 p.triggerBcid(), p.isInput())
5281 fprint (f, p.sectorId(), p.fel1Id(), p.bcid(), p.errorCode(), p.crc(),
5282 p.hasMoreThan2TriggerCand(),
5283 list (p.counters()),
5284 list (p.triggerRates()))
5287 dump_RpcSLTriggerHit (hit, f)
5292 fprint (f, p.address(), p.hashId(), p.identify(), p.rpuID(),
5293 p.time(), p.width(), p.isTimeComputed(),
list(p.samples()))
5298 dump_IDC (dump_CscRawData, p, f,
5299 extra_idc_dumper =
lambda p, f: \
5300 fprint (f, p.identify(), p.rodId(), p.subDetectorId(),
5301 p.samplingPhase(), p.triggerType(), p.firstBitSummary(),
5302 p.eventType(), p.scaAddress(),
5303 list(p.rpuID()), [ord(c)
for c
in p.dataType()]))
5308 fprint (f, p.bcTag(),
5310 p.subDetectorId(), p.rodId(), p.sswId(),
5311 p.slbId(), p.l1Id(), p.bcId(), p.slbType(),
5313 p.bitpos(), p.tracklet(), p.isAdjacent(),
5315 p.type(), p.isForward(), p.index(), p.position(),
5316 p.delta(), p.segment(), p.subMatrix(),
5318 p.sector(), p.chip(), p.isHipt(), p.hitId(), p.hsub(),
5319 p.isStrip(), p.inner(),
5321 p.cand3plus(), p.isMuplus(), p.threshold(), p.isOverlap(),
5322 p.isVeto(), p.roi(), p.innerflag(), p.coinflag(),
5324 p.nsweta(), p.nswphi(), p.nswsl(), p.nswcand(), p.nswdtheta(),
5325 p.nswphires(), p.nswlowres(), p.nswid(),
5327 p.rpceta(), p.rpcphi(), p.rpcflag(), p.rpcdeta(), p.rpcdphi(),
5329 p.ei(), p.fi(), p.cid(),
5331 p.tmdbmod(), p.tmdbbcid())
5339 if getattr (p, ff): mask += val
5341 fprint (f, lab, hex (mask))
5344 dump_TgcBitmask (p, f,
'err',
5352 dump_TgcBitmask (p, f,
'rod',
5383 dump_TgcBitmask (p, f,
'local',
5385 'mergedTrackletBCs',
5392 fprint (f, p.version(), p.identify(),
5393 p.subDetectorId(), p.rodId(), p.triggerType(),
5394 p.bcId(), p.l1Id(), p.orbit())
5395 dump_TgcRdo_Errors (p.errors(), f)
5396 dump_TgcRdo_RodStatus (p.rodStatus(), f)
5397 dump_TgcRdo_LocalStatus (p.localStatus(), f)
5402 dump_IDC (dump_TgcRawData, p, f,
5403 extra_idc_dumper = dump_TgcRdo)
5408 fprint (f, p.tdcId(), p.channelId(), p.leading(), p.coarse(), p.fine(),
5409 p.width(), p.isMasked(),
list(p.dataWords()))
5414 dump_IDC (dump_MdtAmtHit, p, f,
5415 extra_idc_dumper =
lambda p, f: \
5416 fprint (f, p.identify().getString(),
5417 p.SubDetId(), p.MrodId(), p.CsmId()))
5422 fprint (f, p.identify().getString(), p.bcTag(), p.time(), p.tdo(), p.charge(),
5423 p.isDead(), p.timeAndChargeInCounts())
5428 dump_IDC (dump_STGC_RawData, p, f)
5433 fprint (f, p.identify().getString(), p.channel(), p.relBcid(),
5434 p.time(), p.charge(),
5435 p.timeAndChargeInCounts())
5440 dump_IDC (dump_MM_RawData, p, f)
5445 fprint (f, p.getSourceid(), p.getFlags(), p.getEc(), p.getFragid(),
5446 p.getSecid(), p.getSpare(), p.getOrbit(), p.getBcid(), p.getL1id(),
5447 p.getOrbitid(), p.getOrbit1(), p.getStatus(),
5448 p.getNumberOfHits(), p.getNumberOfPfebs(), p.getNumberOfTriggers(),
5449 p.getNumberOfBcids(),
5450 list(p.getHitRelBcids()),
5451 list(p.getHitPfebs()),
5452 list(p.getHitTdsChannels()),
5453 list(p.getHitVmmChannels()),
5454 list(p.getHitVmms()),
5455 list(p.getHitPadChannels()),
5456 list(p.getPfebAddrs()),
5457 list(p.getPfebNChannels()),
5458 list(p.getPfebDisconnecteds()),
5459 list(p.getTriggerBandIds()),
5460 list(p.getTriggerPhiIds()),
5461 list(p.getTriggerRelBcids()),
5462 list(p.getBcidRels()),
5463 list(p.getBcidStatuses()),
5464 list(p.getBcidMultZeros()),
5465 list(p.getBcidMultiplicities()))
5473 dump_NSW_PadTriggerData (beg.cptr(), f)
5481 fprint (f,
'ld', p.GetLucrodID(),
'bcid', p.GetBCID(),
5482 'run', p.GetRunNumber(),
'l1id', p.GetLevel1ID(),
5483 'nbc', p.GetNumBCs(),
'stat', p.GetStatus(),
5484 'avga/c', p.GetTrigAvgA(), p.GetTrigAvgC(),
5485 'data',
list(p.GetTrigData()))
5486 for i
in range (p.GetChanDataSize()):
5487 ch = p.GetChanData(i)
5488 fprint (f,
'\n chan ', ch.id,
list(ch.waveform))
5493 dump_HepMcParticleLink (p.first, f)
5494 dump_EL (p.second, f)
5504 key =
'(%d)' % x.key()
5505 return f
'DataLink({key})'
5507 if x.isDefaultIndex():
5511 key =
'(%d)' % x.key()
5512 return '%s[%d]' % (key, x.index())
5513 char_accessor_ = getattr (ROOT,
'SG::ConstAccessor<char>')
5516 self.
ac = char_accessor_ (name)
5519 return ord(self.
ac(x))
5520 uchar_accessor_ = getattr (ROOT,
'SG::ConstAccessor<unsigned char>')
5523 self.
ac = uchar_accessor_ (name)
5526 return ord(self.
ac(x))
5534 'unsigned long long',
5535 'std::vector<float>',
5539 'char' : char_accessor,
5540 'unsigned char' : uchar_accessor,
5543 aname =
'SG::ConstAccessor<' + t
5544 if t[-1] ==
'>': aname +=
' '
5546 accessors[t] = getattr (ROOT, aname)
5549 atomic_accessors = {
5550 'unsigned int' : getattr (ROOT,
'SG::AtomicConstAccessor<unsigned int>'),
5555 if isinstance(x, float):
5556 return format_float (x)
5557 if isinstance(x, int):
5558 return format_int (x)
5560 if tname.startswith (
'CxxUtils::range_with_conv<'):
5563 if tname.startswith (
'ROOT.'):
5565 if tname.startswith (
'ElementLink<'):
5566 return format_el (x)
5567 if tname.startswith (
'DataLink<'):
5568 return format_dl (x)
5569 if tname.startswith (
'std::vector<')
or tname.startswith (
'vector<'):
5570 ipos = tname.find(
'<')
5571 tname2 = tname[ipos+1:]
5572 if (tname2.startswith(
'char,')
or
5573 tname2.startswith(
'char>')
or
5574 tname2.startswith (
'unsigned char,')
or
5575 tname2.startswith (
'unsigned char>')):
5576 l =
', '.join ([
str(ord(x[i]))
for i
in range(len(x))])
5577 elif tname2.startswith(
'bool,')
or tname2 ==
'bool>':
5578 l =
', '.join ([
str(
bool(xx))
for xx
in x])
5581 return '[' + l +
']'
5582 if isinstance(x, PyAthena.xAOD.CaloClusterBadChannelData_v1):
5583 return '<BadChannel: %6.3f/%6.3f/%2d: %04x>' % \
5584 (x.eta(), x.phi(), x.layer(), x.badChannel())
5585 if tname ==
'set<unsigned int>':
5586 acls=getattr(PyAthena,
'PyDumper::PySTLAdaptor<std::set<unsigned int>')
5590 if tname.startswith (
'std::pair<')
or tname.startswith (
'pair<'):
5593 if tname ==
'Trk::VxTrackAtVertex':
5595 dump_VxTrackAtVertex (x, fout)
5596 out = fout.getvalue()
5597 return '{' + out.replace(
'\n',
'; ') +
'}'
5603 if hasattr (x,
'container'):
5605 x.container().getConstStore().
getData(auxid)[0]
5607 fprint (f,
'<unavailable 1>')
5610 reg=ROOT.SG.AuxTypeRegistry.instance()
5611 tname = reg.getTypeName (auxid)
5612 ac = ROOT.SG.ConstAuxElement.TypelessConstAccessor (reg.getName(auxid))
5616 fprint (f,
'<unavailable 2>')
5619 obj = ROOT.TPython.CPPInstance_FromVoidPtr (buf, tname)
5621 fprint (f,
'<unknown %s>'%tname)
5623 fprint (f,
format_obj(obj, reg.getName(auxid)))
5628 if hasattr (x,
'container'):
5629 auxdata = x.container().getConstStore().
getData(auxid)
5632 fprint (f,
'<unavailable>')
5637 fprint (f,
'<unavailable 4>')
5640 reg=ROOT.SG.AuxTypeRegistry.instance()
5641 tname = reg.getTypeName (auxid)
5642 atomic = reg.getFlags (auxid) & ROOT.SG.AuxVarFlags.Atomic
5644 ac_cl = atomic_accessors.get (tname)
5646 ac_cl = accessors.get (tname)
5648 if not ac_cl
and tname.startswith (
'SG::JaggedVecElt<'):
5649 ac_cl = getattr (ROOT,
'SG::ConstAccessor<' + tname +
' >')
5651 accessors[tname] = ac_cl
5653 if not ac_cl
and tname.startswith (
'SG::PackedLink<')
or tname.startswith (
'std::vector<SG::PackedLink<'):
5654 ac_cl = getattr (ROOT,
'SG::ConstAccessor<' + tname +
' >')
5656 accessors[tname] = ac_cl
5660 ac = ac_cl(reg.getName(auxid))
5665 val =
'<unavailable 5>'
5668 generic_dump_auxitem (x, auxid, f)
5673 reg=ROOT.SG.AuxTypeRegistry.instance()
5674 if cppyy.addressof (x) == 0:
5675 fprint (f,
'<null pointer>', x,
type(x))
5678 auxids = ROOT.PyDumper.Utils.getAuxIDVector (x)
5682 auxids = [(reg.getName(id), id)
for id
in auxids]
5684 for name, auxid
in auxids:
5685 if exclude
and name
in exclude:
continue
5686 if name.endswith (
'_linked'):
continue
5687 fprint (f, name +
': ')
5688 dump_auxitem (x, auxid, f)
5694 fprint (f,
typename(o.__class__),
'\n ')
5695 dump_auxdata (o, f=f)
5715 if nmax
is not None and i >= nmax:
break
5725 """The list of tuples (cpp_type, dumper_fct)
5728 [
"ElectronContainer", dump_Electron],
5729 [
"PhotonContainer", dump_Photon],
5730 [
"Analysis::MuonContainer", dump_Muon],
5731 [
"Analysis::TauJetContainer", dump_TauJet],
5732 [
"TruthParticleContainer", dump_TruthParticle],
5733 [
"ParticleJetContainer", dump_ParticleJet],
5734 [
"Rec::TrackParticleContainer", dump_TrackParticle],
5735 [
"DataVector<Trk::Track>", dump_Track],
5736 [
"DataVector<Trk::Segment>", dump_Segment],
5737 [
"MissingET", dump_MissingET],
5738 [
"MissingEtCalo", dump_MissingEtCalo],
5739 [
"MissingEtTruth", dump_MissingEtTruth],
5740 [
"CaloClusterContainer", dump_CaloClusters_sorted],
5741 [
'CaloCellLinkContainer', dump_CaloCellLink],
5742 [
'CaloCellContainer', dump_CaloCell],
5743 [
'CaloClusterCellLinkContainer', dump_CaloClusterCellLink],
5744 [
'TileContainer<TileCell>', dump_CaloCell],
5745 [
'TileCellContainer', dump_CaloCell],
5746 [
"VxContainer", dump_VxCandidate],
5747 [
"EventInfo", dump_EventInfo],
5748 [
"PileUpEventInfo", dump_PileUpEventInfo],
5749 [
"EventStreamInfo", dump_EventStreamInfo],
5750 [
"McEventCollection", dump_GenEvent],
5751 [
"CTP_Decision", dump_CTP_Decision],
5752 [
"LVL1_ROI", dump_LVL1_ROI],
5753 [
"TrigDec::TrigDecision", dump_TrigDecision],
5754 [
"TrigConf::HLTAODConfigData", dump_HLTAODConfigData],
5755 [
"TrigConf::Lvl1AODConfigData", dump_Lvl1AODConfigData],
5756 [
"TrigConf::Lvl1AODPrescaleConfigData", dump_Lvl1AODPrescaleConfigData],
5757 [
"TrackParticleTruthCollection", dump_TrackParticleTruthCollection],
5758 [
"DetailedTrackTruthCollection", dump_DetailedTrackTruthCollection],
5759 [
"Rec::MuonSpShowerContainer", dump_MuonSpShower],
5760 [
"HLT::HLTResult", dump_HLTResult],
5761 [
"HLT::HLTResultMT", dump_HLTResultMT],
5762 [
"MissingETSig", dump_MissingETSig],
5763 [
"INav4MomAssocs", dump_INav4MomAssocs],
5764 [
"TrigInDetTrackTruthMap", dump_TrigInDetTrackTruthMap],
5765 [
"MissingETSigObjContainer", dump_MissingETSigObject],
5766 [
"DetStatusMap", dump_DetStatusMap],
5767 [
"AtlasHitsVector<TrackRecord>", dump_TrackRecord],
5768 [
"AthenaHitsVector<TrackRecord>", dump_TrackRecord],
5769 [
"MissingETSigHypoContainer", dump_MissingETSigHypo],
5770 [
"JetCollection", dump_Jet],
5771 [
"V0Container", dump_V0Candidate],
5772 [
"egammaContainer", dump_egamma],
5773 [
"DataVector<TrigVertex>", dump_TrigVertex],
5774 [
"TrigVertexCollection", dump_TrigVertex],
5775 [
"TrigTrackCounts", dump_TrigTrackCounts_nolist],
5776 [
"TrigTau", dump_TrigTau_nolist],
5777 [
"DataVector<TrigElectron>", dump_TrigElectron],
5778 [
"DataVector<TrigPhoton>", dump_TrigPhoton],
5779 [
"TrigEMCluster", dump_TrigEMCluster_nolist],
5780 [
"TrigInDetTrackCollection", dump_TrigInDetTrackCollection],
5781 [
"DataVector<TrigEFBjet>", dump_TrigEFBjet],
5782 [
"DataVector<TrigEFBphys>", dump_TrigEFBphys],
5783 [
"DataVector<TrigL2Bjet>", dump_TrigL2Bjet],
5784 [
"DataVector<TrigL2Bphys>", dump_TrigL2Bphys],
5785 [
"TrigCaloClusterContainer", dump_TrigCaloCluster],
5786 [
"TrigTauClusterDetailsContainer", dump_TrigTauClusterDetails],
5787 [
"TrigMissingET", dump_TrigMissingET_nolist],
5788 [
"TrigRoiDescriptor", dump_TrigRoiDescriptor_nolist],
5789 [
"TrigT2Jet", dump_TrigT2Jet_nolist],
5790 [
"TrigTauCluster", dump_TrigTauCluster_nolist],
5791 [
"TrigTauTracksInfo", dump_TrigTauTracksInfo_nolist],
5792 [
"TrigSpacePointCounts", dump_TrigSpacePointCounts_nolist],
5793 [
"CombinedMuonFeature", dump_CombinedMuonFeature_nolist],
5794 [
"MuonFeature", dump_MuonFeature_nolist],
5795 [
"TrigMuonEFContainer", dump_TrigMuonEF],
5796 [
"TileContainer<TileMu>", dump_TileMu],
5797 [
"CaloShowerContainer", dump_CaloShower],
5798 [
"CaloTowerContainer", dump_CaloTowerContainer],
5799 [
"CaloTopoTowerContainer", dump_CaloTopoTowerContainer],
5800 [
"CaloCalibrationHitContainer", dump_CaloCalibrationHit],
5801 [
'LArHitContainer', dump_LArHit],
5802 [
'TileHitVector', dump_TileHit],
5803 [
'AtlasHitsVector<TileHit>', dump_TileHit],
5804 [
'TileRawChannelContainer', dump_TileRawChannelContainer],
5805 [
'TileBeamElemContainer', dump_TileBeamElemContainer],
5806 [
'SiHitCollection', dump_SiHit],
5807 [
'AtlasHitsVector<SiHit>', dump_SiHit],
5808 [
'TRTUncompressedHitCollection', dump_TRTUncompressedHit],
5809 [
'AtlasHitsVector<TRTUncompressedHit>', dump_TRTUncompressedHit],
5810 [
'AtlasHitsVector<CSCSimHit>', dump_CSCSimHit],
5811 [
'AtlasHitsVector<MDTSimHit>', dump_MDTSimHit],
5812 [
'AtlasHitsVector<RPCSimHit>', dump_RPCSimHit],
5813 [
'AtlasHitsVector<TGCSimHit>', dump_TGCSimHit],
5814 [
"CombinedMuonFeatureContainer", dump_CombinedMuonFeature],
5815 [
"MuonFeatureContainer", dump_MuonFeature],
5816 [
"TrigEFBjetContainer", dump_TrigEFBjet],
5817 [
"TrigEFBphysContainer", dump_TrigEFBphys],
5818 [
"TrigEMClusterContainer", dump_TrigEMCluster],
5819 [
"TrigElectronContainer", dump_TrigElectron],
5820 [
"TrigL2BjetContainer", dump_TrigL2Bjet],
5821 [
"TrigL2BphysContainer", dump_TrigL2Bphys],
5822 [
"TrigMissingETContainer", dump_TrigMissingET],
5823 [
"TrigPhotonContainer", dump_TrigPhoton],
5824 [
"TrigT2JetContainer", dump_TrigT2Jet],
5825 [
"TrigTauClusterContainer", dump_TrigTauCluster],
5826 [
"TrigTauContainer", dump_TrigTau],
5827 [
"TrigTauTracksInfoCollection", dump_TrigTauTracksInfo],
5828 [
"TrigSpacePointCountsCollection", dump_TrigSpacePointCounts],
5829 [
"TrigTrackCountsCollection", dump_TrigTrackCounts],
5830 [
"TrigT2MbtsBitsContainer", dump_TrigT2MbtsBits],
5831 [
"TrigRoiDescriptorCollection", dump_TrigRoiDescriptor],
5832 [
"TileMuFeatureContainer", dump_TileMuFeature],
5833 [
"TileTrackMuFeatureContainer", dump_TileTrackMuFeature],
5834 [
"CosmicMuonCollection", dump_CosmicMuon],
5835 [
"MdtTrackSegmentCollection", dump_MdtTrackSegment],
5836 [
"IsoMuonFeatureContainer", dump_IsoMuonFeature],
5837 [
"TrigMuonEFInfoContainer", dump_TrigMuonEFInfo],
5838 [
"RingerRingsContainer", dump_RingerRings],
5839 [
"TrigTrtHitCountsCollection", dump_TrigTrtHitCounts],
5840 [
"MuonFeatureDetailsContainer", dump_MuonFeatureDetails],
5841 [
"TrigRNNOutputContainer", dump_TrigRNNOutput],
5842 [
"InDet::InDetLowBetaContainer", dump_InDetLowBetaCandidate],
5843 [
"LArNoisyROSummary", dump_LArNoisyROSummary],
5844 [
"SkimDecisionCollection", dump_SkimDecision],
5845 [
"RawInfoSummaryForTag", dump_RawInfoSummaryForTag],
5846 [
"MissingETComposition", dump_MissingETComposition],
5847 [
"Muon::ChamberT0s", dump_ChamberT0s],
5848 [
"TrigMuonClusterFeatureContainer", dump_TrigMuonClusterFeature],
5849 [
"TrigPassBitsCollection", dump_TrigPassBits],
5850 [
"TrigOperationalInfoCollection", dump_TrigOperationalInfo],
5851 [
"TrigVertexCountsCollection", dump_TrigVertexCounts],
5852 [
"TrigMuonEFIsolationContainer", dump_TrigMuonEFIsolation],
5853 [
"eflowObjectContainer", dump_eflowObjectContainer],
5854 [
"TrigPassFlagsCollection", dump_TrigPassFlags],
5855 [
"TrackParticleAssocs", dump_TrackParticleAssocs],
5856 [
"ElectronMuonTopoInfoContainer", dump_ElectronMuonTopoInfo],
5857 [
"RecoTimingObj", dump_RecoTimingObj],
5858 [
'MuonCaloEnergyContainer', dump_CaloEnergy],
5859 [
'CscSimDataCollection', dump_CscSimDataCollection],
5860 [
'MuonSimDataCollection', dump_MuonSimDataCollection],
5861 [
'Muon::MuonPrepDataContainer<Muon::MuonPrepDataCollection<Muon::CscPrepData> >', dump_CscPrepDataContainer],
5862 [
'Muon::MuonPrepDataContainer<Muon::MuonPrepDataCollection<Muon::CscStripPrepData> >', dump_CscStripPrepDataContainer],
5863 [
'Muon::MuonPrepDataContainer<Muon::MuonPrepDataCollection<Muon::TgcPrepData> >', dump_TgcPrepDataContainer],
5864 [
'Muon::MuonPrepDataContainer<Muon::MuonPrepDataCollection<Muon::MdtPrepData> >', dump_MdtPrepDataContainer],
5865 [
'Muon::MuonPrepDataContainer<Muon::MuonPrepDataCollection<Muon::RpcPrepData> >', dump_RpcPrepDataContainer],
5866 [
'Muon::MuonCoinDataContainer<Muon::MuonCoinDataCollection<Muon::RpcCoinData> >', dump_RpcCoinDataContainer],
5867 [
'Muon::MuonCoinDataContainer<Muon::MuonCoinDataCollection<Muon::TgcCoinData> >', dump_TgcCoinDataContainer],
5868 [
'Trk::PrepRawDataContainer<Trk::PrepRawDataCollection<InDet::PixelCluster> >', dump_PixelClusterContainer],
5869 [
'Trk::PrepRawDataContainer<Trk::PrepRawDataCollection<InDet::SCT_Cluster> >', dump_SCT_ClusterContainer],
5870 [
'Trk::PrepRawDataContainer<Trk::PrepRawDataCollection<InDet::TRT_DriftCircle> >', dump_TRT_DriftCircleContainer],
5871 [
'InDetRawDataContainer<InDetRawDataCollection<PixelRDORawData> >', dump_PixelRawDataContainer],
5872 [
'InDetRawDataContainer<InDetRawDataCollection<TRT_RDORawData> >', dump_TRT_RawDataContainer],
5873 [
'InDetRawDataContainer<InDetRawDataCollection<SCT_RDORawData> >', dump_SCT_RawDataContainer],
5874 [
'std::multimap<const InDet::SiCluster*,const InDet::SiCluster*,InDet::compare_SiCluster>', dump_PixelGangedClusterAmbiguities],
5875 [
'TileDigitsContainer', dump_TileDigitsContainer],
5876 [
'TileContainer<TileL2>', dump_TileL2],
5877 [
'TileContainer<TileTTL1>', dump_TileTTL1],
5878 [
'TileContainer<TileMuonReceiverObj>', dump_TileMuonReceiverObj],
5879 [
'DataVector<LVL1::CMMCPHits>', dump_CMMCPHits],
5880 [
'DataVector<LVL1::CMMEtSums>', dump_CMMEtSums],
5881 [
'DataVector<LVL1::CMMJetHits>', dump_CMMJetHits],
5882 [
'LVL1::CMMRoI', dump_CMMRoI],
5883 [
'DataVector<LVL1::CPMHits>', dump_CPMHits],
5884 [
'DataVector<LVL1::CPMRoI>', dump_CPMRoI],
5885 [
'DataVector<LVL1::CPMTower>', dump_CPMTower],
5886 [
'CTP_RDO', dump_CTP_RDO],
5887 [
'MuCTPI_RDO', dump_MuCTPI_RDO],
5888 [
'DataVector<LVL1::JEMEtSums>', dump_JEMEtSums],
5889 [
'DataVector<LVL1::JEMHits>', dump_JEMHits],
5890 [
'DataVector<LVL1::JEMRoI>', dump_JEMRoI],
5891 [
'DataVector<LVL1::JetElement>', dump_JetElement],
5892 [
'DataVector<LVL1::TriggerTower>', dump_TriggerTower],
5893 [
'ROIB::RoIBResult', dump_RoIBResult],
5894 [
'LUCID_RawDataContainer', dump_LUCID_RawData],
5895 [
'BCM_RDO_Container', dump_BCM_RDO_Collection],
5896 [
'LArDigitContainer', dump_LArDigit],
5897 [
'EventBookkeeperCollection', dump_EventBookkeeper],
5898 [
'ZdcDigitsCollection', dump_ZdcDigits],
5899 [
'RpcPadContainer', dump_RpcPadContainer],
5900 [
'RpcSectorLogicContainer', dump_RpcSectorLogic],
5901 [
'CscRawDataContainer', dump_CscRawDataContainer],
5902 [
'TgcRdoContainer', dump_TgcRdoContainer],
5903 [
'MdtCsmContainer', dump_MdtCsmContainer],
5904 [
'Muon::STGC_RawDataContainer', dump_STGC_RawDataContainer],
5905 [
'Muon::MM_RawDataContainer', dump_MM_RawDataContainer],
5906 [
'Muon::NSW_PadTriggerDataContainer', dump_NSW_PadTriggerDataContainer],
5907 [
'ZdcLucrodDataContainer', dump_ZdcLucrod_Data],
5908 [
'AthenaAttributeList', dump_AttributeList],
5909 [
'InDetTimeCollection', dump_InDetTime],
5910 [
'std::vector<pair<unsigned int,unsigned int> >', dump_InDetTime],
5911 [
'IDCInDetBSErrContainer', dump_IDCInDetBSErrContainer],
5912 [
'TRT_BSErrContainer', dump_TRT_BSErrContainer],
5913 [
'LArFebHeaderContainer', dump_LArFebHeader],
5914 [
'LArRawChannelContainer', dump_LArRawChannel],
5915 [
'TrigMonEventCollection', dump_TrigMonEvent],
5916 [
'TrigMonConfigCollection', dump_TrigMonConfig],
5917 [
'LVL1CTP::Lvl1Result', dump_Lvl1Result],
5918 [
'AFP_RawContainer', dump_AFP_RawContainer],
5919 [
'ALFA_RawDataContainer', dump_ALFA_RawDataContainer],
5920 [
'TrigT2ZdcSignalsContainer', dump_TrigT2ZdcSignals],
5921 [
'Analysis::TauDetailsContainer', dump_TauDetailsContainer],
5922 [
'egDetailContainer', dump_egDetailContainer],
5923 [
'JetMomentMapCollection', dump_JetMomentMapCollection],
5924 [
'JetKeyDescriptorCollection', dump_JetKeyDescriptorCollection],
5925 [
'LArFebErrorSummary', dump_LArFebErrorSummary],
5926 [
'Trk::ClusterSplitProbabilityContainer', dump_ClusterSplitProbabilityContainer],
5927 [
'InDetSimDataCollection', dump_InDetSimDataCollection],
5928 [
'PRD_MultiTruthCollection', dump_PRD_MultiTruthCollection],
5929 [
'TrackTruthCollection', dump_TrackTruthCollection],
5930 [
'LArTTL1Container', dump_LArTTL1],
5931 [
'ComTime', dump_ComTime],
5932 [
'std::vector<unsigned int>', dump_vector],
5934 [
'DataVector<xAOD::BTagVertex_v1>', dump_xAOD],
5935 [
'xAOD::BTagVertexContainer', dump_xAOD],
5936 [
'DataVector<xAOD::BTagging_v1>', dump_xAOD],
5937 [
'xAOD::BTaggingContainer', dump_xAOD],
5938 [
'DataVector<xAOD::CaloCluster_v1>', dump_xAOD],
5939 [
'xAOD::CaloClusterContainer', dump_xAOD],
5940 [
'DataVector<xAOD::Electron_v1>', dump_xAOD],
5941 [
'DataVector<xAOD::EmTauRoI_v1>', dump_xAOD],
5942 [
'DataVector<xAOD::EmTauRoI_v2>', dump_xAOD],
5943 [
'xAOD::EmTauRoIContainer', dump_xAOD],
5944 [
'DataVector<xAOD::JetRoI_v1>', dump_xAOD],
5945 [
'DataVector<xAOD::JetRoI_v2>', dump_xAOD],
5946 [
'xAOD::JetRoIContainer', dump_xAOD],
5947 [
'DataVector<xAOD::Jet_v1>', dump_xAOD],
5948 [
'xAOD::JetContainer', dump_xAOD],
5949 [
'DataVector<xAOD::L2CombinedMuon_v1>', dump_xAOD],
5950 [
'xAOD::L2CombinedMuonContainer', dump_xAOD],
5951 [
'DataVector<xAOD::L2StandAloneMuon_v1>',dump_xAOD],
5952 [
'DataVector<xAOD::L2StandAloneMuon_v2>',dump_xAOD],
5953 [
'xAOD::L2StandAloneMuonContainer', dump_xAOD],
5954 [
'DataVector<xAOD::MuonRoI_v1>', dump_xAOD],
5955 [
'xAOD::MuonRoIContainer', dump_xAOD],
5956 [
'DataVector<xAOD::MuonSegment_v1>', dump_xAOD],
5957 [
'xAOD::MuonSegmentContainer', dump_xAOD],
5958 [
'DataVector<xAOD::Muon_v1>', dump_xAOD],
5959 [
'xAOD::MuonContainer', dump_xAOD],
5960 [
'DataVector<xAOD::PFO_v1>', dump_xAOD],
5961 [
'xAOD::PFOContainer', dump_xAOD],
5962 [
'DataVector<xAOD::Photon_v1>', dump_xAOD],
5963 [
'DataVector<xAOD::SlowMuon_v1>', dump_xAOD],
5964 [
'xAOD::SlowMuonContainer', dump_xAOD],
5965 [
'DataVector<xAOD::TauJet_v1>', dump_xAOD],
5966 [
'DataVector<xAOD::TauJet_v2>', dump_xAOD],
5967 [
'DataVector<xAOD::TauJet_v3>', dump_xAOD],
5968 [
'xAOD::TauJetContainer', dump_xAOD],
5969 [
'DataVector<xAOD::TauTrack_v1>', dump_xAOD],
5970 [
'xAOD::TauTrackContainer', dump_xAOD],
5971 [
'DataVector<xAOD::Particle_v1>', dump_xAOD],
5972 [
'xAOD::ParticleContainer', dump_xAOD],
5973 [
'DataVector<xAOD::TrackParticle_v1>', dump_xAOD],
5974 [
'xAOD::TrackParticleContainer', dump_xAOD],
5975 [
'DataVector<xAOD::TrigBphys_v1>', dump_xAOD],
5976 [
'xAOD::TrigBphysContainer', dump_xAOD],
5977 [
'DataVector<xAOD::TrigComposite_v1>', dump_xAOD],
5978 [
'xAOD::TrigCompositeContainer', dump_xAOD],
5979 [
'DataVector<xAOD::TrigEMCluster_v1>', dump_xAOD],
5980 [
'xAOD::TrigEMClusterContainer', dump_xAOD],
5981 [
'DataVector<xAOD::TrigElectron_v1>', dump_xAOD],
5982 [
'xAOD::TrigElectronContainer', dump_xAOD],
5983 [
'DataVector<xAOD::TrigMissingET_v1>', dump_xAOD],
5984 [
'xAOD::TrigMissingETContainer', dump_xAOD],
5985 [
'DataVector<xAOD::TrigPhoton_v1>', dump_xAOD],
5986 [
'xAOD::TrigPhotonContainer', dump_xAOD],
5987 [
'DataVector<xAOD::TrigRNNOutput_v1>', dump_xAOD],
5988 [
'DataVector<xAOD::TrigRNNOutput_v2>', dump_xAOD],
5989 [
'xAOD::TrigRNNOutputContainer', dump_xAOD],
5990 [
'DataVector<xAOD::TrigRingerRings_v1>', dump_xAOD],
5991 [
'DataVector<xAOD::TrigRingerRings_v2>', dump_xAOD],
5992 [
'xAOD::TrigRingerRingsContainer', dump_xAOD],
5993 [
'DataVector<xAOD::TrigSpacePointCounts_v1>',dump_xAOD],
5994 [
'xAOD::TrigSpacePointCountsContainer', dump_xAOD],
5995 [
'DataVector<xAOD::TrigT2MbtsBits_v1>', dump_xAOD],
5996 [
'xAOD::TrigT2MbtsBitsContainer', dump_xAOD],
5997 [
'DataVector<xAOD::TrigTrackCounts_v1>', dump_xAOD],
5998 [
'xAOD::TrigTrackCountsContainer', dump_xAOD],
5999 [
'DataVector<xAOD::TrigVertexCounts_v1>',dump_xAOD],
6000 [
'xAOD::TrigVertexCountsContainer', dump_xAOD],
6001 [
'DataVector<xAOD::TruthEvent_v1>', dump_xAOD],
6002 [
'xAOD::TruthEventContainer', dump_xAOD],
6003 [
'DataVector<xAOD::TruthParticle_v1>', dump_xAOD],
6004 [
'xAOD::TruthParticleContainer', dump_xAOD],
6005 [
'DataVector<xAOD::TruthVertex_v1>', dump_xAOD],
6006 [
'xAOD::TruthVertexContainer', dump_xAOD],
6007 [
'DataVector<xAOD::Vertex_v1>', dump_xAOD],
6008 [
'xAOD::VertexContainer', dump_xAOD],
6009 [
'DataVector<xAOD::L2IsoMuon_v1>', dump_xAOD],
6010 [
'xAOD::L2IsoMuonContainer', dump_xAOD],
6011 [
'DataVector<xAOD::TrigT2ZdcSignals_v1>',dump_xAOD],
6012 [
'xAOD::TrigT2ZdcSignalsContainer', dump_xAOD],
6013 [
'DataVector<xAOD::HIEventShape_v1>', dump_xAOD],
6014 [
'DataVector<xAOD::HIEventShape_v2>', dump_xAOD],
6015 [
'xAOD::HIEventShapeContainer', dump_xAOD],
6016 [
'DataVector<xAOD::DiTauJet_v1>', dump_xAOD],
6017 [
'xAOD::DiTauJetContainer', dump_xAOD],
6018 [
'DataVector<xAOD::TrigPassBits_v1>', dump_xAOD],
6019 [
'xAOD::TrigPassBitsContainer', dump_xAOD],
6020 [
'DataVector<xAOD::TrackParticleClusterAssociation_v1>', dump_xAOD],
6021 [
'xAOD::TrackParticleClusterAssociationContainer', dump_xAOD],
6022 [
'DataVector<xAOD::TruthPileupEvent_v1>',dump_xAOD],
6023 [
'xAOD::TruthPileupEventContainer_v1', dump_xAOD],
6024 [
'DataVector<xAOD::CaloRings_v1>', dump_xAOD],
6025 [
'xAOD::CaloRingsContainer', dump_xAOD],
6026 [
'DataVector<xAOD::RingSet_v1>', dump_xAOD],
6027 [
'xAOD::RingSetContainer', dump_xAOD],
6028 [
'DataVector<xAOD::ForwardEventInfo_v1>',dump_xAOD],
6029 [
'xAOD::ForwardEventInfoContainer', dump_xAOD],
6030 [
'DataVector<xAOD::MBTSModule_v1>', dump_xAOD],
6031 [
'xAOD::MBTSModuleContainer', dump_xAOD],
6032 [
'DataVector<xAOD::ZdcModule_v1>', dump_xAOD],
6033 [
'xAOD::ZdcModuleContainer', dump_xAOD],
6034 [
'DataVector<xAOD::CPMTower_v2>', dump_xAOD],
6035 [
'xAOD::CPMTowerContainer', dump_xAOD],
6036 [
'DataVector<xAOD::JetElement_v2>', dump_xAOD],
6037 [
'xAOD::JetElementContainer', dump_xAOD],
6038 [
'DataVector<xAOD::TriggerTower_v2>', dump_xAOD],
6039 [
'xAOD::TriggerTowerContainer', dump_xAOD],
6040 [
'xAOD::MissingETContainer_v1', dump_xAOD],
6041 [
'xAOD::MissingETContainer', dump_xAOD],
6042 [
'xAOD::MissingETComponentMap_v1', dump_xAOD],
6043 [
'xAOD::MissingETComponentMap', dump_xAOD],
6044 [
'DataVector<xAOD::FlowElement_v1>', dump_xAOD],
6045 [
'xAOD::FlowElementContainer', dump_xAOD],
6046 [
'DataVector<xAOD::AFPSiHitsCluster_v1>',dump_xAOD],
6047 [
'xAOD::AFPSiHitsClusterContainer', dump_xAOD],
6048 [
'DataVector<xAOD::AFPProton_v1>', dump_xAOD],
6049 [
'xAOD::AFPProtonContainer', dump_xAOD],
6050 [
'DataVector<xAOD::AFPVertex_v1>', dump_xAOD],
6051 [
'xAOD::AFPVertexContainer', dump_xAOD],
6052 [
'DataVector<xAOD::AFPTrack_v2>', dump_xAOD],
6053 [
'xAOD::AFPTrackContainer', dump_xAOD],
6054 [
'DataVector<xAOD::AFPToFTrack_v1>', dump_xAOD],
6055 [
'xAOD::AFPToFTrackContainer', dump_xAOD],
6056 [
'xAOD::EventInfo_v1', dump_xAODObject],
6057 [
'xAOD::EventInfo', dump_xAODObject],
6058 [
'xAOD::EventShape_v1', dump_xAODObjectNL],
6059 [
'xAOD::EventShape', dump_xAODObjectNL],
6060 [
'xAOD::MissingETAssociationMap_v1', dump_xAOD],
6061 [
'xAOD::MissingETAssociationMap', dump_xAOD],
6062 [
'xAOD::TrigDecision_v1', dump_xAODObject],
6063 [
'xAOD::TrigConfKeys_v1', dump_TrigConfKeys],
6064 [
'xAOD::JetEtRoI_v1', dump_xAODObject],
6065 [
'xAOD::EnergySumRoI_v1', dump_xAODObject],
6066 [
'xAOD::EnergySumRoI_v2', dump_xAODObject],
6067 [
'xAOD::TrigNavigation_v1', dump_xAODObject],
6068 [
'xAOD::TrigNavigation', dump_xAODObject],
6069 [
'xAOD::RoiDescriptorStore_v1', dump_xAODObject],
6070 [
'xAOD::RoiDescriptorStore', dump_xAODObject],
6071 [
'DataVector<xAODTruthParticleLink>', dump_xAODTruthParticleLink],
6072 [
'xAODTruthParticleLinkVector', dump_xAODTruthParticleLink],
6073 [
'DataVector<xAOD::NSWTPRDO_v1>', dump_xAOD],
6074 [
'xAOD::NSWTPRDOContainer', dump_xAOD],
6075 [
'DataVector<xAOD::NSWMMTPRDO_v1>', dump_xAOD],
6076 [
'xAOD::NSWMMTPRDOContainer', dump_xAOD],
6077 [
'DataVector<xAOD::RODHeader_v2>', dump_xAOD],
6078 [
'xAOD::RODHeaderContainer', dump_xAOD],
6079 [
'DataVector<xAOD::CMXJetTob_v1>', dump_xAOD],
6080 [
'xAOD::CMXJetTobContainer', dump_xAOD],
6081 [
'DataVector<xAOD::JEMTobRoI_v1>', dump_xAOD],
6082 [
'xAOD::JEMTobRoIContainer', dump_xAOD],
6083 [
'DataVector<xAOD::CMXCPTob_v1>', dump_xAOD],
6084 [
'xAOD::CMXCPTobContainer', dump_xAOD],
6085 [
'DataVector<xAOD::CMXJetHits_v1>', dump_xAOD],
6086 [
'xAOD::CMXJetHitsContainer', dump_xAOD],
6087 [
'DataVector<xAOD::CMXEtSums_v1>', dump_xAOD],
6088 [
'xAOD::CMXEtSumsContainer', dump_xAOD],
6089 [
'DataVector<xAOD::CMXRoI_v1>', dump_xAOD],
6090 [
'xAOD::CMXRoIContainer', dump_xAOD],
6091 [
'DataVector<xAOD::CPMTobRoI_v1>', dump_xAOD],
6092 [
'xAOD::CPMTobRoIContainer', dump_xAOD],
6093 [
'DataVector<xAOD::JEMEtSums_v2>', dump_xAOD],
6094 [
'xAOD::JEMEtSumsContainer', dump_xAOD],
6095 [
'DataVector<xAOD::CMXCPHits_v1>', dump_xAOD],
6096 [
'xAOD::CMXCPHitsContainer', dump_xAOD],
6097 [
'DataVector<xAOD::L1TopoRawData_v1>', dump_xAOD],
6098 [
'xAOD::L1TopoRawDataContainer', dump_xAOD],
6099 [
'DataVector<xAOD::jFexFwdElRoI_v1>', dump_xAOD],
6100 [
'xAOD::jFexFwdElRoIContainer', dump_xAOD],
6101 [
'DataVector<xAOD::jFexSRJetRoI_v1>', dump_xAOD],
6102 [
'xAOD::jFexSRJetRoIContainer', dump_xAOD],
6103 [
'DataVector<xAOD::jFexSumETRoI_v1>', dump_xAOD],
6104 [
'xAOD::jFexSumETRoIContainer', dump_xAOD],
6105 [
'DataVector<xAOD::gFexGlobalRoI_v1>', dump_xAOD],
6106 [
'xAOD::gFexGlobalRoIContainer', dump_xAOD],
6107 [
'DataVector<xAOD::jFexLRJetRoI_v1>', dump_xAOD],
6108 [
'xAOD::jFexLRJetRoIContainer', dump_xAOD],
6109 [
'DataVector<xAOD::eFexTauRoI_v1>', dump_xAOD],
6110 [
'xAOD::eFexTauRoIContainer', dump_xAOD],
6111 [
'DataVector<xAOD::gFexJetRoI_v1>', dump_xAOD],
6112 [
'xAOD::gFexJetRoIContainer', dump_xAOD],
6113 [
'DataVector<xAOD::gFexTower_v1>', dump_xAOD],
6114 [
'xAOD::gFexTowerContainer', dump_xAOD],
6115 [
'DataVector<xAOD::eFexEMRoI_v1>', dump_xAOD],
6116 [
'xAOD::eFexEMRoIContainer', dump_xAOD],
6117 [
'DataVector<xAOD::jFexTauRoI_v1>', dump_xAOD],
6118 [
'xAOD::jFexTauRoIContainer', dump_xAOD],
6119 [
'DataVector<xAOD::jFexTower_v1>', dump_xAOD],
6120 [
'xAOD::jFexTowerContainer', dump_xAOD],
6121 [
'DataVector<xAOD::jFexMETRoI_v1>', dump_xAOD],
6122 [
'xAOD::jFexMETRoIContainer', dump_xAOD],
6123 [
'DataVector<xAOD::eFexTower_v1>', dump_xAOD],
6124 [
'xAOD::eFexTowerContainer', dump_xAOD],
6125 [
'DataVector<xAOD::AFPSiHit_v2>', dump_xAOD],
6126 [
'xAOD::AFPSiHitContainer', dump_xAOD],
6127 [
'DataVector<xAOD::AFPToFHit_v1>', dump_xAOD],
6128 [
'xAOD::AFPToFHitContainer', dump_xAOD],
6129 [
'xAOD::BunchConfKey_v1', dump_BunchConfKey],
6130 [
'xAOD::BunchConfKey', dump_BunchConfKey],
6139 """helper function to automatically retrieve the suitable dumper function
6140 given the name of a class or the class-type
6141 @param `klass' a string containing the name of a C++ type or a type
6142 @param `ofile' a file-like instance where to dump the objects' content
6143 @param `nmax` maximum number of container elements to dump
6145 if isinstance(klass, type):
6148 elif isinstance(klass, str):
6149 klass = getattr(PyAthena,klass)
6152 raise TypeError(
'expected a type or a string')
6156 dumpers = [ i
for i
in dumpspecs
if i[0] == klname ]
6157 if len(dumpers) != 1:
6158 raise RuntimeError(
'no suitable dumper function for class [%s]'%
6161 nolist = hasattr (fct,
'nolist')
and fct.nolist
6162 from functools
import partial
as _partial
6165 dumper = _partial(fct, f=ofile, nmax=nmax)
6167 dumper = _partial(fct, f=ofile)
6169 dumper = _partial(dump_list, f=ofile, dumper=fct, nmax=nmax)