ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include "GaudiKernel/StatusCode.h"
10
11
13 LArFebErrorSummaryCnvBase(svcLoc, "LArFebErrorSummaryCnv")
14{}
15
16
19{
20 LArFebErrorSummary_p1 *persObj = m_converter.createPersistent( transCont, msg() );
21 return persObj;
22}
23
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(guid_p1) ) {
33 std::unique_ptr<LArFebErrorSummary_p1> col_vect( poolReadObject<LArFebErrorSummary_p1>() );
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}
LArFebErrorSummary_p1 LArFebErrorSummary_PERSISTENT
T_AthenaPoolCustomCnv< LArFebErrorSummary, LArFebErrorSummary_PERSISTENT > LArFebErrorSummaryCnvBase
virtual LArFebErrorSummary * createTransient()
LArFebErrorSummaryCnv_p1 m_converter
virtual LArFebErrorSummary_PERSISTENT * createPersistent(LArFebErrorSummary *)
persistent class for LArFebErrorSummary, version p2.
Holds information from the FEB Error Summary.