ATLAS Offline Software
MMPrepDataContainerCnv_p2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MMPREPDATACONTAINERCNV_p2_H
6 #define MMPREPDATACONTAINERCNV_p2_H
7 
11 #include "GaudiKernel/ToolHandle.h"
13 
14 
15 #include <iostream>
16 
17 class StoreGateSvc;
18 class MmIdHelper;
19 
20 
21 namespace Muon{
24 class MMPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase<Muon::MMPrepDataContainer, Muon::MMPrepDataContainer_p2>
25 {
26 public:
28 
29  virtual void persToTrans(const Muon::MMPrepDataContainer_p2* persCont,
30  Muon::MMPrepDataContainer* transCont,
31  MsgStream &log) ;
32  virtual void transToPers(const Muon::MMPrepDataContainer* transCont,
34  MsgStream &log) ;
35 
37 
38 
39 private:
40  const MuonGM::MMReadoutElement* getReadOutElement(const Identifier& id ) const;
41  const MmIdHelper *m_MMId{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::MMPrepDataContainerCnv_p2::createTransient
virtual Muon::MMPrepDataContainer * createTransient(const Muon::MMPrepDataContainer_p2 *persObj, MsgStream &log)
Definition: MMPrepDataContainerCnv_p2.cxx:229
Muon::MMPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: MMPrepDataContainerCnv_p2.h:44
Muon::MMPrepDataContainerCnv_p2::initialize
StatusCode initialize(MsgStream &log)
Definition: MMPrepDataContainerCnv_p2.cxx:21
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::MMPrepDataContainerCnv_p2::m_storeGate
StoreGateSvc * m_storeGate
Definition: MMPrepDataContainerCnv_p2.h:42
TPConverterBase
Definition: TPConverter.h:738
Muon::MMPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const Muon::MMPrepDataContainer *transCont, Muon::MMPrepDataContainer_p2 *persCont, MsgStream &log)
Definition: MMPrepDataContainerCnv_p2.cxx:66
MMPrepDataContainer.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
IEventCnvSuperTool.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
MuonPRD_Container_p2.h
Muon::MMPrepDataContainerCnv_p2::getReadOutElement
const MuonGM::MMReadoutElement * getReadOutElement(const Identifier &id) const
Definition: MMPrepDataContainerCnv_p2.cxx:61
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
Muon::MMPrepDataContainerCnv_p2
Class to handle the conversion of the transient MMPrepDataContainer into its persistent representatio...
Definition: MMPrepDataContainerCnv_p2.h:25
Muon::MuonPRD_Container_p2
Class to contain the Muon Prep Raw Data.
Definition: MuonPRD_Container_p2.h:26
Muon::MMPrepDataContainerCnv_p2::m_MMId
const MmIdHelper * m_MMId
Definition: MMPrepDataContainerCnv_p2.h:41
MmIdHelper
Definition: MmIdHelper.h:54
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
MuonGM::MMReadoutElement
An MMReadoutElement corresponds to a single STGC module; therefore typicaly a barrel muon station con...
Definition: MMReadoutElement.h:23
Muon::MMPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: MMPrepDataContainerCnv_p2.h:43
Muon::MMPrepDataContainerCnv_p2::MMPrepDataContainerCnv_p2
MMPrepDataContainerCnv_p2()=default
Muon::MMPrepDataContainerCnv_p2::persToTrans
virtual void persToTrans(const Muon::MMPrepDataContainer_p2 *persCont, Muon::MMPrepDataContainer *transCont, MsgStream &log)
Definition: MMPrepDataContainerCnv_p2.cxx:145