ATLAS Offline Software
TRT_RDO_ContainerCnv_p1.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*
3  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef TRT_RDO_CONTAINERCNV_P1_H
7 #define TRT_RDO_CONTAINERCNV_P1_H
8 
11 #include "StoreGate/StoreGateSvc.h"
12 
13 class TRT_ID;
14 
16 
17 class MsgStream;
18 
19 class TRT_RDO_ContainerCnv_p1 : public T_AthenaPoolTPCnvBase<TRT_RDO_Container, TRT_RDO_Container_p1> {
20  const TRT_ID *m_trtId;
22 public:
23  TRT_RDO_ContainerCnv_p1() : m_trtId(nullptr), m_storeGate(nullptr) {}
24  virtual void persToTrans(const TRT_RDO_Container_p1* persObj, TRT_RDO_Container* transObj, MsgStream &log) ;
25  virtual void transToPers(const TRT_RDO_Container* transObj, TRT_RDO_Container_p1* persObj, MsgStream &log) ;
26  virtual TRT_RDO_Container* createTransient(const TRT_RDO_Container_p1* persObj, MsgStream& log) ;
27  virtual TRT_RDO_Container_p1* createPersistent(const TRT_RDO_Container* persObj, MsgStream& log);
28 
29  // ID helper can't be used in the constructor, need initialize()
30  void initialize(const TRT_ID *idhelper, StoreGateSvc* sg) { m_trtId = idhelper; m_storeGate = sg; }
31 };
32 
33 
34 #endif/*TRT_RDO_CONTAINERCNV_P1_H*/
TRT_RDO_ContainerCnv_p1::initialize
void initialize(const TRT_ID *idhelper, StoreGateSvc *sg)
Definition: TRT_RDO_ContainerCnv_p1.h:30
TRT_RDO_ContainerCnv_p1::m_trtId
const TRT_ID * m_trtId
Definition: TRT_RDO_ContainerCnv_p1.h:20
TRT_RDO_Container.h
TPConverterBase
Definition: TPConverter.h:738
TRT_RDO_ContainerCnv_p1::transToPers
virtual void transToPers(const TRT_RDO_Container *transObj, TRT_RDO_Container_p1 *persObj, MsgStream &log)
Definition: TRT_RDO_ContainerCnv_p1.cxx:61
InDetRawDataContainer
Definition: InDetRawDataContainer.h:27
TRT_RDO_ContainerCnv_p1::persToTrans
virtual void persToTrans(const TRT_RDO_Container_p1 *persObj, TRT_RDO_Container *transObj, MsgStream &log)
Definition: TRT_RDO_ContainerCnv_p1.cxx:109
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
TRT_RDO_ContainerCnv_p1::createTransient
virtual TRT_RDO_Container * createTransient(const TRT_RDO_Container_p1 *persObj, MsgStream &log)
Definition: TRT_RDO_ContainerCnv_p1.cxx:127
T_AthenaPoolTPConverter.h
TRT_RDO_ContainerCnv_p1::createPersistent
virtual TRT_RDO_Container_p1 * createPersistent(const TRT_RDO_Container *persObj, MsgStream &log)
Definition: TRT_RDO_ContainerCnv_p1.cxx:134
TRT_RDO_ContainerCnv_p1::m_storeGate
StoreGateSvc * m_storeGate
Definition: TRT_RDO_ContainerCnv_p1.h:21
TRT_ID
Definition: TRT_ID.h:84
TRT_RDO_Container_p1
TRT_RDO_colvector TRT_RDO_Container_p1
Definition: TRT_RDO_ContainerCnv_p1.h:13
ConstDataVector
DataVector adapter that acts like it holds const pointers.
Definition: ConstDataVector.h:76
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TRT_RDO_ContainerCnv_p1
Definition: TRT_RDO_ContainerCnv_p1.h:19
TRT_RDO_ContainerCnv_p1::TRT_RDO_ContainerCnv_p1
TRT_RDO_ContainerCnv_p1()
Definition: TRT_RDO_ContainerCnv_p1.h:23
StoreGateSvc.h