ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RawDataContainerCnv_p1.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_P1_H
6#define SCT_RAWDATACONTAINERCNV_P1_H
7
8// SCT_RawDataContainerCnv_p1, T/P separation of SCT Raw data
9// author D.Costanzo <davide.costanzo@cern.ch>
10
14
15class SCT_ID;
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 SCT Raw Data
20// that containes only SCR1_RawData concrete types
21// SCT_RDO_ContainerCnv.cxx delegates the conversion to this
22// converter if the objects are of the correct type
23
24
25class SCT_RawDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase<SCT_RDO_Container, SCT_RawDataContainer_p1>
26{
27 private:
28 const SCT_ID* m_sctId = nullptr;
29 int m_type;
30 public:
32
33 virtual void persToTrans(const SCT_RawDataContainer_p1* persCont,
34 SCT_RDO_Container* transCont,
35 MsgStream& log) ;
36 virtual void transToPers(const SCT_RDO_Container* transCont,
38 MsgStream& log) ;
39 virtual SCT_RDO_Container* createTransient(const SCT_RawDataContainer_p1* persObj, MsgStream& log) ;
40
41 // ID helper can't be used in the constructor, need initialize()
42 void initialize(const SCT_ID* idhelper) { m_sctId = idhelper; }
43 void setType(int type) {m_type = type; }
44};
45
46#endif
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p1 *persCont, MsgStream &log)
virtual void persToTrans(const SCT_RawDataContainer_p1 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
void initialize(const SCT_ID *idhelper)
virtual SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p1 *persObj, MsgStream &log)