ATLAS Offline Software
Loading...
Searching...
No Matches
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" ),
11{ }
16
17
18
20 ATH_MSG_DEBUG("InDetLowBetaCandidateCnv::createPersistent");
21
22 InDetLowBetaCandidate_PERS *persObj = m_TPConverter->createPersistent(transCont, msg());
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}
#define ATH_MSG_DEBUG(x)
InDetLowBetaCandidate_tlp1 InDetLowBetaCandidate_PERS
InDetLowBetaCandidateCnv(ISvcLocator *svcloc)
InDetLowBetaCandidate_PERS * createPersistent(InDet::InDetLowBetaCandidate *transCont)
InDetLowBetaCandidateCnv_tlp1 * m_TPConverter
InDet::InDetLowBetaCandidate * createTransient()
Compatibility for old converter classes that don't get passed the key.
Primary Vertex Finder.