ATLAS Offline Software
LArHitFloatContainerCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 void LArHitFloatContainerCnv_p1::transToPers(const LArHitFloatContainer* /*transCont*/, LArHitContainer_p1* /*persCont*/, MsgStream &log)
9 {
10  log << MSG::ERROR << "Writing LArHitContainer_p1 not supported any more. Current version is LArHitChannelContainer_p2" << endmsg;
11 }
12 
14 {
15  log << MSG::DEBUG << " reading LArHitContaner_p1 " << endmsg;
16  std::size_t nChannels = persCont->m_cont.size();
17  transCont->resize(nChannels);
18  for (std::size_t i=0;i<nChannels;i++)
19  m_LArHitFloatCnv_p1.persToTrans(&(persCont->m_cont[i]),&(transCont->at(i)),log);
20 
21 }
RPDUtils::nChannels
unsigned constexpr int nChannels
Definition: RPDUtils.h:23
LArHitFloatContainer
Container for LArHitFloat.
Definition: LArHitFloatContainer.h:18
LArHitFloatContainerCnv_p1.h
LArHitContainer_p1::m_cont
std::vector< LArHit_p1 > m_cont
Definition: LArHitContainer_p1.h:37
LArHitFloatContainer.h
LArHitFloatContainerCnv_p1::m_LArHitFloatCnv_p1
LArHitFloatCnv_p1 m_LArHitFloatCnv_p1
Definition: LArHitFloatContainerCnv_p1.h:22
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArHitFloatCnv_p1::persToTrans
virtual void persToTrans(const LArHit_p1 *persObj, LArHitFloat *transObj, MsgStream &log)
Definition: LArHitFloatCnv_p1.cxx:12
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArHitContainer_p1
Persistent represenation of a LArHitContainer,.
Definition: LArHitContainer_p1.h:22
LArHitFloatContainerCnv_p1::persToTrans
virtual void persToTrans(const LArHitContainer_p1 *persColl, LArHitFloatContainer *transColl, MsgStream &log)
Definition: LArHitFloatContainerCnv_p1.cxx:13
LArHitFloatContainerCnv_p1::transToPers
virtual void transToPers(const LArHitFloatContainer *transColl, LArHitContainer_p1 *persColl, MsgStream &log)
Definition: LArHitFloatContainerCnv_p1.cxx:8
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20