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