ATLAS Offline Software
LArDSPThresholdsCompleteCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 
14 static const LArDSPThresholdsSubsetCnv_p1 TPconverter;
15 
18  MsgStream log(msgSvc(), "LArDSPThresholdsCompleteCnv" );
19  //log << MSG::DEBUG << "LArDSPThresholdsComplete write" << endmsg;
20  LArDSPThrPersType* persObj = TPconverter.createPersistentConst( transObj, log );
21  //log << MSG::DEBUG << "Success" << endmsg;
22  return persObj;
23 }
24 
27  static const pool::Guid p0_guid("09607438-09CC-4E40-A1E2-23F0B021DF3D");
28  if( compareClassGuid(p0_guid) ) {
29  // using unique_ptr ensures deletion of the persistent object
30  std::unique_ptr< LArDSPThresholdsSubset_p1 > col_vect( poolReadObject< LArDSPThresholdsSubset_p1 >() );
31  MsgStream log(msgSvc(), "LArDSPThresholdsCompleteCnv" );
32  //log << MSG::INFO << "Reading LArDSPThresholdsSubset_p1" << endmsg;
33  return TPconverter.createTransientConst( col_vect.get(), log );
34  }
35  throw std::runtime_error("Unsupported persistent version of LArDSPThresholdsCompleteCnv");
36 }
LArDSPThresholdsSubset_p1
persistent class container of LArConditionsSubset for LArDSPThresholds data.
Definition: LArDSPThresholdsSubset_p1.h:30
LArDSPThresholdsSubsetCnv_p1
Definition: LArDSPThresholdsSubsetCnv_p1.h:21
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
LArDSPThresholdsCompleteCnv::createTransient
virtual LArDSPThrTransType * createTransient()
method to be implemented by the developer.
Definition: LArDSPThresholdsCompleteCnv.cxx:26
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
TPConverterConstBase::createPersistentConst
virtual PERS * createPersistentConst(const TRANS *transObj, MsgStream &log) const
LArDSPThresholdsCompleteCnv.h
AthenaPool converter LArDSPThresholdsComplete.
LArDSPThresholdsSubsetCnv_p1.h
LArDSPThresholdsCompleteCnv::createPersistent
virtual LArDSPThrPersType * createPersistent(LArDSPThrTransType *transObj)
Definition: LArDSPThresholdsCompleteCnv.cxx:17
LArConditionsSubset
template class for use for I/O of conditions data
Definition: LArConditionsSubset.h:122
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.
TPConverterConstBase::createTransientConst
virtual TRANS * createTransientConst(const PERS *persObj, MsgStream &log) const