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 StoreGateSvc;
18 class MdtIdHelper;
19 
20 namespace Muon{
23 class MdtPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase<Muon::MdtPrepDataContainer, Muon::MdtPrepDataContainer_p2>
24 {
25 public:
27 
28  virtual void persToTrans(const Muon::MdtPrepDataContainer_p2* persCont,
29  Muon::MdtPrepDataContainer* transCont,
30  MsgStream &log) ;
31  virtual void transToPers(const Muon::MdtPrepDataContainer* transCont,
33  MsgStream &log) ;
34 
36 
37 
38 private:
39  const MuonGM::MdtReadoutElement* getReadOutElement(const Identifier& id ) const;
40 
41  const MdtIdHelper *m_MdtId{nullptr};
43  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
44  bool m_isInitialized{false};
45  StatusCode initialize(MsgStream &log);
46 };
47 }
48 
49 
50 #endif
51 
52 
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:22
TPConverterBase
Definition: TPConverter.h:738
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::MdtPrepDataContainerCnv_p2
Class to handle the conversion of the transient MdtPrepDataContainer into its persistent representati...
Definition: MdtPrepDataContainerCnv_p2.h:24
Muon::MdtPrepDataContainerCnv_p2::m_MdtId
const MdtIdHelper * m_MdtId
Definition: MdtPrepDataContainerCnv_p2.h:41
IEventCnvSuperTool.h
MdtPrepDataContainer.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
Muon::MdtPrepDataContainerCnv_p2::m_storeGate
StoreGateSvc * m_storeGate
Definition: MdtPrepDataContainerCnv_p2.h:42
MuonPRD_Container_p2.h
MuonGM::MdtReadoutElement
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MdtReadoutElement.h:50
Muon::MdtPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: MdtPrepDataContainerCnv_p2.h:44
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
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:63
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:210
Muon::MdtPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: MdtPrepDataContainerCnv_p2.h:43
Muon::MdtPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const Muon::MdtPrepDataContainer *transCont, Muon::MdtPrepDataContainer_p2 *persCont, MsgStream &log)
Definition: MdtPrepDataContainerCnv_p2.cxx:69
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:131