ATLAS Offline Software
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
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
29
poolReadObject< TPCnv::MuonMeasurements_tlp2 >(
m_TPConverter_p2
);
30
}
else
if
( compareClassGuid( p1_guid ) ) {
31
poolReadObject< TPCnv::MuonMeasurements_tlp1 >(
m_TPConverter_p1
); }
32
else
33
throw
std::runtime_error(
"Unsupported version of MuonMeasurements_PERS (unknown GUID)"
);
34
}
35
MuonMeasurementsCnv::m_TPConverter_p1
MuonMeasurementsCnv_tlp1 m_TPConverter_p1
Definition:
MuonMeasurementsCnv.h:43
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
T_AthenaPoolExtendingCnv::setToken
virtual void setToken(const std::string &token)
Set the token (in std::string representation) and classID for the object that will be read next.
MuonMeasurementsCnv::readObjectFromPool
virtual void readObjectFromPool(const std::string &)
Read the persistent object from POOL.
Definition:
MuonMeasurementsCnv.cxx:18
MuonMeasurementsCnv::m_TPConverter_p2
MuonMeasurementsCnv_tlp2 m_TPConverter_p2
Definition:
MuonMeasurementsCnv.h:42
MuonMeasurementsCnv::MuonMeasurementsCnv
MuonMeasurementsCnv(ISvcLocator *svcloc)
Definition:
MuonMeasurementsCnv.cxx:11
MuonMeasurementsCnv.h
T_AthenaPoolExtendingCnv
This templated class extends T_AthenaPoolCustomCnv to provide additional/chaged functionality for Ath...
Definition:
T_AthenaPoolCustomCnv.h:24
Generated on Wed Jan 8 2025 21:14:25 for ATLAS Offline Software by
1.8.18