ATLAS Offline Software
PixelGangedClusterAmbiguitiesCnv.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
13 
15  ATH_MSG_DEBUG("PixelGangedClusterAmbiguities write");
17  ATH_MSG_DEBUG("Success");
18  return persObj;
19 }
20 
22  static const pool::Guid p1_guid("FE36CE7E-EADF-481F-A55A-26DA0030DFAA");
23 // static const pool::Guid p0_guid("380D8BB9-B34F-470F-92CC-06C3D60F7BE4");
24  if( compareClassGuid(p1_guid) ) {
25  // using unique_ptr ensures deletion of the persistent object
26  std::unique_ptr< InDet::PixelGangedClusterAmbiguities_p1 > col_vect( poolReadObject< InDet::PixelGangedClusterAmbiguities_p1 >() );
27  ATH_MSG_DEBUG("Reading PixelGangedClusterAmbiguities_p1");
28  return m_TPconverter.createTransient( col_vect.get(), msg() );
29  }
30 // else if( compareClassGuid(p0_guid) ) {
31 // dont think there was a "before T/P" split converter
32 // }
33  throw std::runtime_error("Unsupported persistent version of EventInfo");
34 }
35 
PixelGangedClusterAmbiguitiesCnv::createTransient
virtual InDet::PixelGangedClusterAmbiguities * createTransient()
Definition: PixelGangedClusterAmbiguitiesCnv.cxx:21
InDet::PixelGangedClusterAmbiguities
std::multimap< const SiCluster *, const SiCluster *, ::InDet::compare_SiCluster > PixelGangedClusterAmbiguities
Definition: PixelGangedClusterAmbiguities.h:46
TPPolyCnvBase::createTransient
virtual TRANS * createTransient(const PERS *persObj, MsgStream &log)
Create transient representation of a persistent object.
TPAbstractPolyCnvBase::createPersistent
virtual PERS * createPersistent(const TRANS *transObj, MsgStream &log)
Create persistent representation of a transient object.
PixelGangedClusterAmbiguitiesCnv::createPersistent
virtual PixelGangedClusterAmbiguities_PERS * createPersistent(InDet::PixelGangedClusterAmbiguities *transObj)
Definition: PixelGangedClusterAmbiguitiesCnv.cxx:14
InDet::PixelGangedClusterAmbiguities_p1
Definition: PixelGangedClusterAmbiguities_p1.h:19
pool::Guid
::Guid Guid
Definition: T_AthenaPoolCustCnv.h:19
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
PixelGangedClusterAmbiguitiesCnv::m_TPconverter
PixelGangedClusterAmbiguitiesCnv_p1 m_TPconverter
Definition: PixelGangedClusterAmbiguitiesCnv.h:32
PixelGangedClusterAmbiguitiesCnv.h
AthenaPool converter for PixelGangedClusterAmbiguitiesCnv.
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
PixelGangedClusterAmbiguities_p1.h
T_AthenaPoolCustCnv::compareClassGuid
virtual bool compareClassGuid(const Guid &clid) const
Compare POOL class GUID with the one of the object being read.