ATLAS Offline Software
MuCTPIL1TopoCandidateCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 // Gaudi/Athena include(s):
7 #include "GaudiKernel/MsgStream.h"
8 
9 // Local include(s):
11 
17  MsgStream& log ) {
18 
19  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting MuCTPIL1TopoCandidate from persistent state..." << endmsg;
20 
21  transObj->setCandidateData(persObj->m_sectorName,
22  persObj->m_roiID,
23  persObj->m_bcid,
24  persObj->m_ptThresholdID,
25  persObj->m_ptL1TopoCode,
26  persObj->m_ptValue,
27  persObj->m_eta,
28  persObj->m_phi,
29  persObj->m_etacode,
30  persObj->m_phicode,
31  persObj->m_etamin,
32  persObj->m_etamax,
33  persObj->m_phimin,
34  persObj->m_phimax,
35  persObj->m_mioctID,
36  persObj->m_ieta,
37  persObj->m_iphi);
38 
39  transObj->setTGCFlags(persObj->m_bw2or3,
40  persObj->m_innerCoin,
41  persObj->m_goodMF,
42  persObj->m_charge);
43 
44  transObj->setRPCFlags(persObj->m_is2cand,
45  persObj->m_phiOvl);
46 
47  transObj->setRoiWord(persObj->m_roiWord);
48 
49 
50  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting MuCTPIL1TopoCandidate from persistent state [OK]" << endmsg;
51 
52  return;
53 }
54 
60  MsgStream& log ) {
61 
62  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of MuCTPIL1TopoCandidate..." << endmsg;
63 
64  persObj->m_sectorName = transObj->getSectorName();
65  persObj->m_roiID = transObj->getRoiID();
66  persObj->m_bcid = transObj->getbcid();
67  persObj->m_ptThresholdID = transObj->getptThresholdID();
68  persObj->m_ptL1TopoCode = transObj->getptL1TopoCode();
69  persObj->m_ptValue = transObj->getptValue();
70  persObj->m_eta = transObj->geteta();
71  persObj->m_phi = transObj->getphi();
72  persObj->m_etacode = transObj->getetacode();
73  persObj->m_phicode = transObj->getphicode();
74  persObj->m_etamin = transObj->getetamin();
75  persObj->m_etamax = transObj->getetamax();
76  persObj->m_phimin = transObj->getphimin();
77  persObj->m_phimax = transObj->getphimax();
78  persObj->m_roiWord = transObj->getRoiWord();
79  persObj->m_mioctID = transObj->getMioctID();
80  persObj->m_ieta = transObj->getieta();
81  persObj->m_iphi = transObj->getiphi();
82  persObj->m_phiOvl = transObj->getphiOvl();
83  persObj->m_is2cand = transObj->getis2cand();
84  persObj->m_charge = transObj->getcharge();
85  persObj->m_bw2or3 = transObj->getbw2or3();
86  persObj->m_innerCoin = transObj->getinnerCoin();
87  persObj->m_goodMF = transObj->getgoodMF();
88 
89  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating persistent state of MuCTPIL1TopoCandidate [OK]" << endmsg;
90 
91  return;
92 }
LVL1::MuCTPIL1TopoCandidate::getphicode
unsigned int getphicode() const
Definition: MuCTPIL1TopoCandidate.h:77
MuCTPIL1TopoCandidate_p1::m_phimax
float m_phimax
Definition: MuCTPIL1TopoCandidate_p1.h:34
LVL1::MuCTPIL1TopoCandidate::getphimax
float getphimax() const
Definition: MuCTPIL1TopoCandidate.h:81
LVL1::MuCTPIL1TopoCandidate::getcharge
int getcharge() const
Definition: MuCTPIL1TopoCandidate.h:88
LVL1::MuCTPIL1TopoCandidate::getptValue
unsigned int getptValue() const
Definition: MuCTPIL1TopoCandidate.h:73
LVL1::MuCTPIL1TopoCandidate::getRoiID
unsigned int getRoiID() const
Definition: MuCTPIL1TopoCandidate.h:69
LVL1::MuCTPIL1TopoCandidate::setRPCFlags
void setRPCFlags(bool is2cand, bool phiOvl)
Definition: MuCTPIL1TopoCandidate.cxx:61
LVL1::MuCTPIL1TopoCandidate::getis2cand
int getis2cand() const
Definition: MuCTPIL1TopoCandidate.h:87
LVL1::MuCTPIL1TopoCandidate::setCandidateData
void setCandidateData(const std::string &sectorName, unsigned int roiID, unsigned int bcid, unsigned int ptThresholdID, unsigned int ptL1TopoCode, unsigned int ptValue, float eta, float phi, unsigned int etacode, unsigned int phicode, float etamin, float etamax, float phimin, float phimax, unsigned int mioctID, int ieta, int iphi)
Definition: MuCTPIL1TopoCandidate.cxx:17
LVL1::MuCTPIL1TopoCandidate::getRoiWord
unsigned int getRoiWord() const
Definition: MuCTPIL1TopoCandidate.h:82
MuCTPIL1TopoCandidate_p1::m_mioctID
unsigned int m_mioctID
Definition: MuCTPIL1TopoCandidate_p1.h:36
LVL1::MuCTPIL1TopoCandidate::getphiOvl
int getphiOvl() const
Definition: MuCTPIL1TopoCandidate.h:86
MuCTPIL1TopoCandidate_p1::m_bw2or3
bool m_bw2or3
Definition: MuCTPIL1TopoCandidate_p1.h:42
LVL1::MuCTPIL1TopoCandidate::geteta
float geteta() const
Definition: MuCTPIL1TopoCandidate.h:74
LVL1::MuCTPIL1TopoCandidate::getbcid
unsigned int getbcid() const
Definition: MuCTPIL1TopoCandidate.h:70
MuCTPIL1TopoCandidate_p1::m_sectorName
std::string m_sectorName
Definition: MuCTPIL1TopoCandidate_p1.h:21
MuCTPIL1TopoCandidateCnv_p1::transToPers
virtual void transToPers(const LVL1::MuCTPIL1TopoCandidate *transObj, MuCTPIL1TopoCandidate_p1 *persObj, MsgStream &log) override
Function transferring the information from a transient MuCTPIL1TopoCandidate object to a persistent M...
Definition: MuCTPIL1TopoCandidateCnv_p1.cxx:59
MuCTPIL1TopoCandidate_p1::m_roiWord
unsigned int m_roiWord
Definition: MuCTPIL1TopoCandidate_p1.h:35
LVL1::MuCTPIL1TopoCandidate::setTGCFlags
void setTGCFlags(bool bw2or3, bool innerCoin, bool goodMF, int charge)
Definition: MuCTPIL1TopoCandidate.cxx:53
MuCTPIL1TopoCandidateCnv_p1::persToTrans
virtual void persToTrans(const MuCTPIL1TopoCandidate_p1 *persObj, LVL1::MuCTPIL1TopoCandidate *transObj, MsgStream &log) override
Function transferring the information from a persistent MuCTPIL1TopoCandidate_p1 object to a transien...
Definition: MuCTPIL1TopoCandidateCnv_p1.cxx:16
MuCTPIL1TopoCandidate_p1::m_etamax
float m_etamax
Definition: MuCTPIL1TopoCandidate_p1.h:32
LVL1::MuCTPIL1TopoCandidate::getbw2or3
bool getbw2or3() const
Definition: MuCTPIL1TopoCandidate.h:89
MuCTPIL1TopoCandidate_p1::m_iphi
int m_iphi
Definition: MuCTPIL1TopoCandidate_p1.h:38
MuCTPIL1TopoCandidate_p1::m_phi
float m_phi
Definition: MuCTPIL1TopoCandidate_p1.h:28
LVL1::MuCTPIL1TopoCandidate::getinnerCoin
bool getinnerCoin() const
Definition: MuCTPIL1TopoCandidate.h:90
MuCTPIL1TopoCandidate_p1::m_is2cand
bool m_is2cand
Definition: MuCTPIL1TopoCandidate_p1.h:40
LVL1::MuCTPIL1TopoCandidate::getieta
int getieta() const
Definition: MuCTPIL1TopoCandidate.h:84
MuCTPIL1TopoCandidate_p1::m_ptL1TopoCode
unsigned int m_ptL1TopoCode
Definition: MuCTPIL1TopoCandidate_p1.h:25
LVL1::MuCTPIL1TopoCandidate::getSectorName
std::string getSectorName() const
Definition: MuCTPIL1TopoCandidate.h:68
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
MuCTPIL1TopoCandidate_p1::m_bcid
unsigned int m_bcid
Definition: MuCTPIL1TopoCandidate_p1.h:23
MuCTPIL1TopoCandidateCnv_p1.h
MuCTPIL1TopoCandidate_p1::m_roiID
unsigned int m_roiID
Definition: MuCTPIL1TopoCandidate_p1.h:22
LVL1::MuCTPIL1TopoCandidate::getetacode
unsigned int getetacode() const
Definition: MuCTPIL1TopoCandidate.h:76
LVL1::MuCTPIL1TopoCandidate::getptL1TopoCode
unsigned int getptL1TopoCode() const
Definition: MuCTPIL1TopoCandidate.h:72
LVL1::MuCTPIL1TopoCandidate::setRoiWord
void setRoiWord(unsigned int roi)
Definition: MuCTPIL1TopoCandidate.cxx:68
LVL1::MuCTPIL1TopoCandidate
MuCTPI input class to the L1Topo simulation.
Definition: MuCTPIL1TopoCandidate.h:23
MuCTPIL1TopoCandidate_p1::m_phiOvl
bool m_phiOvl
Definition: MuCTPIL1TopoCandidate_p1.h:39
MuCTPIL1TopoCandidate_p1::m_eta
float m_eta
Definition: MuCTPIL1TopoCandidate_p1.h:27
LVL1::MuCTPIL1TopoCandidate::getptThresholdID
unsigned int getptThresholdID() const
Definition: MuCTPIL1TopoCandidate.h:71
LVL1::MuCTPIL1TopoCandidate::getiphi
int getiphi() const
Definition: MuCTPIL1TopoCandidate.h:85
MuCTPIL1TopoCandidate_p1::m_ptThresholdID
unsigned int m_ptThresholdID
Definition: MuCTPIL1TopoCandidate_p1.h:24
MuCTPIL1TopoCandidate_p1::m_innerCoin
bool m_innerCoin
Definition: MuCTPIL1TopoCandidate_p1.h:43
MuCTPIL1TopoCandidate_p1::m_phimin
float m_phimin
Definition: MuCTPIL1TopoCandidate_p1.h:33
MuCTPIL1TopoCandidate_p1::m_phicode
unsigned int m_phicode
Definition: MuCTPIL1TopoCandidate_p1.h:30
MuCTPIL1TopoCandidate_p1::m_etacode
unsigned int m_etacode
Definition: MuCTPIL1TopoCandidate_p1.h:29
MuCTPIL1TopoCandidate_p1
Persistent representation of MuCTPIL1TopoCandidate.
Definition: MuCTPIL1TopoCandidate_p1.h:20
LVL1::MuCTPIL1TopoCandidate::getMioctID
unsigned int getMioctID() const
Definition: MuCTPIL1TopoCandidate.h:83
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuCTPIL1TopoCandidate_p1::m_ieta
int m_ieta
Definition: MuCTPIL1TopoCandidate_p1.h:37
LVL1::MuCTPIL1TopoCandidate::getetamin
float getetamin() const
Definition: MuCTPIL1TopoCandidate.h:78
LVL1::MuCTPIL1TopoCandidate::getphi
float getphi() const
Definition: MuCTPIL1TopoCandidate.h:75
LVL1::MuCTPIL1TopoCandidate::getgoodMF
bool getgoodMF() const
Definition: MuCTPIL1TopoCandidate.h:91
LVL1::MuCTPIL1TopoCandidate::getphimin
float getphimin() const
Definition: MuCTPIL1TopoCandidate.h:80
MuCTPIL1TopoCandidate_p1::m_goodMF
bool m_goodMF
Definition: MuCTPIL1TopoCandidate_p1.h:44
MuCTPIL1TopoCandidate_p1::m_etamin
float m_etamin
Definition: MuCTPIL1TopoCandidate_p1.h:31
MuCTPIL1TopoCandidate_p1::m_charge
int m_charge
Definition: MuCTPIL1TopoCandidate_p1.h:41
LVL1::MuCTPIL1TopoCandidate::getetamax
float getetamax() const
Definition: MuCTPIL1TopoCandidate.h:79
MuCTPIL1TopoCandidate_p1::m_ptValue
unsigned int m_ptValue
Definition: MuCTPIL1TopoCandidate_p1.h:26