ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArTPCnv
src
LArRawChannelContainerCnv_p1.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/LArRawChannelContainer.h
"
6
7
// LArRawChannelContainerCnv_p1, used for T/P separation
8
// author R.Seuster <seuster@cern.ch>
9
10
//#include "LArTPCnv/LArRawChannelCollectionCnv_p1.h"
11
#include "
LArTPCnv/LArRawChannelContainerCnv_p1.h
"
12
13
void
LArRawChannelContainerCnv_p1::transToPers
(
const
LArRawChannelContainer
*,
LArRawChannelContainer_p1
*, MsgStream &log)
const
14
{
15
//LArRawChannelContainer_Cnvp1_base_t::transToPers(trans,pers,log);
16
log << MSG::ERROR <<
" *** Writing LArRawChannelContainer_p1 not supported any more. Current version is LArRawChannelContainer_p3"
<<
endmsg
;
17
}
18
19
void
LArRawChannelContainerCnv_p1::persToTrans
(
const
LArRawChannelContainer_p1
* pers,
LArRawChannelContainer
* trans, MsgStream &log)
const
20
{
21
//LArRawChannelContainer_Cnvp1_base_t::persToTrans(pers,trans,log);
22
std::size_t
index
=0;
23
for
(
const
LArRawChannelCollection_p1
& coll : *pers) {
24
trans->resize(trans->size()+coll.size());
25
for
(
const
LArRawChannel_p1
&
rc
: coll) {
26
// virtual void persToTrans(const LArRawChannel_p1* pers, LArRawChannel* trans, MsgStream &log) ;
27
m_larRawChannelCnv_p1
.persToTrans(&
rc
,&trans->at(
index
),log);
28
++
index
;
29
}
30
}
31
log << MSG::DEBUG <<
" *** Reading LArRawChannelContainer"
<<
endmsg
;
32
}
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
rc
static Double_t rc
Definition
LArPhysWaveHECTool.cxx:37
LArRawChannelContainerCnv_p1.h
LArRawChannelContainer.h
LArRawChannelCollection_p1
Persistent LArRawChannelCollection, version p1.
Definition
LArRawChannelCollection_p1.h:18
LArRawChannelContainerCnv_p1::transToPers
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p1 *persColl, MsgStream &log) const override
Definition
LArRawChannelContainerCnv_p1.cxx:13
LArRawChannelContainerCnv_p1::m_larRawChannelCnv_p1
LArRawChannelCnv_p1 m_larRawChannelCnv_p1
Definition
LArRawChannelContainerCnv_p1.h:36
LArRawChannelContainerCnv_p1::persToTrans
virtual void persToTrans(const LArRawChannelContainer_p1 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Definition
LArRawChannelContainerCnv_p1.cxx:19
LArRawChannelContainer_p1
Persistent LArRawChannelContainer, version p1.
Definition
LArRawChannelContainer_p1.h:18
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection).
Definition
LArRawChannelContainer.h:26
LArRawChannel_p1
persistent class for LArRawChannel, version p1.
Definition
LArRawChannel_p1.h:14
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0