ATLAS Offline Software
RpcPrepDataContainerCnv_p2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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 StoreGateSvc;
24 class RpcIdHelper;
25 
26 namespace Muon{
27  class RpcPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase< Muon::RpcPrepDataContainer, Muon::MuonPRD_Container_p1 >
28 
29  {
30  public:
34  virtual void persToTrans(const PERS* persCont, TRANS* transCont, MsgStream &log);
35  virtual void transToPers(const TRANS* transCont, PERS* persCont, MsgStream &log);
36  virtual Muon::RpcPrepDataContainer* createTransient(const Muon::MuonPRD_Container_p1* persObj, MsgStream& log);
37  private:
38  StatusCode initialize(MsgStream &log);
39 
40  const MuonGM::RpcReadoutElement* getReadOutElement(const Identifier& id ) const;
41  const RpcIdHelper *m_RpcId{nullptr};
43  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
44  bool m_isInitialized{false};
45  };
46 
47 }
48 #endif
49 
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:31
Muon::RpcPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: RpcPrepDataContainerCnv_p2.h:44
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:54
Muon::RpcPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: RpcPrepDataContainerCnv_p2.h:43
RpcPrepDataContainer.h
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
RpcIdHelper
Definition: RpcIdHelper.h:51
Muon::RpcPrepDataContainerCnv_p2::initialize
StatusCode initialize(MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:27
Muon::RpcPrepDataContainerCnv_p2::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:124
MuonPRD_Container_p1.h
Muon::RpcPrepDataContainerCnv_p2::m_storeGate
StoreGateSvc * m_storeGate
Definition: RpcPrepDataContainerCnv_p2.h:42
IEventCnvSuperTool.h
Muon::RpcPrepDataContainerCnv_p2::getReadOutElement
const MuonGM::RpcReadoutElement * getReadOutElement(const Identifier &id) const
Definition: RpcPrepDataContainerCnv_p2.cxx:67
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
Muon::RpcPrepDataContainerCnv_p2::TRANS
Muon::RpcPrepDataContainer TRANS
Definition: RpcPrepDataContainerCnv_p2.h:32
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::RpcPrepDataContainerCnv_p2
Definition: RpcPrepDataContainerCnv_p2.h:29
Muon::RpcPrepDataContainerCnv_p2::m_RpcId
const RpcIdHelper * m_RpcId
Definition: RpcPrepDataContainerCnv_p2.h:41
Muon::RpcPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:72
Muon::RpcPrepDataContainerCnv_p2::createTransient
virtual Muon::RpcPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: RpcPrepDataContainerCnv_p2.cxx:189
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14