ATLAS Offline Software
InDetLowBetaCandidateCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9  T_AthenaPoolCustomCnv<InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >( svcloc, "InDetLowBetaCandidateConverter" ),
10  m_TPConverter (new InDetLowBetaCandidateCnv_tlp1)
11 { }
13 {
14  delete m_TPConverter;
15 }
16 
17 
18 
20  ATH_MSG_DEBUG("InDetLowBetaCandidateCnv::createPersistent");
21 
23 
24  return persObj;
25 }
26 
27 
29  ATH_MSG_DEBUG("InDetLowBetaCandidateCnv::createTransient ");
30 
31  static const pool::Guid tlp1_guid("8C24589F-FBAA-4686-9254-B5C360A94733");
32 
33  InDet::InDetLowBetaCandidate *trans_cont(nullptr);
34 
35  if (compareClassGuid(tlp1_guid) ) {
36  ATH_MSG_DEBUG("InDetLowBetaCandidateCnv::reading tlp1 persistent object");
37  std::unique_ptr<InDetLowBetaCandidate_tlp1> col_vect(this->poolReadObject<InDetLowBetaCandidate_tlp1>());
38  trans_cont = m_TPConverter->createTransient(col_vect.get(), msg());
39  } else {
40  throw std::runtime_error("Unsupported persistent version of Data container");
41  }
42  return trans_cont;
43 }
InDet
DUMMY Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
InDetLowBetaCandidateCnv.h
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
InDetLowBetaCandidateCnv::createTransient
InDet::InDetLowBetaCandidate * createTransient()
Definition: InDetLowBetaCandidateCnv.cxx:28
InDetLowBetaCandidateCnv_tlp1.h
InDetLowBetaCandidateCnv::m_TPConverter
InDetLowBetaCandidateCnv_tlp1 * m_TPConverter
Definition: InDetLowBetaCandidateCnv.h:36
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
TopLevelTPConverter::createTransient
TRANS * createTransient(MsgStream &log)
Create transient representation of the persistent object known to this converter.
Definition: TopLevelTPConverter.h:62
T_AthenaPoolCustomCnv
Compatibility for old converter classes that don't get passed the key.
Definition: T_AthenaPoolCustomCnv.h:132
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
InDetLowBetaCandidateCnv_tlp1
Definition: InDetLowBetaCandidateCnv_tlp1.h:14
InDetLowBetaCandidateCnv::createPersistent
InDetLowBetaCandidate_PERS * createPersistent(InDet::InDetLowBetaCandidate *transCont)
Definition: InDetLowBetaCandidateCnv.cxx:19
InDetLowBetaCandidateCnv::InDetLowBetaCandidateCnv
InDetLowBetaCandidateCnv(ISvcLocator *svcloc)
Definition: InDetLowBetaCandidateCnv.cxx:8
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
InDet::InDetLowBetaCandidate
Definition: InDetLowBetaCandidate.h:24
TopLevelTPConverter::createPersistent
virtual TL_PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of transObj.
Definition: TopLevelTPConverter.h:110
T_AthenaPoolCustCnv< InDet::InDetLowBetaCandidate, InDetLowBetaCandidate_PERS >::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.
InDetLowBetaCandidate_tlp1
Definition: InDetLowBetaCandidate_tlp1.h:11
InDetLowBetaCandidateCnv::~InDetLowBetaCandidateCnv
~InDetLowBetaCandidateCnv()
Definition: InDetLowBetaCandidateCnv.cxx:12
python.Dumpers.InDetLowBetaCandidate
InDetLowBetaCandidate
Definition: Dumpers.py:59