ATLAS Offline Software
LArAthenaPool/src/T_LArCondAthenaPoolCnv.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef T_LARCONDATHENAPOOLCNV_H
6 #define T_LARCONDATHENAPOOLCNV_H
7 
9 
10 class 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 
18 template <class T>
20  : public T_AthenaPoolCustCnv<T,typename T::PERSIST>
21 {
22 
23 
24 protected:
25 
27 
28  friend class CnvFactory<T_LArCondAthenaPoolCnv<T> >;
29 
31  T_LArCondAthenaPoolCnv(ISvcLocator* svcloc);
32 
33 public:
34 
35  // persistent class defined in Transient class
36  typedef typename T::PERSIST PERSIST ;
37 
39 
41 
42  virtual StatusCode transToPers(T* obj, PERSIST*& persObj) ;
43  virtual StatusCode persToTrans(T*& transObj, PERSIST* obj) ;
44 
45 
46 private:
47 
48 } ;
49 
51 
52 #endif
53 
54 
T_LArCondAthenaPoolCnv::LArCondAthenaPoolCnvBase
T_AthenaPoolCustCnv< T, typename T::PERSIST > LArCondAthenaPoolCnvBase
Definition: LArAthenaPool/src/T_LArCondAthenaPoolCnv.h:26
T_LArCondAthenaPoolCnv::persToTrans
virtual StatusCode persToTrans(T *&transObj, PERSIST *obj)
T_AthenaPoolCustCnv
This templated class provides the converter to translate an object to/from its persistent POOL repres...
Definition: T_AthenaPoolCustCnv.h:35
T_AthenaPoolCustCnv.h
his file contains the class definition for the templated T_AthenaPoolCustCnv class.
T_LArCondAthenaPoolCnv::T_LArCondAthenaPoolCnv
T_LArCondAthenaPoolCnv(ISvcLocator *svcloc)
Constructor.
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
T_LArCondAthenaPoolCnv
Definition: LArAthenaPool/src/T_LArCondAthenaPoolCnv.h:21
T_LArCondAthenaPoolCnv.icc
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
T_LArCondAthenaPoolCnv::~T_LArCondAthenaPoolCnv
virtual ~T_LArCondAthenaPoolCnv()
T_LArCondAthenaPoolCnv::transToPers
virtual StatusCode transToPers(T *obj, PERSIST *&persObj)
initialization
python.PyAthena.obj
obj
Definition: PyAthena.py:135
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
T_LArCondAthenaPoolCnv::PERSIST
T::PERSIST PERSIST
Definition: LArAthenaPool/src/T_LArCondAthenaPoolCnv.h:36