ATLAS Offline Software
TrigEFBphysCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
11 
12 //-----------------------------------------------------------------------------
13 // Persistent to transient
14 //-----------------------------------------------------------------------------
16  TrigEFBphys *transObj,
17  MsgStream &log )
18 {
19  log << MSG::DEBUG << "TrigEFBphysCnv_p2::persToTrans called " << endmsg;
20 
21  ElementLink<TrigEFBphysContainer> secondaryDecay;
22  m_elementLinkEFBphysCnv.persToTrans(&persObj->m_secondaryDecay, &secondaryDecay, log);
23 
24  *transObj = TrigEFBphys (persObj->m_roiID,
25  persObj->m_eta,
26  persObj->m_phi,
27  static_cast<TrigEFBphys::pType>(persObj->m_particleType),
28  persObj->m_mass,
29  secondaryDecay);
30  transObj->fitmass (persObj->m_fitmass) ;
31  transObj->fitchi2 (persObj->m_fitchi2) ;
32  transObj->fitndof (persObj->m_fitndof) ;
33  transObj->fitx (persObj->m_fitx) ;
34  transObj->fity (persObj->m_fity) ;
35  transObj->fitz (persObj->m_fitz) ;
36 
38  trackELVCnv.persToTrans(&persObj->m_trackVector, &trackVector, log);
39  for (const ElementLink<Rec::TrackParticleContainer> el : trackVector)
40  transObj->addTrack (el);
41 }
42 
43 //-----------------------------------------------------------------------------
44 // Transient to persistent
45 //-----------------------------------------------------------------------------
47  TrigEFBphys_p2 *persObj,
48  MsgStream &log )
49 {
50  log << MSG::DEBUG << "TrigEFBphysCnv_p2::transToPers called " << endmsg;
51 
52  persObj->m_roiID = transObj->roiId() ;
53  persObj->m_eta = transObj->eta() ;
54  persObj->m_phi = transObj->phi() ;
55  persObj->m_mass = transObj->mass() ;
56  persObj->m_fitmass = transObj->fitmass() ;
57  persObj->m_fitchi2 = transObj->fitchi2() ;
58  persObj->m_fitndof = transObj->fitndof() ;
59  persObj->m_fitx = transObj->fitx() ;
60  persObj->m_fity = transObj->fity() ;
61  persObj->m_fitz = transObj->fitz() ;
62 
63  persObj->m_particleType = static_cast<TrigEFBphys_p2::pType_p1>(transObj->particleType());
64 
65  trackELVCnv.transToPers(&transObj->trackVector(), &persObj->m_trackVector, log);
66 
68 }
TrigEFBphys::fity
float fity() const
accessor method: y position of vertex
Definition: TrigEFBphys.h:81
TrigEFBphys::phi
float phi() const
accessor method: phi
Definition: TrigEFBphys.h:69
TrigEFBphysCnv_p2::transToPers
virtual void transToPers(const TrigEFBphys *transObj, TrigEFBphys_p2 *persObj, MsgStream &log)
Definition: TrigEFBphysCnv_p2.cxx:46
TrigEFBphysCnv_p2.h
TrigEFBphys_p2::m_fitndof
int m_fitndof
Definition: TrigEFBphys_p2.h:57
TrigEFBphys::fitmass
float fitmass() const
accessor method: mass from vertex fit
Definition: TrigEFBphys.h:73
TrigEFBphys_p2::m_fitz
float m_fitz
Definition: TrigEFBphys_p2.h:60
TrigEFBphys
Definition: TrigEFBphys.h:42
TrigEFBphys_p2::m_mass
float m_mass
Definition: TrigEFBphys_p2.h:54
TrigEFBphys_p2::m_fitchi2
float m_fitchi2
Definition: TrigEFBphys_p2.h:56
ElementLinkVectorCnv_p1
Definition: ElementLinkVectorCnv_p1.h:28
TrigEFBphys::fitz
float fitz() const
accessor method: z position of vertex
Definition: TrigEFBphys.h:83
TrigEFBphys::eta
float eta() const
accessor method: eta
Definition: TrigEFBphys.h:67
ElementLinkVectorCnv_p1::persToTrans
void persToTrans(const PersLinkVect_t &pers, LinkVect_t &trans, MsgStream &log) const
TrigEFBphys::fitchi2
float fitchi2() const
accessor method: chi2 from vertex fit
Definition: TrigEFBphys.h:75
TrigEFBphys::addTrack
void addTrack(const ElementLink< Rec::TrackParticleContainer > &track)
set method: add track to particle
Definition: TrigEFBphys.cxx:56
TrigEFBphysCnv_p2::persToTrans
virtual void persToTrans(const TrigEFBphys_p2 *persObj, TrigEFBphys *transObj, MsgStream &log)
Definition: TrigEFBphysCnv_p2.cxx:15
TrigEFBphys::secondaryDecayLink
const ElementLink< TrigEFBphysContainer > & secondaryDecayLink() const
Definition: TrigEFBphys.cxx:175
ElementLinkCnv_p1::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigEFBphys_p2::m_fity
float m_fity
Definition: TrigEFBphys_p2.h:59
TrigEFBphys_p2::m_phi
float m_phi
Definition: TrigEFBphys_p2.h:53
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
TrigEFBphys::trackVector
const ElementLinkVector< Rec::TrackParticleContainer > & trackVector() const
accessor method:vector of tracks used to make particle
Definition: TrigEFBphys.h:89
TrigEFBphys_p2::m_trackVector
ElementLinkIntVector_p1 m_trackVector
Definition: TrigEFBphys_p2.h:63
TrigEFBphys_p2::pType_p1
pType_p1
Definition: TrigEFBphys_p2.h:46
TrigEFBphys::mass
float mass() const
accessor method: mass
Definition: TrigEFBphys.h:71
TrigEFBphys_p2
Definition: TrigEFBphys_p2.h:26
TrigEFBphys_p2::m_fitx
float m_fitx
Definition: TrigEFBphys_p2.h:58
TrigEFBphys::fitndof
int fitndof() const
accessor method: ndof from vertex fit
Definition: TrigEFBphys.h:77
ElementLinkVector< Rec::TrackParticleContainer >
TrigEFBphys::pType
pType
enum for different particle types
Definition: TrigEFBphys.h:47
TrigEFBphys_p2::m_roiID
int m_roiID
Definition: TrigEFBphys_p2.h:50
TrigEFBphys.h
ElementLinkCnv_p1::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TrigEFBphysCnv_p2::m_elementLinkEFBphysCnv
ElementLinkCnv_p1< ElementLink< TrigEFBphysContainer > > m_elementLinkEFBphysCnv
Definition: TrigEFBphysCnv_p2.h:47
TrigEFBphys::roiId
int roiId() const
accessor method: ID of L1 RoI
Definition: TrigEFBphys.h:63
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigEFBphys_p2::m_fitmass
float m_fitmass
Definition: TrigEFBphys_p2.h:55
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
ElementLinkVectorCnv_p1::transToPers
void transToPers(const LinkVect_t &trans, PersLinkVect_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
TrigEFBphys_p2::m_particleType
pType_p1 m_particleType
Definition: TrigEFBphys_p2.h:51
TrigEFBphys::particleType
pType particleType() const
accessor method: particle Type
Definition: TrigEFBphys.h:65
TrigEFBphys_p2::m_secondaryDecay
ElementLinkInt_p1 m_secondaryDecay
Definition: TrigEFBphys_p2.h:62
TrigEFBphys_p2::m_eta
float m_eta
Definition: TrigEFBphys_p2.h:52
TrigEFBphys_p2.h
TrigEFBphys::fitx
float fitx() const
accessor method: x position of vertex
Definition: TrigEFBphys.h:79