ATLAS Offline Software
Loading...
Searching...
No Matches
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
#define endmsg
virtual void persToTrans(const LArRawChannelContainer_p4 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p4 *persColl, MsgStream &log) const override
Persistent LArRawChannelContainer, version p3.
std::vector< LArRawChannel_p2 > m_channels
Container for LArRawChannel (IDC using LArRawChannelCollection)