ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
13
15 ATH_MSG_DEBUG("PixelGangedClusterAmbiguities write");
16 PixelGangedClusterAmbiguities_PERS *persObj = m_TPconverter.createPersistent( transObj, msg() );
17 ATH_MSG_DEBUG("Success");
18 return persObj;
19}
20
21InDet::PixelGangedClusterAmbiguities* PixelGangedClusterAmbiguitiesCnv::createTransient(const Token* token) {
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(token, 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 >(token) );
27 ATH_MSG_DEBUG("Reading PixelGangedClusterAmbiguities_p1");
28 return m_TPconverter.createTransient( col_vect.get(), msg() );
29 }
30 throw std::runtime_error("Unsupported persistent version of EventInfo");
31}
32
#define ATH_MSG_DEBUG(x)
AthenaPool converter for PixelGangedClusterAmbiguitiesCnv.
InDet::PixelGangedClusterAmbiguities_p1 PixelGangedClusterAmbiguities_PERS
virtual InDet::PixelGangedClusterAmbiguities * createTransient(const Token *token)
virtual PixelGangedClusterAmbiguities_PERS * createPersistent(InDet::PixelGangedClusterAmbiguities *transObj)
PixelGangedClusterAmbiguitiesCnv_p1 m_TPconverter
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21