ATLAS Offline Software
NSW_TrigRawDataSegmentCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3  */
4 
6 
7 namespace Muon {
9  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Creating transient NSW_TrigRawDataSegment from persistent NSW_TrigRawDataSegment_p1" << endmsg;
10  auto transObj = std::make_unique<NSW_TrigRawDataSegment>(persObj->m_deltaTheta, persObj->m_phiIndex, persObj->m_rIndex, persObj->m_spare,
11  persObj->m_lowRes, persObj->m_phiRes, persObj->m_monitor);
12  for (const auto &ch : persObj->m_channels) transObj->addChannel(ch.first, ch.second);
13  return (transObj.release());
14  }
15 
17  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting persistent NSW_TrigRawDataSegment_p1 to transient NSW_TrigRawDataSegment" << endmsg;
18  transObj->m_deltaTheta = persObj->m_deltaTheta;
19  transObj->m_phiIndex = persObj->m_phiIndex;
20  transObj->m_rIndex = persObj->m_rIndex;
21  transObj->m_spare = persObj->m_spare;
22  transObj->m_lowRes = persObj->m_lowRes;
23  transObj->m_phiRes = persObj->m_phiRes;
24  transObj->m_monitor = persObj->m_monitor;
25  transObj->m_channels = persObj->m_channels;
26  for (const auto &ch : persObj->m_channels) transObj->addChannel(ch.first, ch.second);
27  }
28 
30  {
31  if (log.level() <= MSG::DEBUG) log << MSG::DEBUG << "Converting transient NSW_TrigRawDataSegment to persistent NSW_TrigRawDataSegment_p1" << endmsg;
32  persObj->m_deltaTheta = transObj->m_deltaTheta;
33  persObj->m_phiIndex = transObj->m_phiIndex;
34  persObj->m_rIndex = transObj->m_rIndex;
35  persObj->m_spare = transObj->m_spare;
36  persObj->m_lowRes = transObj->m_lowRes;
37  persObj->m_phiRes = transObj->m_phiRes;
38  persObj->m_monitor = transObj->m_monitor;
39  persObj->m_channels = transObj->m_channels;
40  for (const auto &ch : transObj->m_channels) persObj->addChannel(ch.first, ch.second);
41  }
42 }
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
NSW_TrigRawDataSegmentCnv_p1.h
Muon::NSW_TrigRawDataSegment::addChannel
void addChannel(uint8_t layer, uint16_t channel)
Definition: NSW_TrigRawDataSegment.h:45
Muon::NSW_TrigRawDataSegment::m_rIndex
uint8_t m_rIndex
Definition: NSW_TrigRawDataSegment.h:51
Muon::NSW_TrigRawDataSegment::m_monitor
bool m_monitor
Definition: NSW_TrigRawDataSegment.h:57
Muon::NSW_TrigRawDataSegment::m_deltaTheta
uint8_t m_deltaTheta
Definition: NSW_TrigRawDataSegment.h:49
Muon::NSW_TrigRawDataSegment_p1
Definition: NSW_TrigRawDataSegment_p1.h:12
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::NSW_TrigRawDataSegmentCnv_p1::transToPers
virtual void transToPers(const NSW_TrigRawDataSegment *transObj, NSW_TrigRawDataSegment_p1 *persObj, MsgStream &log) override final
Definition: NSW_TrigRawDataSegmentCnv_p1.cxx:29
Muon::NSW_TrigRawDataSegment::m_lowRes
bool m_lowRes
Definition: NSW_TrigRawDataSegment.h:55
Muon::NSW_TrigRawDataSegment::m_phiIndex
uint8_t m_phiIndex
Definition: NSW_TrigRawDataSegment.h:50
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Muon::NSW_TrigRawDataSegment_p1::m_lowRes
bool m_lowRes
Definition: NSW_TrigRawDataSegment_p1.h:22
Muon::NSW_TrigRawDataSegment::m_spare
uint8_t m_spare
Definition: NSW_TrigRawDataSegment.h:53
Muon::NSW_TrigRawDataSegment_p1::addChannel
void addChannel(uint8_t layer, uint16_t channel)
Definition: NSW_TrigRawDataSegment_p1.h:16
Muon::NSW_TrigRawDataSegment
Definition: NSW_TrigRawDataSegment.h:15
Muon::NSW_TrigRawDataSegment_p1::m_deltaTheta
uint8_t m_deltaTheta
Definition: NSW_TrigRawDataSegment_p1.h:18
Muon::NSW_TrigRawDataSegment_p1::m_phiRes
bool m_phiRes
Definition: NSW_TrigRawDataSegment_p1.h:23
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::NSW_TrigRawDataSegment_p1::m_rIndex
uint8_t m_rIndex
Definition: NSW_TrigRawDataSegment_p1.h:20
Muon::NSW_TrigRawDataSegmentCnv_p1::persToTrans
virtual void persToTrans(const NSW_TrigRawDataSegment_p1 *persObj, NSW_TrigRawDataSegment *transObj, MsgStream &log) override final
Definition: NSW_TrigRawDataSegmentCnv_p1.cxx:16
Muon::NSW_TrigRawDataSegment_p1::m_channels
std::vector< std::pair< uint8_t, uint16_t > > m_channels
Definition: NSW_TrigRawDataSegment_p1.h:25
Muon::NSW_TrigRawDataSegmentCnv_p1::createTransient
virtual NSW_TrigRawDataSegment * createTransient(const NSW_TrigRawDataSegment_p1 *persObj, MsgStream &log) override final
Definition: NSW_TrigRawDataSegmentCnv_p1.cxx:8
Muon::NSW_TrigRawDataSegment_p1::m_monitor
bool m_monitor
Definition: NSW_TrigRawDataSegment_p1.h:24
Muon::NSW_TrigRawDataSegment::m_phiRes
bool m_phiRes
Definition: NSW_TrigRawDataSegment.h:56
Muon::NSW_TrigRawDataSegment_p1::m_phiIndex
uint8_t m_phiIndex
Definition: NSW_TrigRawDataSegment_p1.h:19
Muon::NSW_TrigRawDataSegment_p1::m_spare
uint8_t m_spare
Definition: NSW_TrigRawDataSegment_p1.h:21
Muon::NSW_TrigRawDataSegment::m_channels
std::vector< std::pair< uint8_t, uint16_t > > m_channels
vector of trigger channels, defined as layer / channel
Definition: NSW_TrigRawDataSegment.h:60