ATLAS Offline Software
Loading...
Searching...
No Matches
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"
10#include <iostream>
11#include <stdexcept>
12
17
18
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
30void
31MuonCaloEnergiesCnv::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
43 }
44 else
45 throw std::runtime_error( "Unsupported version of MuonCaloEnergies_PERS (unknown GUID)" );
46}
47
48
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_PERS > MuonCaloEnergiesCnvBase
virtual void readObjectFromPool(const std::string &)
Read the persistent object from POOL.
MuonCaloEnergiesCnv(ISvcLocator *svcloc)
MuonCaloEnergyContainerCnv_tlp1 m_TPConverter
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual void setToken(const std::string &token) override