ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RawDataContainerCnv_p4.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_P4_H
6#define SCT_RAWDATACONTAINERCNV_P4_H
7
8// SCT_RawDataContainerCnv_p4, T/P separation of SCT Raw data
9// author Susumu Oda <Susumu.Oda@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_p4 : public T_AthenaPoolTPCnvBase<SCT_RDO_Container, SCT_RawDataContainer_p4>
27{
28 private:
30 int m_type;
31 public:
33
34 virtual void persToTrans(const SCT_RawDataContainer_p4* 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_p4* 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_P4_H
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_p4 *persCont, MsgStream &log)
void initialize(const SCT_ID *idhelper)
virtual SCT_RDO_Container * createTransient(const SCT_RawDataContainer_p4 *persObj, MsgStream &log)
virtual void persToTrans(const SCT_RawDataContainer_p4 *persCont, SCT_RDO_Container *transCont, MsgStream &log)
Persistent represenation of an SCT_RawDataContainer.