ATLAS Offline Software
PixelClusterContainerCnv_p0.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef PIXELCLUSTERCONTAINERCNV_P0_H
6 #define PIXELCLUSTERCONTAINERCNV_P0_H
7 
13 
15 
16 
17 class PixelID;
18 class MsgStream;
19 
20 class PixelClusterContainerCnv_p0 : public T_AthenaPoolTPCnvBase<InDet::PixelClusterContainer, PixelClusterContainer_p0> {
21  public:
23 
24  virtual void persToTrans(const PixelClusterContainer_p0*, InDet::PixelClusterContainer*, MsgStream&) override {
25  // everything is done in createTransient()
26  }
27 
28  virtual void transToPers(const InDet::PixelClusterContainer*, PixelClusterContainer_p0*, MsgStream&) override {
29  throw std::runtime_error("Writing Pixel PRDs in the old format is not supported");
30  }
31 
32  virtual InDet::PixelClusterContainer* createTransient(const PixelClusterContainer_p0* /*persObj*/, MsgStream& /*log*/) override
33  { std::abort(); }
35 
36  // ID helper can't be used in the constructor, need initialize()
37  StatusCode initialize( MsgStream &log );
38 
39  private:
40  const PixelID* m_pixId{nullptr};
42 };
43 
44 #endif
45 
PixelClusterContainerCnv_p0::PixelClusterContainerCnv_p0
PixelClusterContainerCnv_p0()
Definition: PixelClusterContainerCnv_p0.cxx:28
TPConverterBase
Definition: TPConverter.h:738
PixelClusterContainerCnv_p0::m_pixId
const PixelID * m_pixId
Definition: PixelClusterContainerCnv_p0.h:40
InDet::PixelClusterContainer
Trk::PrepRawDataContainer< PixelClusterCollection > PixelClusterContainer
Definition: InnerDetector/InDetRecEvent/InDetPrepRawData/InDetPrepRawData/PixelClusterContainer.h:28
PixelClusterContainerCnv_p0
Definition: PixelClusterContainerCnv_p0.h:20
PixelClusterContainerCnv_p0::createTransient
virtual InDet::PixelClusterContainer * createTransient(const PixelClusterContainer_p0 *, MsgStream &) override
Definition: PixelClusterContainerCnv_p0.h:32
PixelClusterContainerCnv_p0::initialize
StatusCode initialize(MsgStream &log)
Definition: PixelClusterContainerCnv_p0.cxx:33
PixelClusterContainerCnv_p0::persToTrans
virtual void persToTrans(const PixelClusterContainer_p0 *, InDet::PixelClusterContainer *, MsgStream &) override
Definition: PixelClusterContainerCnv_p0.h:24
PixelClusterContainerCnv_p0::m_pixelDetEleCollKey
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection > m_pixelDetEleCollKey
Definition: PixelClusterContainerCnv_p0.h:41
PixelClusterContainer_p0
DataVector< Trk::PrepRawDataCollection< InDet::PixelCluster > > PixelClusterContainer_p0
Definition: PixelClusterContainerCnv_p0.h:14
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ReadCondHandleKey.h
PixelClusterContainer.h
SiDetectorElementCollection.h
SG::ReadCondHandleKey< InDetDD::SiDetectorElementCollection >
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
PixelID
Definition: PixelID.h:67
PixelClusterContainerCnv_p0::transToPers
virtual void transToPers(const InDet::PixelClusterContainer *, PixelClusterContainer_p0 *, MsgStream &) override
Definition: PixelClusterContainerCnv_p0.h:28