ATLAS Offline Software
MdtPrepDataContainerCnv_p1.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 MDTPREPDATACONTAINERCNV_P1_H
6 #define MDTPREPDATACONTAINERCNV_P1_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: MdtPrepDataContainerCnv_p1.h
11 //
12 //-----------------------------------------------------------------------------
13 
17 #include "GaudiKernel/ToolHandle.h"
19 
20 
21 class MsgStream;
22 class MdtIdHelper;
23 
24 namespace Muon{
25  class MdtPrepDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase< Muon::MdtPrepDataContainer, Muon::MuonPRD_Container_p1 >
26 
27  {
28  public:
32  virtual void persToTrans(const PERS* persCont, TRANS* transCont, MsgStream &log);
33  virtual void transToPers(const TRANS* transCont, PERS* persCont, MsgStream &log);
34  virtual Muon::MdtPrepDataContainer* createTransient(const Muon::MuonPRD_Container_p1* persObj, MsgStream& log);
35  private:
36  StatusCode initialize(MsgStream &log);
37 
38  const MuonGM::MdtReadoutElement* getReadOutElement(const Identifier& id ) const;
39 
40  const MdtIdHelper *m_MdtId{nullptr};
41  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
42  bool m_isInitialized{false};
43  };
44 
45 }
46 #endif
47 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::MdtPrepDataContainerCnv_p1
Definition: MdtPrepDataContainerCnv_p1.h:27
Muon::MdtPrepDataContainerCnv_p1::MdtPrepDataContainerCnv_p1
MdtPrepDataContainerCnv_p1()=default
Muon::MdtPrepDataContainerCnv_p1::TRANS
Muon::MdtPrepDataContainer TRANS
Definition: MdtPrepDataContainerCnv_p1.h:30
TPConverterBase
Definition: TPConverter.h:738
Muon::MdtPrepDataContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: MdtPrepDataContainerCnv_p1.cxx:28
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MdtPrepDataContainerCnv_p1::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p1.cxx:49
Muon::MdtPrepDataContainerCnv_p1::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p1.cxx:107
MuonPRD_Container_p1.h
IEventCnvSuperTool.h
MdtPrepDataContainer.h
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:51
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
Muon::MdtPrepDataContainerCnv_p1::m_MdtId
const MdtIdHelper * m_MdtId
Definition: MdtPrepDataContainerCnv_p1.h:40
MdtIdHelper
Definition: MdtIdHelper.h:61
Muon::MdtPrepDataContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: MdtPrepDataContainerCnv_p1.h:42
Muon::MdtPrepDataContainerCnv_p1::getReadOutElement
const MuonGM::MdtReadoutElement * getReadOutElement(const Identifier &id) const
Definition: MdtPrepDataContainerCnv_p1.cxx:44
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MdtPrepDataContainerCnv_p1::PERS
Muon::MuonPRD_Container_p1 PERS
Definition: MdtPrepDataContainerCnv_p1.h:29
Muon::MdtPrepDataContainerCnv_p1::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: MdtPrepDataContainerCnv_p1.h:41
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14
Muon::MdtPrepDataContainerCnv_p1::createTransient
virtual Muon::MdtPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p1.cxx:173
Identifier
Definition: IdentifierFieldParser.cxx:14