ATLAS Offline Software
Pixel1RawDataContainerCnv_p1.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 PIXEL1_RAWDATACONTAINERCNV_P1_H
6 #define PIXEL1_RAWDATACONTAINERCNV_P1_H
7 
8 // Pixel1_RawDataContainerCnv_p1, T/P separation of Pixel Raw data
9 // author D.Costanzo <davide.costanzo@cern.ch>
10 
14 class PixelID;
15 
16 
17 // We do NOT use T_AthenaPoolTPCnvIDCont because we do all of the
18 // conversion in the .cxx. Same as for the LAr Raw Channels
19 // Note that this is used for a container of Pixel Raw Data
20 // that containes only SCR1_RawData concrete types
21 // PixelRDO_ContainerCnv.cxx delegates the conversion to this
22 // converter if the objects are of the correct type
23 
24 
25 class Pixel1RawDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase<PixelRDO_Container, InDetRawDataContainer_p1>
26 {
27  private:
28  const PixelID *m_pixId = nullptr;
29  public:
31 
32  virtual void persToTrans(const InDetRawDataContainer_p1* persCont,
33  PixelRDO_Container* transCont,
34  MsgStream &log) ;
35  virtual void transToPers(const PixelRDO_Container* transCont,
36  InDetRawDataContainer_p1* persCont,
37  MsgStream &log) ;
38  virtual PixelRDO_Container* createTransient(const InDetRawDataContainer_p1* persObj, MsgStream& log) ;
39 
40 
41  // ID helper can't be used in the constructor, need initialize()
42  void initialize(const PixelID *idhelper) { m_pixId = idhelper; }
43 
44 };
45 
46 #endif
Pixel1RawDataContainerCnv_p1::transToPers
virtual void transToPers(const PixelRDO_Container *transCont, InDetRawDataContainer_p1 *persCont, MsgStream &log)
Definition: Pixel1RawDataContainerCnv_p1.cxx:17
InDetRawDataContainer_p1.h
TPConverterBase
Definition: TPConverter.h:738
InDetRawDataContainer
Definition: InDetRawDataContainer.h:27
Pixel1RawDataContainerCnv_p1
Definition: Pixel1RawDataContainerCnv_p1.h:26
Pixel1RawDataContainerCnv_p1::Pixel1RawDataContainerCnv_p1
Pixel1RawDataContainerCnv_p1()
Definition: Pixel1RawDataContainerCnv_p1.h:30
T_AthenaPoolTPConverter.h
Pixel1RawDataContainerCnv_p1::persToTrans
virtual void persToTrans(const InDetRawDataContainer_p1 *persCont, PixelRDO_Container *transCont, MsgStream &log)
Definition: Pixel1RawDataContainerCnv_p1.cxx:74
Pixel1RawDataContainerCnv_p1::createTransient
virtual PixelRDO_Container * createTransient(const InDetRawDataContainer_p1 *persObj, MsgStream &log)
Definition: Pixel1RawDataContainerCnv_p1.cxx:138
PixelRDO_Container.h
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Pixel1RawDataContainerCnv_p1::initialize
void initialize(const PixelID *idhelper)
Definition: Pixel1RawDataContainerCnv_p1.h:42
PixelID
Definition: PixelID.h:67
InDetRawDataContainer_p1
Definition: InDetRawDataContainer_p1.h:31
Pixel1RawDataContainerCnv_p1::m_pixId
const PixelID * m_pixId
Definition: Pixel1RawDataContainerCnv_p1.h:28