ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArCondAthenaPool
src
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
11
#include "
LArDSPThresholdsCompleteCnv.h
"
12
#include "
LArCondTPCnv/LArDSPThresholdsSubsetCnv_p1.h
"
13
14
static
const
LArDSPThresholdsSubsetCnv_p1
TPconverter
;
15
16
LArDSPThresholdsSubset_p1
*
17
LArDSPThresholdsCompleteCnv::createPersistent
(
LArDSPThrTransType
* transObj) {
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
25
LArConditionsSubset<LArDSPThresholdsP>
*
26
LArDSPThresholdsCompleteCnv::createTransient
(
const
Token
* token) {
27
static
const
pool::Guid
p0_guid(
"09607438-09CC-4E40-A1E2-23F0B021DF3D"
);
28
if
(
compareClassGuid
(token, p0_guid) ) {
29
// using unique_ptr ensures deletion of the persistent object
30
std::unique_ptr< LArDSPThresholdsSubset_p1 > col_vect(
poolReadObject< LArDSPThresholdsSubset_p1 >
(token) );
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
}
TPconverter
static const LArAutoCorrSubsetCnv_p1 TPconverter
Definition
LArAutoCorrCompleteCnv.cxx:14
LArDSPThresholdsCompleteCnv.h
AthenaPool converter LArDSPThresholdsComplete.
LArDSPThrTransType
LArConditionsSubset< LArDSPThresholdsP > LArDSPThrTransType
Definition
LArDSPThresholdsCompleteCnv.h:20
LArDSPThrPersType
LArDSPThresholdsSubset_p1 LArDSPThrPersType
Definition
LArDSPThresholdsCompleteCnv.h:21
LArDSPThresholdsSubsetCnv_p1.h
LArConditionsSubset
template class for use for I/O of conditions data
Definition
LArConditionsSubset.h:122
LArDSPThresholdsCompleteCnv::createPersistent
virtual LArDSPThrPersType * createPersistent(LArDSPThrTransType *transObj)
method to be implemented by the developer.
Definition
LArDSPThresholdsCompleteCnv.cxx:17
LArDSPThresholdsCompleteCnv::createTransient
virtual LArDSPThrTransType * createTransient(const Token *token)
method to be implemented by the developer.
Definition
LArDSPThresholdsCompleteCnv.cxx:26
LArDSPThresholdsSubsetCnv_p1
Definition
LArDSPThresholdsSubsetCnv_p1.h:21
LArDSPThresholdsSubset_p1
persistent class container of LArConditionsSubset for LArDSPThresholds data.
Definition
LArDSPThresholdsSubset_p1.h:30
T_AthenaPoolCoolMultChanCnv< LArDSPThresholdsComplete, LArDSPThrTransType, LArDSPThrPersType >::poolReadObject
P * poolReadObject(const Token *token)
T_AthenaPoolCoolMultChanCnv< LArDSPThresholdsComplete, LArDSPThrTransType, LArDSPThrPersType >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0