ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
13
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}
static const LArAutoCorrSubsetCnv_p1 TPconverter
AthenaPool converter LArDSPThresholdsComplete.
LArConditionsSubset< LArDSPThresholdsP > LArDSPThrTransType
LArDSPThresholdsSubset_p1 LArDSPThrPersType
template class for use for I/O of conditions data
virtual LArDSPThrPersType * createPersistent(LArDSPThrTransType *transObj)
method to be implemented by the developer.
virtual LArDSPThrTransType * createTransient()
method to be implemented by the developer.
persistent class container of LArConditionsSubset for LArDSPThresholds data.