ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RawDataContainerCnv_p3.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_P3_H
6#define SCT_RAWDATACONTAINERCNV_P3_H
7
8// SCT_RawDataContainerCnv_p3, T/P separation of SCT Raw data
9// author D.Costanzo <davide.costanzo@cern.ch>
10
12
15
16class 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
26class SCT_RawDataContainerCnv_p3 : public T_AthenaPoolTPCnvBase<SCT_RDO_Container, SCT_RawDataContainer_p3>
27{
28private:
30 int m_type;
31public:
33
34 virtual void persToTrans(const SCT_RawDataContainer_p3* persCont,
35 SCT_RDO_Container* transCont,
36 MsgStream& log) ;
37 virtual void transToPers(const SCT_RDO_Container* transCont,
39 MsgStream& log) ;
40 virtual SCT_RDO_Container* createTransient(const SCT_RawDataContainer_p3* persObj, MsgStream& log) ;
41
42
43 // ID helper can't be used in the constructor, need initialize()
44 void initialize(const SCT_ID* idhelper) { m_sctId = idhelper; }
45 void setType(int type) {m_type = type; }
46};
47
48#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 SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p3 *persObj, MsgStream &log)
virtual void transToPers(const SCT_RDO_Container *transCont, SCT_RawDataContainer_p3 *persCont, MsgStream &log)
void initialize(const SCT_ID *idhelper)
virtual void persToTrans(const SCT_RawDataContainer_p3 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
Persistent represenation of an SCT_RawDataContainer.