ATLAS Offline Software
Loading...
Searching...
No Matches
LArCondAthenaPool/src/T_LArCondAthenaPoolCnv.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef T_LARCONDATHENAPOOLCNV_H
6#define T_LARCONDATHENAPOOLCNV_H
7
9
10class StoreGateSvc;
11
12// Template AthenaPool converter for LAr Conditions data
13// T == Transient Conditions data class
14// T should have T::P defined as a type, and P is the persistent data
15// type to be stored in POOL
16
17
18template <class T>
20 : public T_AthenaPoolCnv<T>
21{
22
23
24protected:
25
27
28 friend class CnvFactory<T_LArCondAthenaPoolCnv<T> >;
29
31 T_LArCondAthenaPoolCnv(ISvcLocator* svcloc);
32
33public:
34
35 // persistent class defined in Transient class
36// typedef typename T::MAP_P MAP_P ;
37 typedef typename T::GainMap MAP_P ;
38// typedef typename T::GainMap GainMap;
39
41
42 virtual StatusCode DataObjectToPool(IOpaqueAddress* pAddr, DataObject* pObj) override;
43 virtual StatusCode PoolToDataObject(DataObject*& pObj,
44 const std::string& token,
45 const std::string& key) override;
46
47
48private:
49
50} ;
51
53
54#endif
55
56
his file contains the class definition for the templated T_AthenaPoolCnv class.
Abstract factory to create the converter.
The Athena Transient Store API.
This templated class provides the converter to translate an object to/from its persistent POOL repres...
virtual StatusCode DataObjectToPool(IOpaqueAddress *pAddr, DataObject *pObj) override
Write an object into POOL.
virtual StatusCode PoolToDataObject(DataObject *&pObj, const std::string &token, const std::string &key) override
virtual ~T_LArCondAthenaPoolCnv()
T_AthenaPoolCustCnv< T, typename T::PERSIST > LArCondAthenaPoolCnvBase
T_LArCondAthenaPoolCnv(ISvcLocator *svcloc)
Constructor.