ATLAS Offline Software
Loading...
Searching...
No Matches
MuonMeasurementsCnv.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "GaudiKernel/MsgStream.h"
6
8
9#include <stdexcept>
10
15
16
17void
19{
20 static const pool::Guid p1_guid( "C4979DA5-4193-410B-9476-A51708C01CF7" );
21 static const pool::Guid p2_guid( "87FC613F-390A-4AB0-9BBF-28CE788867D5" );
22
23 // select the object type based on its GUID
24 if( compareClassGuid(token, p2_guid ) ) {
25 // read MuonMeasurements_PERS object from POOL using given TLP converter
27 }else if( compareClassGuid(token, p1_guid ) ) {
29 else
30 throw std::runtime_error( "Unsupported version of MuonMeasurements_PERS (unknown GUID)" );
31}
32
T_AthenaPoolExtendingCnv< TPCnv::MuonMeasurements, MuonMeasurements_PERS > MuonMeasurementsCnvBase
MuonMeasurementsCnv(ISvcLocator *svcloc)
virtual void readObjectFromPool(const Token *)
Read the persistent object from POOL.
MuonMeasurementsCnv_tlp1 m_TPConverter_p1
MuonMeasurementsCnv_tlp2 m_TPConverter_p2
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21