ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArTPCnv
src
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
5
#include "
LArRawEvent/LArRawChannel.h
"
6
#include "
LArTPCnv/LArRawChannel_p1.h
"
7
#include "
LArRawEvent/LArRawChannelContainer.h
"
8
9
10
// LArRawChannelContainerCnv_p3, used for T/P separation
11
// author Walter Lampl
12
13
#include "
LArTPCnv/LArRawChannelContainerCnv_p3.h
"
14
15
void
LArRawChannelContainerCnv_p3::transToPers
(
const
LArRawChannelContainer
* transCont,
LArRawChannelContainer_p3
* persCont, MsgStream &log)
const
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
25
void
LArRawChannelContainerCnv_p3::persToTrans
(
const
LArRawChannelContainer_p3
* persCont,
LArRawChannelContainer
* transCont, MsgStream &log)
const
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:63
LArRawChannelContainerCnv_p3.h
LArRawChannelContainer.h
LArRawChannel.h
LArRawChannel_p1.h
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
LArRawChannelContainerCnv_p3::m_larRawChannelCnv_p1
LArRawChannelCnv_p1 m_larRawChannelCnv_p1
Definition
LArRawChannelContainerCnv_p3.h:30
LArRawChannelContainer_p3
Persistent LArRawChannelContainer, version p3.
Definition
LArRawChannelContainer_p3.h:20
LArRawChannelContainer_p3::m_channels
std::vector< LArRawChannel_p1 > m_channels
Definition
LArRawChannelContainer_p3.h:29
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition
LArRawChannelContainer.h:26
Generated on
for ATLAS Offline Software by
1.14.0