ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RDO_ContainerCnv_p0.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_RDO_CONTAINERCNV_P0_H
6#define SCT_RDO_CONTAINERCNV_P0_H
7
9
13
14class SCT_ID;
15
17
18class MsgStream;
19class SCT_RDO_ContainerCnv_p0 : public T_AthenaPoolTPCnvBase<SCT_RDO_Container, SCT_RDO_Container_p0> {
20 const SCT_ID* m_sctId{nullptr};
21public:
22 virtual void persToTrans(const SCT_RDO_Container_p0*, SCT_RDO_Container*, MsgStream&) {
23 // everything is done in createTransient()
24 }
25
26 virtual void transToPers(const SCT_RDO_Container*, SCT_RDO_Container_p0*, MsgStream&) {
27 throw std::runtime_error("Writing SCT RDOs in the old format is not supported");
28 }
29
30 virtual SCT_RDO_Container* createTransient(const SCT_RDO_Container_p0* persObj, MsgStream& log);
31
32 // ID helper can't be used in the constructor, need initialize()
33 void initialize(const SCT_ID* idhelper) { m_sctId = idhelper; }
34};
35
36#endif/*SCT_RDO_CONTAINERCNV_P0_H*/
An STL vector of pointers that by default owns its pointed-to elements.
DataVector< InDetRawDataCollection< SCT1_RawData > > SCT_RDO_Container_p0
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Derived DataVector<T>.
Definition DataVector.h:795
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
void initialize(const SCT_ID *idhelper)
virtual void transToPers(const SCT_RDO_Container *, SCT_RDO_Container_p0 *, MsgStream &)
virtual SCT_RDO_Container * createTransient(const SCT_RDO_Container_p0 *persObj, MsgStream &log)
virtual void persToTrans(const SCT_RDO_Container_p0 *, SCT_RDO_Container *, MsgStream &)