ATLAS Offline Software
LArRawChannelContainerCnv_p3.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 
10 // LArRawChannelContainerCnv_p3, used for T/P separation
11 // author Walter Lampl
12 
14 
16 {
17  std::size_t nChannels=transCont->size();
18  persCont->m_channels.resize(nChannels);
19  for (std::size_t i=0;i<nChannels;++i)
20  m_larRawChannelCnv_p1.transToPers(&(transCont->at(i)),&(persCont->m_channels[i]),log);
21 
22  log << MSG::DEBUG << " *** Writing LArRawChannelContainer_p3" << endmsg;
23 }
24 
26 {
27  std::size_t nChannels=persCont->m_channels.size();
28  transCont->resize(nChannels);
29  for (std::size_t i=0;i<nChannels;++i)
30  m_larRawChannelCnv_p1.persToTrans(&(persCont->m_channels[i]),&(transCont->at(i)),log);
31 
32  log << MSG::DEBUG << " *** Reading LArRawChannelContainer" << endmsg;
33 }
34 
RPDUtils::nChannels
unsigned constexpr int nChannels
Definition: RPDUtils.h:23
LArRawChannelContainerCnv_p3::persToTrans
virtual void persToTrans(const LArRawChannelContainer_p3 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p3.cxx:25
LArRawChannelContainerCnv_p3::transToPers
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p3 *persColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p3.cxx:15
LArRawChannel_p1.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArRawChannelCnv_p1::persToTrans
virtual void persToTrans(const LArRawChannel_p1 *pers, LArRawChannel *trans, MsgStream &log) const override
Definition: LArRawChannelCnv_p1.cxx:17
LArRawChannel.h
LArRawChannelContainerCnv_p3.h
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArRawChannelContainer_p3
Persistent LArRawChannelContainer, version p3.
Definition: LArRawChannelContainer_p3.h:20
LArRawChannelContainerCnv_p3::m_larRawChannelCnv_p1
LArRawChannelCnv_p1 m_larRawChannelCnv_p1
Definition: LArRawChannelContainerCnv_p3.h:30
LArRawChannelCnv_p1::transToPers
virtual void transToPers(const LArRawChannel *trans, LArRawChannel_p1 *pers, MsgStream &log) const override
Definition: LArRawChannelCnv_p1.cxx:12
LArRawChannelContainer.h
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition: LArRawChannelContainer.h:26
LArRawChannelContainer_p3::m_channels
std::vector< LArRawChannel_p1 > m_channels
Definition: LArRawChannelContainer_p3.h:29