ATLAS Offline Software
RpcPrepDataContainerCnv_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 RPCPREPDATACONTAINERCNV_P1_H
6 #define RPCPREPDATACONTAINERCNV_P1_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: RpcPrepDataContainerCnv_p1.h
11 //
12 //-----------------------------------------------------------------------------
13 
15 
18 #include "GaudiKernel/ToolHandle.h"
20 
21 class MsgStream;
22 class RpcIdHelper;
23 
24 namespace Muon{
25  class RpcPrepDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase< Muon::RpcPrepDataContainer, 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::RpcPrepDataContainer* createTransient(const Muon::MuonPRD_Container_p1* persObj, MsgStream& log);
35  private:
36  StatusCode initialize(MsgStream &log);
37 
38  const MuonGM::RpcReadoutElement* getReadOutElement(const Identifier& id ) const;
39  const RpcIdHelper *m_RpcId{nullptr};
40  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
41  bool m_isInitialized{false};
42  };
43 
44 }
45 #endif
46 
Muon::RpcPrepDataContainerCnv_p1::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p1.cxx:50
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::RpcPrepDataContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: RpcPrepDataContainerCnv_p1.cxx:29
Muon::RpcPrepDataContainerCnv_p1::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: RpcPrepDataContainerCnv_p1.h:40
TPConverterBase
Definition: TPConverter.h:738
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:55
RpcPrepDataContainer.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::RpcPrepDataContainerCnv_p1::PERS
Muon::MuonPRD_Container_p1 PERS
Definition: RpcPrepDataContainerCnv_p1.h:29
Muon::RpcPrepDataContainerCnv_p1::TRANS
Muon::RpcPrepDataContainer TRANS
Definition: RpcPrepDataContainerCnv_p1.h:30
RpcIdHelper
Definition: RpcIdHelper.h:51
Muon::RpcPrepDataContainerCnv_p1::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p1.cxx:103
MuonPRD_Container_p1.h
Muon::RpcPrepDataContainerCnv_p1::getReadOutElement
const MuonGM::RpcReadoutElement * getReadOutElement(const Identifier &id) const
Definition: RpcPrepDataContainerCnv_p1.cxx:45
IEventCnvSuperTool.h
Muon::RpcPrepDataContainerCnv_p1::RpcPrepDataContainerCnv_p1
RpcPrepDataContainerCnv_p1()=default
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
Muon::RpcPrepDataContainerCnv_p1::m_RpcId
const RpcIdHelper * m_RpcId
Definition: RpcPrepDataContainerCnv_p1.h:39
Muon::RpcPrepDataContainerCnv_p1
Definition: RpcPrepDataContainerCnv_p1.h:27
Muon::RpcPrepDataContainerCnv_p1::createTransient
virtual Muon::RpcPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p1.cxx:182
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14
Muon::RpcPrepDataContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: RpcPrepDataContainerCnv_p1.h:41
Identifier
Definition: IdentifierFieldParser.cxx:14