ATLAS Offline Software
Loading...
Searching...
No Matches
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}
#define endmsg
static Double_t rc
Persistent LArRawChannelCollection, version p1.
virtual void transToPers(const LArRawChannelContainer *transColl, LArRawChannelContainer_p1 *persColl, MsgStream &log) const override
virtual void persToTrans(const LArRawChannelContainer_p1 *persColl, LArRawChannelContainer *transColl, MsgStream &log) const override
Persistent LArRawChannelContainer, version p1.
Container for LArRawChannel (IDC using LArRawChannelCollection)
persistent class for LArRawChannel, version p1.
Definition index.py:1