ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
RecAthenaPool
src
MuonCaloEnergiesCnv.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// removal candidate - together will all MuonCaloEnergies* things.
6
7
8
#include "GaudiKernel/MsgStream.h"
9
#include "
MuonCaloEnergiesCnv.h
"
10
#include <iostream>
11
#include <stdexcept>
12
13
MuonCaloEnergiesCnv::MuonCaloEnergiesCnv
(ISvcLocator* svcloc):
14
MuonCaloEnergiesCnvBase
(svcloc)
15
{
16
}
17
18
19
StatusCode
MuonCaloEnergiesCnv::initialize
()
20
{
21
if
( !
MuonCaloEnergiesCnvBase::initialize
().isSuccess() )
22
return
StatusCode::FAILURE;
23
// std::cout << " ------->>---- In MuonCaloEnergiesCnv::initialize()" << std::endl;
24
25
return
StatusCode::SUCCESS;
26
}
27
28
29
// this method just reads the persistent object - no TP conversion here
30
void
31
MuonCaloEnergiesCnv::readObjectFromPool
(
const
Token
* token )
32
{
33
34
static
const
pool::Guid
p1_guid(
"E60630E0-FAA1-4658-9BDD-8BB977C4200B"
);
35
36
// select the object type based on its GUID
37
if
(
compareClassGuid
(token, p1_guid ) ) {
38
// read MuonCaloEnergies_PERS object from POOL using given TLP converter
39
poolReadObject< MuonCaloEnergies_PERS >
(
m_TPConverter
, token );
40
}
41
else
42
throw
std::runtime_error(
"Unsupported version of MuonCaloEnergies_PERS (unknown GUID)"
);
43
}
44
45
MuonCaloEnergiesCnv.h
MuonCaloEnergiesCnvBase
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_PERS > MuonCaloEnergiesCnvBase
Definition
MuonCaloEnergiesCnv.h:23
MuonCaloEnergiesCnv::MuonCaloEnergiesCnv
MuonCaloEnergiesCnv(ISvcLocator *svcloc)
Definition
MuonCaloEnergiesCnv.cxx:13
MuonCaloEnergiesCnv::readObjectFromPool
virtual void readObjectFromPool(const Token *)
Read the persistent object from POOL.
Definition
MuonCaloEnergiesCnv.cxx:31
MuonCaloEnergiesCnv::m_TPConverter
MuonCaloEnergyContainerCnv_tlp1 m_TPConverter
Definition
MuonCaloEnergiesCnv.h:46
MuonCaloEnergiesCnv::initialize
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
Definition
MuonCaloEnergiesCnv.cxx:19
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_PERS >::compareClassGuid
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_PERS >::initialize
virtual StatusCode initialize()
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_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