ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonCnv
MuonEventAthenaPool
src
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
7
#include "
MuonMeasurementsCnv.h
"
8
9
#include <stdexcept>
10
11
MuonMeasurementsCnv::MuonMeasurementsCnv
(ISvcLocator* svcloc):
12
MuonMeasurementsCnvBase
(svcloc)
13
{
14
}
15
16
17
void
18
MuonMeasurementsCnv::readObjectFromPool
(
const
Token
* 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
// 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
26
poolReadObject< TPCnv::MuonMeasurements_tlp2 >
(
m_TPConverter_p2
, token );
27
}
else
if
(
compareClassGuid
(token, p1_guid ) ) {
28
poolReadObject< TPCnv::MuonMeasurements_tlp1 >
(
m_TPConverter_p1
, token ); }
29
else
30
throw
std::runtime_error(
"Unsupported version of MuonMeasurements_PERS (unknown GUID)"
);
31
}
MuonMeasurementsCnv.h
MuonMeasurementsCnvBase
T_AthenaPoolExtendingCnv< TPCnv::MuonMeasurements, MuonMeasurements_PERS > MuonMeasurementsCnvBase
Definition
MuonMeasurementsCnv.h:21
MuonMeasurementsCnv::MuonMeasurementsCnv
MuonMeasurementsCnv(ISvcLocator *svcloc)
Definition
MuonMeasurementsCnv.cxx:11
MuonMeasurementsCnv::readObjectFromPool
virtual void readObjectFromPool(const Token *)
Read the persistent object from POOL.
Definition
MuonMeasurementsCnv.cxx:18
MuonMeasurementsCnv::m_TPConverter_p1
MuonMeasurementsCnv_tlp1 m_TPConverter_p1
Definition
MuonMeasurementsCnv.h:43
MuonMeasurementsCnv::m_TPConverter_p2
MuonMeasurementsCnv_tlp2 m_TPConverter_p2
Definition
MuonMeasurementsCnv.h:42
T_AthenaPoolExtendingCnv< TPCnv::MuonMeasurements, MuonMeasurements_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolExtendingCnv< TPCnv::MuonMeasurements, MuonMeasurements_PERS >::poolReadObject
P * poolReadObject(const Token *token)
Token
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition
Token.h:22
pool::Guid
::Guid Guid
Definition
T_AthenaPoolCustCnv.h:19
Generated on
for ATLAS Offline Software by
1.17.0