ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArTPCnv
src
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
5
#include "
LArRawEvent/LArRawChannel.h
"
6
#include "
LArTPCnv/LArRawChannel_p2.h
"
7
#include "
LArRawEvent/LArRawChannelContainer.h
"
8
9
10
// LArRawChannelContainerCnv_p4, used for T/P separation with new LArRawChannel_p2
11
// author G.Unal
12
13
#include "
LArTPCnv/LArRawChannelContainerCnv_p4.h
"
14
15
void
LArRawChannelContainerCnv_p4::transToPers
(
const
LArRawChannelContainer
* transCont,
LArRawChannelContainer_p4
* persCont, MsgStream &log)
const
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
26
void
LArRawChannelContainerCnv_p4::persToTrans
(
const
LArRawChannelContainer_p4
* persCont,
LArRawChannelContainer
* transCont, MsgStream &log)
const
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
LArRawChannelContainerCnv_p4.h
LArRawChannelContainer.h
LArRawChannel.h
LArRawChannel_p2.h
LArRawChannelContainerCnv_p4::m_larRawChannelCnv_p2
LArRawChannelCnv_p2 m_larRawChannelCnv_p2
Definition
LArRawChannelContainerCnv_p4.h:31
LArRawChannelContainerCnv_p4::persToTrans
virtual void persToTrans(const LArRawChannelContainer_p4 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Definition
LArRawChannelContainerCnv_p4.cxx:26
LArRawChannelContainerCnv_p4::transToPers
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p4 *persColl, MsgStream &log) const override
Definition
LArRawChannelContainerCnv_p4.cxx:15
LArRawChannelContainer_p4
Persistent LArRawChannelContainer, version p3.
Definition
LArRawChannelContainer_p4.h:20
LArRawChannelContainer_p4::m_channels
std::vector< LArRawChannel_p2 > m_channels
Definition
LArRawChannelContainer_p4.h:29
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition
LArRawChannelContainer.h:26
Generated on
for ATLAS Offline Software by
1.14.0