ATLAS Offline Software
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 
16 class SCT_ID;
17 class MsgStream;
18 
19 class 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 
39 
40  private:
41  const SCT_ID* m_sctId;
43 };
44 
45 #endif
SCT_ClusterContainerCnv_p0::initialize
StatusCode initialize(MsgStream &log)
Definition: SCT_ClusterContainerCnv_p0.cxx:35
SCT_ClusterContainerCnv_p0::SCT_ClusterContainerCnv_p0
SCT_ClusterContainerCnv_p0()
Definition: SCT_ClusterContainerCnv_p0.cxx:29
SCT_ClusterContainer_p0
DataVector< Trk::PrepRawDataCollection< InDet::SCT_Cluster > > SCT_ClusterContainer_p0
Definition: SCT_ClusterContainerCnv_p0.h:14
SCT_ClusterContainerCnv_p0::transToPers
virtual void transToPers(const InDet::SCT_ClusterContainer *, SCT_ClusterContainer_p0 *, MsgStream &) override
Definition: SCT_ClusterContainerCnv_p0.h:30
TPConverterBase
Definition: TPConverter.h:738
SCT_ClusterContainerCnv_p0::m_sctId
const SCT_ID * m_sctId
Definition: SCT_ClusterContainerCnv_p0.h:41
InDet::SCT_ClusterContainer
Trk::PrepRawDataContainer< SCT_ClusterCollection > SCT_ClusterContainer
Definition: SCT_ClusterContainer.h:27
SCT_ClusterContainerCnv_p0
Definition: SCT_ClusterContainerCnv_p0.h:19
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
SCT_ClusterContainerCnv_p0::persToTrans
virtual void persToTrans(const SCT_ClusterContainer_p0 *, InDet::SCT_ClusterContainer *, MsgStream &) override
Definition: SCT_ClusterContainerCnv_p0.h:26
SCT_ClusterContainerCnv_p0::createTransient
virtual InDet::SCT_ClusterContainer * createTransient(const SCT_ClusterContainer_p0 *, MsgStream &) override
Definition: SCT_ClusterContainerCnv_p0.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ReadCondHandleKey.h
SCT_ClusterContainerCnv_p0::m_SCTDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_SCTDetEleCollKey
Definition: SCT_ClusterContainerCnv_p0.h:42
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
SCT_ID
Definition: SCT_ID.h:68
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
SCT_ClusterContainer.h