ATLAS Offline Software
RpcPrepDataContainerCnv_p2.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_p2_H
6 #define RPCPREPDATACONTAINERCNV_p2_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: RpcPrepDataContainerCnv_p2.h
11 //
12 //-----------------------------------------------------------------------------
13 
15 
18 #include "GaudiKernel/ToolHandle.h"
20 
21 
22 class MsgStream;
23 class RpcIdHelper;
24 
25 namespace Muon{
26  class RpcPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase< Muon::RpcPrepDataContainer, Muon::MuonPRD_Container_p1 >
27 
28  {
29  public:
33  virtual void persToTrans(const PERS* persCont, TRANS* transCont, MsgStream &log);
34  virtual void transToPers(const TRANS* transCont, PERS* persCont, MsgStream &log);
35  virtual Muon::RpcPrepDataContainer* createTransient(const Muon::MuonPRD_Container_p1* persObj, MsgStream& log);
36  private:
37  StatusCode initialize(MsgStream &log);
38 
39  const MuonGM::RpcReadoutElement* getReadOutElement(const Identifier& id ) const;
40  const RpcIdHelper *m_RpcId{nullptr};
41  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
42  bool m_isInitialized{false};
43  };
44 
45 }
46 #endif
47 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::RpcPrepDataContainerCnv_p2::RpcPrepDataContainerCnv_p2
RpcPrepDataContainerCnv_p2()=default
Muon::RpcPrepDataContainerCnv_p2::PERS
Muon::MuonPRD_Container_p1 PERS
Definition: RpcPrepDataContainerCnv_p2.h:30
Muon::RpcPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: RpcPrepDataContainerCnv_p2.h:42
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
Muon::RpcPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: RpcPrepDataContainerCnv_p2.h:41
RpcPrepDataContainer.h
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
RpcIdHelper
Definition: RpcIdHelper.h:51
Muon::RpcPrepDataContainerCnv_p2::initialize
StatusCode initialize(MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:28
Muon::RpcPrepDataContainerCnv_p2::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:101
MuonPRD_Container_p1.h
IEventCnvSuperTool.h
Muon::RpcPrepDataContainerCnv_p2::getReadOutElement
const MuonGM::RpcReadoutElement * getReadOutElement(const Identifier &id) const
Definition: RpcPrepDataContainerCnv_p2.cxx:44
Muon::RpcPrepDataContainerCnv_p2::TRANS
Muon::RpcPrepDataContainer TRANS
Definition: RpcPrepDataContainerCnv_p2.h:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
Muon::RpcPrepDataContainerCnv_p2
Definition: RpcPrepDataContainerCnv_p2.h:28
Muon::RpcPrepDataContainerCnv_p2::m_RpcId
const RpcIdHelper * m_RpcId
Definition: RpcPrepDataContainerCnv_p2.h:40
Muon::RpcPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:49
Muon::RpcPrepDataContainerCnv_p2::createTransient
virtual Muon::RpcPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:166
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14
Identifier
Definition: IdentifierFieldParser.cxx:14