ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ClusterContainerCnv_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_CLUSTERCONTAINERCNV_P0_H
6#define SCT_CLUSTERCONTAINERCNV_P0_H
7
13
15
16class SCT_ID;
17class MsgStream;
18
19class SCT_ClusterContainerCnv_p0 : public T_AthenaPoolTPCnvBase<InDet::SCT_ClusterContainer, SCT_ClusterContainer_p0> {
20 public:
22
23 // ID helper can't be used in the constructor, need initialize()
24 StatusCode initialize( MsgStream& log );
25
26 virtual void persToTrans(const SCT_ClusterContainer_p0*, InDet::SCT_ClusterContainer*, MsgStream&) override {
27 // everything is done in createTransient()
28 }
29
30 virtual void transToPers(const InDet::SCT_ClusterContainer*, SCT_ClusterContainer_p0*, MsgStream&) override {
31 throw std::runtime_error("Writing SCT PRDs in the old format is not supported");
32 }
33
34 virtual InDet::SCT_ClusterContainer* createTransient(const SCT_ClusterContainer_p0* /*persObj*/, MsgStream& /*log*/) override {
35 std::abort();
36 }
37
38 InDet::SCT_ClusterContainer* createTransient(SCT_ClusterContainer_p0* persObj, MsgStream& log);
39
40 private:
43};
44
45#endif
An STL vector of pointers that by default owns its pointed-to elements.
DataVector< Trk::PrepRawDataCollection< InDet::SCT_Cluster > > SCT_ClusterContainer_p0
TPConverterBase< TRANS, PERS > T_AthenaPoolTPCnvBase
Derived DataVector<T>.
Definition DataVector.h:795
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
virtual void persToTrans(const SCT_ClusterContainer_p0 *, InDet::SCT_ClusterContainer *, MsgStream &) override
virtual InDet::SCT_ClusterContainer * createTransient(const SCT_ClusterContainer_p0 *, MsgStream &) override
virtual void transToPers(const InDet::SCT_ClusterContainer *, SCT_ClusterContainer_p0 *, MsgStream &) override
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
void initialize()