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
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
40 }
41 else
42 throw std::runtime_error( "Unsupported version of MuonCaloEnergies_PERS (unknown GUID)" );
43}
44
45
T_AthenaPoolExtendingCnv< TPCnv::MuonCaloEnergies, MuonCaloEnergies_PERS > MuonCaloEnergiesCnvBase
MuonCaloEnergiesCnv(ISvcLocator *svcloc)
virtual void readObjectFromPool(const Token *)
Read the persistent object from POOL.
MuonCaloEnergyContainerCnv_tlp1 m_TPConverter
virtual StatusCode initialize()
Gaudi Service Interface method implementations:
virtual bool compareClassGuid(const Token *token, const Guid &clid) const
This class provides a token that identifies in a unique way objects on the persistent storage.
Definition Token.h:21