ATLAS Offline Software
TrigTauCnv_p2.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #include "TrigParticle/TrigTau.h"
8 
9 
11  TrigTau* transObj,
12  MsgStream &log)
13 {
14  log << MSG::DEBUG << "TrigTauCnv_p2::persToTrans called " << endmsg;
15 
16  transObj->setRoiId (persObj->m_roiID);
17  transObj->setZvtx (persObj->m_Zvtx);
18  transObj->setErr_Zvtx (persObj->m_err_Zvtx);
19  transObj->setEtCalibCluster (persObj->m_etCalibCluster);
20  transObj->setSimpleEtFlow (persObj->m_simpleEtFlow);
21  transObj->setNMatchedTracks (persObj->m_nMatchedTracks);
22 
23  transObj->setTauCluster (nullptr);
24  transObj->setTrackCollection (nullptr);
25 
26  fillTransFromPStore( &m_p4PtEtaPhiMCnv, persObj->m_p4PtEtaPhiM, transObj, log );
27 
28 }
29 
30 
31 void TrigTauCnv_p2::transToPers(const TrigTau* transObj,
32  TrigTau_p2* persObj,
33  MsgStream &log)
34 {
35  log << MSG::DEBUG << "TrigTauCnv_p2::transToPers called " << endmsg;
36 
37  persObj->m_roiID = transObj->roiId();
38  persObj->m_Zvtx = transObj->Zvtx();
39  persObj->m_err_Zvtx = transObj->err_Zvtx();
40  persObj->m_etCalibCluster = transObj->etCalibCluster();
41  persObj->m_simpleEtFlow = transObj->simpleEtFlow();
42  persObj->m_nMatchedTracks = transObj->nMatchedTracks();
43 
44  persObj->m_p4PtEtaPhiM = baseToPersistent( &m_p4PtEtaPhiMCnv, transObj, log );
45 }
TrigTau::setTauCluster
void setTauCluster(const TrigTauCluster *tauCluster)
Definition: TrigTau.cxx:97
TrigTau_p2::m_simpleEtFlow
float m_simpleEtFlow
Definition: TrigTau_p2.h:50
TrigTau::setSimpleEtFlow
void setSimpleEtFlow(float etFlow)
Definition: TrigTau.cxx:95
TrigTau_p2::m_roiID
int m_roiID
Definition: TrigTau_p2.h:46
TrigTau_p2.h
TrigTau::setRoiId
void setRoiId(int roiId)
set methods
Definition: TrigTau.cxx:91
TrigTau_p2::m_Zvtx
float m_Zvtx
Definition: TrigTau_p2.h:47
TrigTau::setEtCalibCluster
void setEtCalibCluster(float etCalibCluster)
Definition: TrigTau.cxx:94
TrigTau_p2::m_nMatchedTracks
int m_nMatchedTracks
Definition: TrigTau_p2.h:51
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
TrigTau::err_Zvtx
float err_Zvtx() const
Definition: TrigTau.cxx:75
TrigTau_p2
Definition: TrigTau_p2.h:25
TrigTauCnv_p2::m_p4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 * m_p4PtEtaPhiMCnv
Definition: TrigTauCnv_p2.h:45
TrigTauCnv_p2.h
TrigTauCnv_p2::transToPers
virtual void transToPers(const TrigTau *transObj, TrigTau_p2 *persObj, MsgStream &log)
Definition: TrigTauCnv_p2.cxx:31
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTauCnv_p2::persToTrans
virtual void persToTrans(const TrigTau_p2 *persObj, TrigTau *transObj, MsgStream &log)
Definition: TrigTauCnv_p2.cxx:10
TrigTau::nMatchedTracks
int nMatchedTracks() const
Definition: TrigTau.cxx:81
TrigTau::setTrackCollection
void setTrackCollection(const TrigInDetTrackCollection *trackColl)
Definition: TrigTau.cxx:98
TrigTau::roiId
int roiId() const
accessor methods
Definition: TrigTau.cxx:71
TrigTau::simpleEtFlow
float simpleEtFlow() const
Definition: TrigTau.cxx:79
TrigTau::setErr_Zvtx
void setErr_Zvtx(float err_zvtx)
Definition: TrigTau.cxx:93
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
TrigTau_p2::m_err_Zvtx
float m_err_Zvtx
Definition: TrigTau_p2.h:48
TrigTau_p2::m_etCalibCluster
float m_etCalibCluster
Definition: TrigTau_p2.h:49
TrigTau::setNMatchedTracks
void setNMatchedTracks(int nmatchedTracks)
Definition: TrigTau.cxx:96
TrigTau::Zvtx
float Zvtx() const
Definition: TrigTau.cxx:73
TrigTau.h
TrigTau::setZvtx
void setZvtx(float zvtx)
Definition: TrigTau.cxx:92
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TrigTau
File: TrigTau.h.
Definition: TrigTau.h:37
TrigTau::etCalibCluster
float etCalibCluster() const
Definition: TrigTau.cxx:77
TrigTau_p2::m_p4PtEtaPhiM
TPObjRef m_p4PtEtaPhiM
Definition: TrigTau_p2.h:54