ATLAS Offline Software
RpcByteStreamErrorContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
9 
10 static const RpcByteStreamErrorContainerCnv_p1 TPconverter_p1;
11 
13  using namespace Muon;
14  MsgStream log(msgSvc(), "RpcByteStreamErrorContainer converter");
15  RpcByteStreamErrorContainer_PERS *persObj = TPconverter_p1.createPersistentConst( transObj, log );
16  return persObj;
17 }
18 
20  using namespace Muon;
21  static const pool::Guid p1_guid("4E46BDDC-E1F9-420A-A11F-47EF082A3E3A");
22  if( compareClassGuid(p1_guid) ) {
23  std::unique_ptr< RpcByteStreamErrorContainer_p1 > col_vect( poolReadObject< RpcByteStreamErrorContainer_p1 >() );
24  MsgStream log(msgSvc(), "RpcByteStreamErrorContainer_p1" );
25  return TPconverter_p1.createTransientConst( col_vect.get(), log );
26  }
27  throw std::runtime_error("Unsupported persistent version of RpcByteStreamErrorContainer");
28 }
RpcByteStreamErrorContainer_p1.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
RpcByteStreamErrorContainerCnv::createPersistent
virtual RpcByteStreamErrorContainer_PERS * createPersistent(Muon::RpcByteStreamErrorContainer *transObj)
Definition: RpcByteStreamErrorContainerCnv.cxx:12
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
Muon::RpcByteStreamErrorContainer
Definition: RpcByteStreamErrorContainer.h:54
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
RpcByteStreamErrorContainerCnv::createTransient
virtual Muon::RpcByteStreamErrorContainer * createTransient()
Definition: RpcByteStreamErrorContainerCnv.cxx:19
RpcByteStreamErrorContainerCnv_p1.h
RpcByteStreamErrorContainer.h
RpcByteStreamErrorContainerCnv.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
Muon::RpcByteStreamErrorContainer_p1
Definition: RpcByteStreamErrorContainer_p1.h:15
RpcByteStreamErrorContainerCnv_p1
Definition: RpcByteStreamErrorContainerCnv_p1.h:21
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const