Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
LArLATOMEHeaderContainerCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 #include <memory>
9 
11  LArLATOMEHeaderContainerCnvBase(svcLoc, "LArLATOMEHeaderContainerCnv"),
12  m_p1_guid("7FE06234-8574-4514-86C7-1FD09E97D713")
13 {}
14 
16 
18 }
19 
20 
22  ATH_MSG_DEBUG("Writing LArDigitContainer_p2");
25  converter.transToPers(trans, pers, msg());
26  return pers;
27 }
28 
29 
30 
33  ATH_MSG_DEBUG("Reading LArLATOMEHeaderContainer_p1. GUID=" << m_classID.toString());
35  std::unique_ptr<LArLATOMEHeaderContainer_p1> pers(poolReadObject<LArLATOMEHeaderContainer_p1>());
37  converter.persToTrans(pers.get(), trans, msg());
38  return trans;
39  }
40  ATH_MSG_ERROR("Unsupported persistent version of LArLATOMEHeaderContainer. GUID=" << m_classID.toString());
41  throw std::runtime_error("Unsupported persistent version of Data Collection");
42  // not reached
43 }
T_AthenaPoolCustCnv::m_classID
Guid m_classID
Definition: T_AthenaPoolCustCnv.h:96
LArLATOMEHeaderContainerCnv::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: LArLATOMEHeaderContainerCnv.cxx:15
LArLATOMEHeaderContainerCnv::createPersistent
virtual LArLATOMEHeaderContainerPERS * createPersistent(LArLATOMEHeaderContainer *) override
Definition: LArLATOMEHeaderContainerCnv.cxx:21
LArLATOMEHeaderContainer_p1.h
Guid::toString
const std::string toString() const
Automatic conversion to string representation.
Definition: Guid.cxx:58
LArLATOMEHeaderContainer
Container class for LArLATOMEHeader.
Definition: LArLATOMEHeaderContainer.h:19
LArLATOMEHeaderContainerCnv.h
LArLATOMEHeaderContainerCnv_p1.h
LArLATOMEHeaderContainer_p1
Definition: LArLATOMEHeaderContainer_p1.h:12
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
LArLATOMEHeaderContainerCnv_p1::persToTrans
virtual void persToTrans(const LArLATOMEHeaderContainer_p1 *pers, LArLATOMEHeaderContainer *trans, MsgStream &log) const override
Definition: LArLATOMEHeaderContainerCnv_p1.cxx:11
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
LArLATOMEHeaderContainerCnv::m_p1_guid
pool::Guid m_p1_guid
Definition: LArLATOMEHeaderContainerCnv.h:26
LArLATOMEHeaderContainerPERS
LArLATOMEHeaderContainer_p1 LArLATOMEHeaderContainerPERS
Definition: LArLATOMEHeaderContainerCnv.h:13
LArLATOMEHeaderContainerCnv_p1::transToPers
virtual void transToPers(const LArLATOMEHeaderContainer *trans, LArLATOMEHeaderContainer_p1 *pers, MsgStream &log) const override
Definition: LArLATOMEHeaderContainerCnv_p1.cxx:32
LArLATOMEHeaderContainerCnv_p1
Definition: LArLATOMEHeaderContainerCnv_p1.h:15
LArLATOMEHeaderContainerCnv::createTransient
virtual LArLATOMEHeaderContainer * createTransient() override final
Definition: LArLATOMEHeaderContainerCnv.cxx:31
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
T_AthenaPoolCustCnv::initialize
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
LArLATOMEHeaderContainer
Athena::TPCnvVers::Current Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old Athena::TPCnvVers::Old LArLATOMEHeaderContainer
Definition: LArTPCnv.cxx:106
LArLATOMEHeaderContainerCnv::LArLATOMEHeaderContainerCnv
LArLATOMEHeaderContainerCnv(ISvcLocator *)
Definition: LArLATOMEHeaderContainerCnv.cxx:10