ATLAS Offline Software
TRT_DriftCircleContainerCnv_p0.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*
3  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 #ifndef TRT_DRIFTCIRCLECONTAINERCNV_P0_H
7 #define TRT_DRIFTCIRCLECONTAINERCNV_P0_H
8 
16 
17 
18 class TRT_ID;
19 
20 class MsgStream;
21 class TRT_DriftCircleContainerCnv_p0 : public T_AthenaPoolTPCnvBase<InDet::TRT_DriftCircleContainer, TRT_DriftCircleContainer_p0> {
22  private:
23  const TRT_ID* m_trtId;
25  public:
26 
27  // CID 106239 fix
28  TRT_DriftCircleContainerCnv_p0() : m_trtId(nullptr), m_trtDetEleContKey("TRT_DetElementContainer") {}
29 
30  virtual void persToTrans(const TRT_DriftCircleContainer_p0*, InDet::TRT_DriftCircleContainer*, MsgStream&) override {
31  // everything is done in createTransient()
32  }
33 
34  virtual void transToPers(const InDet::TRT_DriftCircleContainer*, TRT_DriftCircleContainer_p0*, MsgStream&) override {
35  throw std::runtime_error("Writing TRT PRDs in the old format is not supported");
36  }
37 
38  virtual InDet::TRT_DriftCircleContainer* createTransient(const TRT_DriftCircleContainer_p0* /*persObj*/, MsgStream& /*log*/) override
39  { std::abort(); }
41 
42  // ID helper can't be used in the constructor, need initialize()
43  StatusCode initialize( MsgStream &log );
44 };
45 
46 #endif/*TRT_RDO_CONTAINERCNV_P0_H*/
TRT_DriftCircleContainer_p0
DataVector< Trk::PrepRawDataCollection< InDet::TRT_DriftCircle > > TRT_DriftCircleContainer_p0
Definition: TRT_DriftCircleContainerCnv_p0.h:15
TRT_DetElementContainer.h
TPConverterBase
Definition: TPConverter.h:738
TRT_DriftCircleContainerCnv_p0::m_trtDetEleContKey
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_trtDetEleContKey
Definition: TRT_DriftCircleContainerCnv_p0.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
TRT_DriftCircleContainerCnv_p0::m_trtId
const TRT_ID * m_trtId
Definition: TRT_DriftCircleContainerCnv_p0.h:23
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
ReadCondHandleKey.h
InDet::TRT_DriftCircleContainer
Trk::PrepRawDataContainer< TRT_DriftCircleCollection > TRT_DriftCircleContainer
Definition: TRT_DriftCircleContainer.h:27
TRT_DriftCircleContainer.h
TRT_DriftCircleContainerCnv_p0::TRT_DriftCircleContainerCnv_p0
TRT_DriftCircleContainerCnv_p0()
Definition: TRT_DriftCircleContainerCnv_p0.h:28
TRT_DriftCircleContainerCnv_p0::createTransient
virtual InDet::TRT_DriftCircleContainer * createTransient(const TRT_DriftCircleContainer_p0 *, MsgStream &) override
Definition: TRT_DriftCircleContainerCnv_p0.h:38
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer >
TRT_DriftCircleContainerCnv_p0::persToTrans
virtual void persToTrans(const TRT_DriftCircleContainer_p0 *, InDet::TRT_DriftCircleContainer *, MsgStream &) override
Definition: TRT_DriftCircleContainerCnv_p0.h:30
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
TRT_ID
Definition: TRT_ID.h:84
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TRT_DriftCircleContainerCnv_p0
Definition: TRT_DriftCircleContainerCnv_p0.h:21
TRT_DriftCircleContainerCnv_p0::initialize
StatusCode initialize(MsgStream &log)
Definition: TRT_DriftCircleContainerCnv_p0.cxx:26
StoreGateSvc.h
TRT_DriftCircleContainerCnv_p0::transToPers
virtual void transToPers(const InDet::TRT_DriftCircleContainer *, TRT_DriftCircleContainer_p0 *, MsgStream &) override
Definition: TRT_DriftCircleContainerCnv_p0.h:34