ATLAS Offline Software
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
std::string& token )
32
{
33
34
static
const
pool::Guid
p1_guid(
"E60630E0-FAA1-4658-9BDD-8BB977C4200B"
);
35
36
// set the POOL token which will be used for reading from POOL
37
setToken
( token );
38
39
// select the object type based on its GUID
40
if
( compareClassGuid( p1_guid ) ) {
41
// read MuonCaloEnergies_PERS object from POOL using given TLP converter
42
poolReadObject< MuonCaloEnergies_PERS >(
m_TPConverter
);
43
}
44
else
45
throw
std::runtime_error(
"Unsupported version of MuonCaloEnergies_PERS (unknown GUID)"
);
46
}
47
48
initialize
void initialize()
Definition:
run_EoverP.cxx:894
MuonCaloEnergiesCnv::initialize
virtual StatusCode initialize()
Definition:
MuonCaloEnergiesCnv.cxx:19
pool::Guid
::Guid Guid
Definition:
T_AthenaPoolCustCnv.h:19
MuonCaloEnergiesCnv::MuonCaloEnergiesCnv
MuonCaloEnergiesCnv(ISvcLocator *svcloc)
Definition:
MuonCaloEnergiesCnv.cxx:13
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
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.
MuonCaloEnergiesCnv.h
MuonCaloEnergiesCnv::m_TPConverter
MuonCaloEnergyContainerCnv_tlp1 m_TPConverter
Definition:
MuonCaloEnergiesCnv.h:46
T_AthenaPoolExtendingCnv
This templated class extends T_AthenaPoolCustomCnv to provide additional/chaged functionality for Ath...
Definition:
T_AthenaPoolCustomCnv.h:24
MuonCaloEnergiesCnv::readObjectFromPool
virtual void readObjectFromPool(const std::string &)
Read the persistent object from POOL.
Definition:
MuonCaloEnergiesCnv.cxx:31
Generated on Thu Nov 7 2024 21:21:46 for ATLAS Offline Software by
1.8.18