ATLAS Offline Software
TrigTauTracksInfoCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 //-----------------------------------------------------------------------------
10 // Persistent to transient
11 //-----------------------------------------------------------------------------
13  TrigTauTracksInfo *transObj,
14  MsgStream &log )
15 {
16  log << MSG::DEBUG << "TrigTauTracksInfoCnv_p1::persToTrans called " << endmsg;
17 
18  transObj->setRoiId (persObj->m_roiID) ;
19  transObj->setNCoreTracks (persObj->m_nCoreTracks) ;
20  transObj->setNSlowTracks (persObj->m_nSlowTracks) ;
21  transObj->setNIsoTracks (persObj->m_nIsoTracks) ;
22 
23  transObj->setCharge (persObj->m_charge) ;
24  transObj->setLeadingTrackPt (persObj->m_leadingTrackPt) ;
25  transObj->setScalarPtSumCore (persObj->m_scalarPtSumCore);
26  transObj->setScalarPtSumIso (persObj->m_scalarPtSumIso) ;
27  transObj->setPtBalance (persObj->m_ptBalance) ;
28 
29 
31  transObj->set3fastestPtEtaPhiM (mom->pt(),
32  mom->eta(),
33  mom->phi(),
34  mom->m());
35  delete mom;
36 
37  fillTransFromPStore( &m_P4PtEtaPhiMCnv, persObj->m_P4PtEtaPhiM, transObj, log );
38 }
39 
40 //-----------------------------------------------------------------------------
41 // Transient to persistent
42 //-----------------------------------------------------------------------------
44  TrigTauTracksInfo_p1 *persObj,
45  MsgStream &log )
46 {
47  log << MSG::DEBUG << "TrigTauTracksInfoCnv_p1::transToPers called " << endmsg;
48 
49  persObj->m_roiID = transObj->roiId() ;
50  persObj->m_nCoreTracks = transObj->nCoreTracks() ;
51  persObj->m_nSlowTracks = transObj->nSlowTracks() ;
52  persObj->m_nIsoTracks = transObj->nIsoTracks() ;
53 
54  persObj->m_charge = transObj->charge() ;
55  persObj->m_leadingTrackPt = transObj->leadingTrackPt() ;
56  persObj->m_scalarPtSumCore = transObj->scalarPtSumCore();
57  persObj->m_scalarPtSumIso = transObj->scalarPtSumIso() ;
58  persObj->m_ptBalance = transObj->ptBalance() ;
59 
61  persObj->m_P4PtEtaPhiM = baseToPersistent( &m_P4PtEtaPhiMCnv, transObj, log );
62 
63 }
TrigTauTracksInfoCnv_p1::m_3fastestP4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_3fastestP4PtEtaPhiMCnv
Definition: TrigTauTracksInfoCnv_p1.h:44
TrigTauTracksInfo_p1::m_nCoreTracks
int m_nCoreTracks
Definition: TrigTauTracksInfo_p1.h:50
TrigTauTracksInfoCnv_p1::transToPers
virtual void transToPers(const TrigTauTracksInfo *transObj, TrigTauTracksInfo_p1 *persObj, MsgStream &log)
Definition: TrigTauTracksInfoCnv_p1.cxx:43
TrigTauTracksInfoCnv_p1::m_P4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_P4PtEtaPhiMCnv
Definition: TrigTauTracksInfoCnv_p1.h:45
TrigTauTracksInfo::threeFastestTracks
const P4PtEtaPhiM & threeFastestTracks() const
Definition: TrigTauTracksInfo.h:50
TrigTauTracksInfo::roiId
int roiId() const
getters
Definition: TrigTauTracksInfo.h:37
TrigTauTracksInfo::setLeadingTrackPt
void setLeadingTrackPt(float pt)
Definition: TrigTauTracksInfo.h:61
TrigTauTracksInfo::nCoreTracks
int nCoreTracks() const
Definition: TrigTauTracksInfo.h:39
TrigTauTracksInfo_p1
Definition: TrigTauTracksInfo_p1.h:25
TrigTauTracksInfo_p1::m_nIsoTracks
int m_nIsoTracks
Definition: TrigTauTracksInfo_p1.h:52
TrigTauTracksInfo::setNIsoTracks
void setNIsoTracks(int nIsoTrk)
Definition: TrigTauTracksInfo.h:58
TrigTauTracksInfo::leadingTrackPt
float leadingTrackPt() const
Definition: TrigTauTracksInfo.h:44
ITPConverterFor::fillTransFromPStore
void fillTransFromPStore(CNV **cnv, const TPObjRef &ref, TRANS_T *trans, MsgStream &log) const
Convert persistent object, stored in the the top-level persistent object and referenced by the TP Ref...
Definition: TPConverter.h:145
TrigTauTracksInfo
Definition: TrigTauTracksInfo.h:28
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
TrigTauTracksInfo_p1::m_ptBalance
float m_ptBalance
Definition: TrigTauTracksInfo_p1.h:58
TrigTauTracksInfo::setPtBalance
void setPtBalance(float ptBal)
Definition: TrigTauTracksInfo.h:64
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTauTracksInfo_p1::m_leadingTrackPt
float m_leadingTrackPt
Definition: TrigTauTracksInfo_p1.h:55
TrigTauTracksInfo_p1.h
TrigTauTracksInfo::setNSlowTracks
void setNSlowTracks(int nSlowTrk)
Definition: TrigTauTracksInfo.h:57
TrigTauTracksInfo::setScalarPtSumCore
void setScalarPtSumCore(float sumPtCore)
Definition: TrigTauTracksInfo.h:62
TrigTauTracksInfo::charge
float charge() const
Definition: TrigTauTracksInfo.h:43
TrigTauTracksInfo_p1::m_roiID
int m_roiID
Definition: TrigTauTracksInfo_p1.h:49
TrigTauTracksInfoCnv_p1::persToTrans
virtual void persToTrans(const TrigTauTracksInfo_p1 *persObj, TrigTauTracksInfo *transObj, MsgStream &log)
Definition: TrigTauTracksInfoCnv_p1.cxx:12
TrigTauTracksInfo.h
TrigTauTracksInfo_p1::m_nSlowTracks
int m_nSlowTracks
Definition: TrigTauTracksInfo_p1.h:51
TrigTauTracksInfo_p1::m_scalarPtSumCore
float m_scalarPtSumCore
Definition: TrigTauTracksInfo_p1.h:56
ITPConverterFor::toPersistent
TPObjRef toPersistent(CNV **cnv, const typename CNV::TransBase_t *transObj, MsgStream &log) const
Persistify an object and store the persistent represenation in the storage vector of the top-level pe...
Definition: TPConverter.h:119
TrigTauTracksInfo::setCharge
void setCharge(float charge)
Definition: TrigTauTracksInfo.h:60
ITPConverterFor::baseToPersistent
TPObjRef baseToPersistent(CNV **cnv, const typename CNV::Trans_t *transObj, MsgStream &log) const
Persistify bass class of a given object and store the persistent represenation in the storage vector ...
Definition: TPConverter.h:97
TrigTauTracksInfo_p1::m_P4PtEtaPhiM
TPObjRef m_P4PtEtaPhiM
Definition: TrigTauTracksInfo_p1.h:63
TrigTauTracksInfoCnv_p1.h
TrigTauTracksInfo_p1::m_scalarPtSumIso
float m_scalarPtSumIso
Definition: TrigTauTracksInfo_p1.h:57
TrigTauTracksInfo_p1::m_charge
float m_charge
Definition: TrigTauTracksInfo_p1.h:54
TrigTauTracksInfo::setRoiId
void setRoiId(int id)
setters
Definition: TrigTauTracksInfo.h:55
TrigTauTracksInfo::nIsoTracks
int nIsoTracks() const
Definition: TrigTauTracksInfo.h:41
DEBUG
#define DEBUG
Definition: page_access.h:11
TrigTauTracksInfo::ptBalance
float ptBalance() const
Definition: TrigTauTracksInfo.h:48
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTauTracksInfo::nSlowTracks
int nSlowTracks() const
Definition: TrigTauTracksInfo.h:40
TrigTauTracksInfo::setScalarPtSumIso
void setScalarPtSumIso(float sumPtIso)
Definition: TrigTauTracksInfo.h:63
TrigTauTracksInfo::scalarPtSumCore
float scalarPtSumCore() const
Definition: TrigTauTracksInfo.h:46
TrigTauTracksInfo_p1::m_3fastest
TPObjRef m_3fastest
Definition: TrigTauTracksInfo_p1.h:61
P4PtEtaPhiM
Definition: P4PtEtaPhiM.h:25
TrigTauTracksInfo::setNCoreTracks
void setNCoreTracks(int nCoreTrk)
Definition: TrigTauTracksInfo.h:56
TrigTauTracksInfo::scalarPtSumIso
float scalarPtSumIso() const
Definition: TrigTauTracksInfo.h:47
TrigTauTracksInfo::set3fastestPtEtaPhiM
void set3fastestPtEtaPhiM(float pt, float eta, float phi, float m)
Definition: TrigInDetEvent/src/TrigTauTracksInfo.cxx:43
ITPConverterFor::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172