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
18MuonMeasurementsCnv::readObjectFromPool( const std::string& token )
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 // set the POOL token which will be used for reading from POOL
24 setToken( token );
25
26 // select the object type based on its GUID
27 if( compareClassGuid( p2_guid ) ) {
28 // read MuonMeasurements_PERS object from POOL using given TLP converter
30 }else if( compareClassGuid( p1_guid ) ) {
32 else
33 throw std::runtime_error( "Unsupported version of MuonMeasurements_PERS (unknown GUID)" );
34}
35
T_AthenaPoolExtendingCnv< TPCnv::MuonMeasurements, MuonMeasurements_PERS > MuonMeasurementsCnvBase
MuonMeasurementsCnv(ISvcLocator *svcloc)
virtual void readObjectFromPool(const std::string &)
Read the persistent object from POOL.
MuonMeasurementsCnv_tlp1 m_TPConverter_p1
MuonMeasurementsCnv_tlp2 m_TPConverter_p2
virtual void setToken(const std::string &token) override