ATLAS Offline Software
MdtPrepDataContainerCnv_p2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MDTPREPDATACONTAINERCNV_P2_H
6 #define MDTPREPDATACONTAINERCNV_P2_H
7 
11 #include "GaudiKernel/ToolHandle.h"
13 
14 
15 #include <iostream>
16 
17 class MdtIdHelper;
18 
19 namespace Muon{
22 class MdtPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase<Muon::MdtPrepDataContainer, Muon::MdtPrepDataContainer_p2>
23 {
24 public:
26 
27  virtual void persToTrans(const Muon::MdtPrepDataContainer_p2* persCont,
28  Muon::MdtPrepDataContainer* transCont,
29  MsgStream &log) ;
30  virtual void transToPers(const Muon::MdtPrepDataContainer* transCont,
32  MsgStream &log) ;
33 
35 
36 
37 private:
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  StatusCode initialize(MsgStream &log);
44 };
45 }
46 
47 
48 #endif
49 
50 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::MdtPrepDataContainerCnv_p2::initialize
StatusCode initialize(MsgStream &log)
Definition: MdtPrepDataContainerCnv_p2.cxx:23
TPConverterBase
Definition: TPConverter.h:738
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MdtPrepDataContainerCnv_p2
Class to handle the conversion of the transient MdtPrepDataContainer into its persistent representati...
Definition: MdtPrepDataContainerCnv_p2.h:23
Muon::MdtPrepDataContainerCnv_p2::m_MdtId
const MdtIdHelper * m_MdtId
Definition: MdtPrepDataContainerCnv_p2.h:40
IEventCnvSuperTool.h
MdtPrepDataContainer.h
MuonPRD_Container_p2.h
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:51
Muon::MdtPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: MdtPrepDataContainerCnv_p2.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
MdtIdHelper
Definition: MdtIdHelper.h:61
Muon::MdtPrepDataContainerCnv_p2::getReadOutElement
const MuonGM::MdtReadoutElement * getReadOutElement(const Identifier &id) const
Definition: MdtPrepDataContainerCnv_p2.cxx:40
Muon::MdtPrepDataContainerCnv_p2::MdtPrepDataContainerCnv_p2
MdtPrepDataContainerCnv_p2()=default
Muon::MuonPRD_Container_p2
Class to contain the Muon Prep Raw Data.
Definition: MuonPRD_Container_p2.h:26
Muon::MdtPrepDataContainerCnv_p2::createTransient
virtual Muon::MdtPrepDataContainer * createTransient(const Muon::MdtPrepDataContainer_p2 *persObj, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p2.cxx:187
Muon::MdtPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: MdtPrepDataContainerCnv_p2.h:41
Muon::MdtPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const Muon::MdtPrepDataContainer *transCont, Muon::MdtPrepDataContainer_p2 *persCont, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p2.cxx:46
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MdtPrepDataContainerCnv_p2::persToTrans
virtual void persToTrans(const Muon::MdtPrepDataContainer_p2 *persCont, Muon::MdtPrepDataContainer *transCont, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p2.cxx:108
Identifier
Definition: IdentifierFieldParser.cxx:14