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