ATLAS Offline Software
MMPrepDataContainerCnv_p1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MMPREPDATACONTAINERCNV_p1_H
6 #define MMPREPDATACONTAINERCNV_p1_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_p1 : public T_AthenaPoolTPCnvBase<Muon::MMPrepDataContainer, Muon::MMPrepDataContainer_p1>
25 {
26 public:
28 
29  virtual void persToTrans(const Muon::MMPrepDataContainer_p1* 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};
42  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
43  bool m_isInitialized{false};
44  StatusCode initialize(MsgStream &log);
45 };
46 }
47 
48 
49 #endif
50 
51 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::MMPrepDataContainerCnv_p1::m_MMId
const MmIdHelper * m_MMId
Definition: MMPrepDataContainerCnv_p1.h:41
TPConverterBase
Definition: TPConverter.h:738
MMPrepDataContainer.h
Muon::MMPrepDataContainerCnv_p1::createTransient
virtual Muon::MMPrepDataContainer * createTransient(const Muon::MMPrepDataContainer_p1 *persObj, MsgStream &log)
Definition: MMPrepDataContainerCnv_p1.cxx:206
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
IEventCnvSuperTool.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
MuonPRD_Container_p2.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
Muon::MMPrepDataContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: MMPrepDataContainerCnv_p1.cxx:22
Muon::MMPrepDataContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: MMPrepDataContainerCnv_p1.h:43
Muon::MuonPRD_Container_p2
Class to contain the Muon Prep Raw Data.
Definition: MuonPRD_Container_p2.h:26
Muon::MMPrepDataContainerCnv_p1
Class to handle the conversion of the transient MMPrepDataContainer into its persistent representatio...
Definition: MMPrepDataContainerCnv_p1.h:25
Muon::MMPrepDataContainerCnv_p1::MMPrepDataContainerCnv_p1
MMPrepDataContainerCnv_p1()=default
MmIdHelper
Definition: MmIdHelper.h:54
Muon::MMPrepDataContainerCnv_p1::transToPers
virtual void transToPers(const Muon::MMPrepDataContainer *transCont, Muon::MMPrepDataContainer_p1 *persCont, MsgStream &log)
Definition: MMPrepDataContainerCnv_p1.cxx:43
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:25
Muon::MMPrepDataContainerCnv_p1::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: MMPrepDataContainerCnv_p1.h:42
Muon::MMPrepDataContainerCnv_p1::persToTrans
virtual void persToTrans(const Muon::MMPrepDataContainer_p1 *persCont, Muon::MMPrepDataContainer *transCont, MsgStream &log)
Definition: MMPrepDataContainerCnv_p1.cxx:122
Muon::MMPrepDataContainerCnv_p1::getReadOutElement
const MuonGM::MMReadoutElement * getReadOutElement(const Identifier &id) const
Definition: MMPrepDataContainerCnv_p1.cxx:38
Identifier
Definition: IdentifierFieldParser.cxx:14