ATLAS Offline Software
NSW_PadTriggerSegmentCnv_p1.cxx
Go to the documentation of this file.
2 
3 
4 namespace Muon {
5 void NSW_PadTriggerSegmentCnv_p1::persToTrans(const NSW_PadTriggerSegment_p1* persistentObj, NSW_PadTriggerSegment* transientObj, MsgStream &log) {
6  if (log.level() <= MSG::VERBOSE) {
7  log << MSG::VERBOSE <<
8  "Converting persistent NSW_PadTriggerSegment_p1 to transient NSW_PadTriggerSegment" << endmsg;
9  }
10  transientObj->m_phiID = persistentObj->m_phiID;
11  transientObj->m_bandID = persistentObj->m_bandID;
12  transientObj->m_activeLayers[0] = persistentObj->m_innerActiveLayers;
13  transientObj->m_activeLayers[1] = persistentObj->m_outerActiveLayers;
14 }
15 
16 void NSW_PadTriggerSegmentCnv_p1::transToPers(const NSW_PadTriggerSegment* transientObj, NSW_PadTriggerSegment_p1* persistentObj, MsgStream &log) {
17  if (log.level() <= MSG::VERBOSE) {
18  log << MSG::VERBOSE <<
19  "Converting transient NSW_PadTriggerSegment to persistent NSW_PadTriggerSegment_p1" << endmsg;
20  }
21  persistentObj->m_phiID = transientObj->m_phiID;
22  persistentObj->m_bandID = transientObj->m_bandID;
23  persistentObj->m_innerActiveLayers = transientObj->m_activeLayers[0];
24  persistentObj->m_outerActiveLayers = transientObj->m_activeLayers[1];
25 }
26 
27 } // namespace Muon
NSW_PadTriggerSegmentCnv_p1.h
Muon::NSW_PadTriggerSegment::m_phiID
uint8_t m_phiID
Definition: NSW_PadTriggerSegment.h:27
Muon::NSW_PadTriggerSegment_p1::m_phiID
uint8_t m_phiID
Definition: NSW_PadTriggerSegment_p1.h:9
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::NSW_PadTriggerSegment_p1
Definition: NSW_PadTriggerSegment_p1.h:7
Muon::NSW_PadTriggerSegmentCnv_p1::transToPers
void transToPers(const NSW_PadTriggerSegment *transientObj, NSW_PadTriggerSegment_p1 *persistentObj, MsgStream &log) final
Definition: NSW_PadTriggerSegmentCnv_p1.cxx:16
Muon::NSW_PadTriggerSegment_p1::m_innerActiveLayers
uint8_t m_innerActiveLayers
Definition: NSW_PadTriggerSegment_p1.h:10
Muon::NSW_PadTriggerSegment
Definition: NSW_PadTriggerSegment.h:11
Muon::NSW_PadTriggerSegment_p1::m_bandID
uint8_t m_bandID
Definition: NSW_PadTriggerSegment_p1.h:8
Muon::NSW_PadTriggerSegmentCnv_p1::persToTrans
void persToTrans(const NSW_PadTriggerSegment_p1 *persistentObj, NSW_PadTriggerSegment *transientObj, MsgStream &log) final
Definition: NSW_PadTriggerSegmentCnv_p1.cxx:5
Muon::NSW_PadTriggerSegment::m_activeLayers
std::array< uint8_t, 2 > m_activeLayers
Definition: NSW_PadTriggerSegment.h:29
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::NSW_PadTriggerSegment_p1::m_outerActiveLayers
uint8_t m_outerActiveLayers
Definition: NSW_PadTriggerSegment_p1.h:11
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
Muon::NSW_PadTriggerSegment::m_bandID
uint8_t m_bandID
Definition: NSW_PadTriggerSegment.h:26