ATLAS Offline Software
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 
6 
7 // LArRawChannelContainerCnv_p1, used for T/P separation
8 // author R.Seuster <seuster@cern.ch>
9 
10 //#include "LArTPCnv/LArRawChannelCollectionCnv_p1.h"
12 
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 
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 }
LArRawChannelContainerCnv_p1::persToTrans
virtual void persToTrans(const LArRawChannelContainer_p1 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p1.cxx:19
LArRawChannelCollection_p1
Persistent LArRawChannelCollection, version p1.
Definition: LArRawChannelCollection_p1.h:18
LArRawChannelContainer_p1
Persistent LArRawChannelContainer, version p1.
Definition: LArRawChannelContainer_p1.h:18
index
Definition: index.py:1
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArRawChannelCnv_p1::persToTrans
virtual void persToTrans(const LArRawChannel_p1 *pers, LArRawChannel *trans, MsgStream &log) const override
Definition: LArRawChannelCnv_p1.cxx:17
LArRawChannelContainerCnv_p1::m_larRawChannelCnv_p1
LArRawChannelCnv_p1 m_larRawChannelCnv_p1
Definition: LArRawChannelContainerCnv_p1.h:36
LArRawChannelContainerCnv_p1.h
LArRawChannelContainerCnv_p1::transToPers
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p1 *persColl, MsgStream &log) const override
Definition: LArRawChannelContainerCnv_p1.cxx:13
DeMoScan.index
string index
Definition: DeMoScan.py:364
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArRawChannel_p1
persistent class for LArRawChannel, version p1.
Definition: LArRawChannel_p1.h:14
LArRawChannelContainer.h
LArRawChannelContainer
Container for LArRawChannel (IDC using LArRawChannelCollection)
Definition: LArRawChannelContainer.h:26