ATLAS Offline Software
TrigTauCnv_p3.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_p3::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  transObj->setTrkAvgDist (persObj->m_trkAvgDist);
23  transObj->setEtOverPtLeadTrk(persObj->m_etOverPtLeadTrk);
24 
25  transObj->setTauCluster (nullptr);
26  transObj->setTrackCollection (nullptr);
27  transObj->setTracksInfo (nullptr);
28 
29  //fillTransFromPStore( &m_p4PtEtaPhiMCnv, persObj->m_p4PtEtaPhiM, transObj, log );
30  m_p4PtEtaPhiMCnv.persToTrans(&(persObj->m_p4PtEtaPhiM), transObj, log);
31 
32 }
33 
34 
35 void TrigTauCnv_p3::transToPers(const TrigTau* transObj,
36  TrigTau_p3* persObj,
37  MsgStream &log)
38 {
39  log << MSG::DEBUG << "TrigTauCnv_p3::transToPers called " << endmsg;
40 
41  persObj->m_roiID = transObj->roiId();
42  persObj->m_Zvtx = transObj->Zvtx();
43  persObj->m_err_Zvtx = transObj->err_Zvtx();
44  persObj->m_etCalibCluster = transObj->etCalibCluster();
45  persObj->m_simpleEtFlow = transObj->simpleEtFlow();
46  persObj->m_nMatchedTracks = transObj->nMatchedTracks();
47  persObj->m_trkAvgDist = transObj->trkAvgDist();
48  persObj->m_etOverPtLeadTrk = transObj->etOverPtLeadTrk();
49 
50 
51  //persObj->m_p4PtEtaPhiM = baseToPersistent( &m_p4PtEtaPhiMCnv, transObj, log );
52  m_p4PtEtaPhiMCnv.transToPers(transObj, &(persObj->m_p4PtEtaPhiM), log);
53 }
TrigTau::setTauCluster
void setTauCluster(const TrigTauCluster *tauCluster)
Definition: TrigTau.cxx:97
TrigTauCnv_p3::m_p4PtEtaPhiMCnv
P4PtEtaPhiMCnv_p1 m_p4PtEtaPhiMCnv
Definition: TrigTauCnv_p3.h:43
TrigTauCnv_p3::persToTrans
virtual void persToTrans(const TrigTau_p3 *persObj, TrigTau *transObj, MsgStream &log)
Definition: TrigTauCnv_p3.cxx:10
TrigTau::setSimpleEtFlow
void setSimpleEtFlow(float etFlow)
Definition: TrigTau.cxx:95
TrigTau_p3::m_trkAvgDist
float m_trkAvgDist
Definition: TrigTau_p3.h:67
TrigTau_p3::m_roiID
int m_roiID
Definition: TrigTau_p3.h:61
TrigTauCnv_p3.h
TrigTau::trkAvgDist
float trkAvgDist() const
Definition: TrigTau.cxx:82
TrigTau::setRoiId
void setRoiId(int roiId)
set methods
Definition: TrigTau.cxx:91
TrigTau_p3::m_simpleEtFlow
float m_simpleEtFlow
Definition: TrigTau_p3.h:65
TrigTau_p3
Definition: TrigTau_p3.h:26
TrigTauCnv_p3::transToPers
virtual void transToPers(const TrigTau *transObj, TrigTau_p3 *persObj, MsgStream &log)
Definition: TrigTauCnv_p3.cxx:35
TrigTau::setEtCalibCluster
void setEtCalibCluster(float etCalibCluster)
Definition: TrigTau.cxx:94
TrigTau::err_Zvtx
float err_Zvtx() const
Definition: TrigTau.cxx:75
TrigTau_p3.h
TrigTau_p3::m_p4PtEtaPhiM
P4PtEtaPhiM_p1 m_p4PtEtaPhiM
Definition: TrigTau_p3.h:71
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigTau::nMatchedTracks
int nMatchedTracks() const
Definition: TrigTau.cxx:81
TrigTau::setTrackCollection
void setTrackCollection(const TrigInDetTrackCollection *trackColl)
Definition: TrigTau.cxx:98
TrigTau::setEtOverPtLeadTrk
void setEtOverPtLeadTrk(float etOverPtLeadTrk)
Definition: TrigTau.cxx:103
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
TrigTau::setTrkAvgDist
void setTrkAvgDist(float trkAvgDist)
Definition: TrigTau.cxx:102
P4PtEtaPhiMCnv_p1::persToTrans
virtual void persToTrans(const P4PtEtaPhiM_p1 *persObj, P4PtEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4PtEtaPhiM from its persistent representation P4PtEt...
Definition: P4PtEtaPhiMCnv_p1.cxx:26
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
P4PtEtaPhiMCnv_p1::transToPers
virtual void transToPers(const P4PtEtaPhiM *transObj, P4PtEtaPhiM_p1 *persObj, MsgStream &log) const override
Method creating the persistent representation P4PtEtaPhiM_p1 from its transient representation P4PtEt...
Definition: P4PtEtaPhiMCnv_p1.cxx:38
TrigTau_p3::m_nMatchedTracks
int m_nMatchedTracks
Definition: TrigTau_p3.h:66
TrigTau::etOverPtLeadTrk
float etOverPtLeadTrk() const
Definition: TrigTau.cxx:83
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_p3::m_etCalibCluster
float m_etCalibCluster
Definition: TrigTau_p3.h:64
TrigTau::setTracksInfo
void setTracksInfo(const TrigTauTracksInfo *trackInfo)
Definition: TrigTau.cxx:100
TrigTau_p3::m_err_Zvtx
float m_err_Zvtx
Definition: TrigTau_p3.h:63
TrigTau::etCalibCluster
float etCalibCluster() const
Definition: TrigTau.cxx:77
TrigTau_p3::m_Zvtx
float m_Zvtx
Definition: TrigTau_p3.h:62
TrigTau_p3::m_etOverPtLeadTrk
float m_etOverPtLeadTrk
Definition: TrigTau_p3.h:68