ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCnv
LArAthenaPool
src
LArFebErrorSummaryCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArFebErrorSummaryCnv.h
"
6
7
#include "GaudiKernel/StatusCode.h"
8
#include "
StoreGate/StoreGateSvc.h
"
9
#include "
LArTPCnv/LArFebErrorSummaryCnv_p1.h
"
10
11
12
LArFebErrorSummaryCnv::LArFebErrorSummaryCnv
(ISvcLocator* svcLoc) :
13
LArFebErrorSummaryCnvBase
(svcLoc,
"LArFebErrorSummaryCnv"
)
14
{}
15
16
17
LArFebErrorSummary_PERSISTENT
*
18
LArFebErrorSummaryCnv::createPersistent
(
LArFebErrorSummary
* transCont)
19
{
20
LArFebErrorSummary_p1
*persObj =
m_converter
.createPersistent( transCont,
msg
() );
21
return
persObj;
22
}
23
24
LArFebErrorSummary
*
25
LArFebErrorSummaryCnv::createTransient
(
const
Token
* token)
26
{
27
LArFebErrorSummary
*trans = NULL;
28
29
// GUID for persistent classes
30
static
const
pool::Guid
guid_p1(
"9448FB64-AB7E-4995-A5FC-23E9A6C1AF80"
);
31
32
if
(
compareClassGuid
(token, guid_p1) ) {
33
std::unique_ptr<LArFebErrorSummary_p1> col_vect(
poolReadObject<LArFebErrorSummary_p1>
(token) );
34
trans =
m_converter
.createTransient( col_vect.get(),
msg
() );
35
}
36
else
{
37
// log << MSG::ERROR << "failed trying to read : " << m_token << endmsg;
38
throw
std::runtime_error(
"Unsupported persistent version of LArFebErrorSummary "
) ;
39
}
40
return
trans;
41
}
LArFebErrorSummaryCnv.h
LArFebErrorSummary_PERSISTENT
LArFebErrorSummary_p1 LArFebErrorSummary_PERSISTENT
Definition
LArFebErrorSummaryCnv.h:13
LArFebErrorSummaryCnvBase
T_AthenaPoolCustomCnv< LArFebErrorSummary, LArFebErrorSummary_PERSISTENT > LArFebErrorSummaryCnvBase
Definition
LArFebErrorSummaryCnv.h:15
LArFebErrorSummaryCnv_p1.h
StoreGateSvc.h
T_AthenaPoolCustomCnv< LArFebErrorSummary, LArFebErrorSummary_PERSISTENT >::msg
MsgStream & msg() const
Definition
AthMessaging.h:167
LArFebErrorSummaryCnv::LArFebErrorSummaryCnv
LArFebErrorSummaryCnv(ISvcLocator *)
Definition
LArFebErrorSummaryCnv.cxx:12
LArFebErrorSummaryCnv::m_converter
LArFebErrorSummaryCnv_p1 m_converter
Definition
LArFebErrorSummaryCnv.h:26
LArFebErrorSummaryCnv::createPersistent
virtual LArFebErrorSummary_PERSISTENT * createPersistent(LArFebErrorSummary *)
Definition
LArFebErrorSummaryCnv.cxx:18
LArFebErrorSummaryCnv::createTransient
virtual LArFebErrorSummary * createTransient(const Token *token)
Definition
LArFebErrorSummaryCnv.cxx:25
LArFebErrorSummary_p1
persistent class for LArFebErrorSummary, version p2.
Definition
LArFebErrorSummary_p1.h:15
LArFebErrorSummary
Holds information from the FEB Error Summary.
Definition
LArFebErrorSummary.h:23
T_AthenaPoolCustomCnv< LArFebErrorSummary, LArFebErrorSummary_PERSISTENT >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolCustomCnv< LArFebErrorSummary, LArFebErrorSummary_PERSISTENT >::poolReadObject
P * poolReadObject(const Token *token)
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