ATLAS Offline Software
LArRawChannelContainerCnv_p4.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_p4, used for T/P separation with new LArRawChannel_p2
11 // author G.Unal
12 
14 
16 {
17 // std::cout << " *** Write LArRawChannelContainer_p4 " << std::endl;
18  std::size_t nChannels=transCont->size();
19  persCont->m_channels.resize(nChannels);
20  for (std::size_t i=0;i<nChannels;++i)
21  m_larRawChannelCnv_p2.transToPers(&(transCont->at(i)),&(persCont->m_channels[i]),log);
22 
23  log << MSG::DEBUG << " *** Writing LArRawChannelContainer_p4" << endmsg;
24 }
25 
27 {
28 // std::cout << " *** Read LArRawChannelContainer_p4 " << std::endl;
29  std::size_t nChannels=persCont->m_channels.size();
30  transCont->resize(nChannels);
31  for (std::size_t i=0;i<nChannels;++i)
32  m_larRawChannelCnv_p2.persToTrans(&(persCont->m_channels[i]),&(transCont->at(i)),log);
33 
34  log << MSG::DEBUG << " *** Reading LArRawChannelContainer" << endmsg;
35 }
36 
LArRawChannelContainerCnv_p4::transToPers
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p4 *persColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p4.cxx:15
LArRawChannel_p2.h
LArRawChannelCnv_p2::transToPers
virtual void transToPers(const LArRawChannel *trans, LArRawChannel_p2 *pers, MsgStream &log) const override
Definition: LArRawChannelCnv_p2.cxx:12
lumiFormat.i
int i
Definition: lumiFormat.py:92
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArRawChannelContainerCnv_p4::persToTrans
virtual void persToTrans(const LArRawChannelContainer_p4 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p4.cxx:26
LArRawChannelContainer_p4
Persistent LArRawChannelContainer, version p3.
Definition: LArRawChannelContainer_p4.h:20
LArRawChannel.h
LArRawChannelContainer_p4::m_channels
std::vector< LArRawChannel_p2 > m_channels
Definition: LArRawChannelContainer_p4.h:29
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArRawChannelCnv_p2::persToTrans
virtual void persToTrans(const LArRawChannel_p2 *pers, LArRawChannel *trans, MsgStream &log) const override
Definition: LArRawChannelCnv_p2.cxx:32
LArRawChannelContainerCnv_p4.h
LArRawChannelContainer.h
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition: LArRawChannelContainer.h:26
LArRawChannelContainerCnv_p4::m_larRawChannelCnv_p2
LArRawChannelCnv_p2 m_larRawChannelCnv_p2
Definition: LArRawChannelContainerCnv_p4.h:31