ATLAS Offline Software
LArOFCBinCompleteCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #include "LArOFCBinCompleteCnv.h"
12 
14  MsgStream log(msgSvc(), "LArOFCBinCompleteCnv" );
15  //log << MSG::DEBUG << "LArOFCBinComplete write" << endmsg;
16  LArOFCBinPersType* persObj = m_TPconverter.createPersistent( transObj, log );
17  //log << MSG::DEBUG << "Success" << endmsg;
18  return persObj;
19 }
20 
22  static const pool::Guid p1_guid("E7E2E993-4AF2-4782-9B8B-7668434CBAEC");
23  if( compareClassGuid(p1_guid) ) {
24  // using unique_ptr ensures deletion of the persistent object
25  std::unique_ptr<LArOFCBinPersType> col_vect( poolReadObject<LArOFCBinPersType>() );
26  MsgStream log(msgSvc(), "LArOFCBinCompleteCnv" );
27  //log << MSG::INFO << "Reading LArOFCBinSubset_p1" << endmsg;
28  return m_TPconverter.createTransient( col_vect.get(), log );
29  }
30  throw std::runtime_error("Unsupported persistent version of LArOFCBinComplete");
31 }
32 
33 
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
LArSingleIntSubset_p1
persistent class container of LArConditionsSubset for LArSingleInt data.
Definition: LArSingleIntSubset_p1.h:30
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
LArOFCBinCompleteCnv::m_TPconverter
LArOFCBinSubsetCnv_p1 m_TPconverter
Definition: LArOFCBinCompleteCnv.h:38
LArOFCBinCompleteCnv::createTransient
virtual LArOFCBinTransType * createTransient()
method to be implemented by the developer.
Definition: LArOFCBinCompleteCnv.cxx:21
LArConditionsSubset
template class for use for I/O of conditions data
Definition: LArConditionsSubset.h:122
LArOFCBinCompleteCnv.h
AthenaPool converter LArOFCBinComplete.
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
T_AthenaPoolCustCnv< COLL_T, ELEM_T >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
LArOFCBinCompleteCnv::createPersistent
virtual LArOFCBinPersType * createPersistent(LArOFCBinTransType *transObj)
Definition: LArOFCBinCompleteCnv.cxx:13