ATLAS Offline Software
TgcPrepDataContainerCnv_p1.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TGCPREPDATACONTAINERCNV_P1_H
6 #define TGCPREPDATACONTAINERCNV_P1_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: TgcPrepDataContainerCnv_p1.h
11 //
12 //-----------------------------------------------------------------------------
13 
17 #include "GaudiKernel/ToolHandle.h"
19 
20 
21 class MsgStream;
22 class StoreGateSvc;
23 class TgcIdHelper;
24 
25 namespace Muon{
26  class TgcPrepDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase< Muon::TgcPrepDataContainer, 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::TgcPrepDataContainer* createTransient(const Muon::MuonPRD_Container_p1* persObj, MsgStream& log);
36  private:
37  StatusCode initialize(MsgStream &log);
38 
39  const MuonGM::TgcReadoutElement* getReadOutElement(const Identifier& id ) const;
40  const TgcIdHelper *m_TgcId{nullptr};
42  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
43  bool m_isInitialized{false};
44 
45 
46  };
47 
48 }
49 #endif
50 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::TgcPrepDataContainerCnv_p1::PERS
Muon::MuonPRD_Container_p1 PERS
Definition: TgcPrepDataContainerCnv_p1.h:30
Muon::TgcPrepDataContainerCnv_p1::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p1.cxx:73
TgcIdHelper
Definition: TgcIdHelper.h:50
TPConverterBase
Definition: TPConverter.h:738
Muon::TgcPrepDataContainerCnv_p1::m_TgcId
const TgcIdHelper * m_TgcId
Definition: TgcPrepDataContainerCnv_p1.h:40
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::TgcPrepDataContainerCnv_p1::m_storeGate
StoreGateSvc * m_storeGate
Definition: TgcPrepDataContainerCnv_p1.h:41
MuonPRD_Container_p1.h
IEventCnvSuperTool.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
Muon::TgcPrepDataContainerCnv_p1::getReadOutElement
const MuonGM::TgcReadoutElement * getReadOutElement(const Identifier &id) const
Definition: TgcPrepDataContainerCnv_p1.cxx:68
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
TgcPrepDataContainer.h
MuonGM::TgcReadoutElement
A TgcReadoutElement corresponds to a single TGC chamber; therefore typically a TGC station contains s...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/TgcReadoutElement.h:42
Muon::TgcPrepDataContainerCnv_p1::createTransient
virtual Muon::TgcPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p1.cxx:190
Muon::TgcPrepDataContainerCnv_p1
Definition: TgcPrepDataContainerCnv_p1.h:28
Muon::TgcPrepDataContainerCnv_p1::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p1.cxx:126
Muon::TgcPrepDataContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: TgcPrepDataContainerCnv_p1.h:43
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::TgcPrepDataContainerCnv_p1::TgcPrepDataContainerCnv_p1
TgcPrepDataContainerCnv_p1()=default
Muon::TgcPrepDataContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: TgcPrepDataContainerCnv_p1.cxx:28
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14
Muon::TgcPrepDataContainerCnv_p1::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: TgcPrepDataContainerCnv_p1.h:42
Muon::TgcPrepDataContainerCnv_p1::TRANS
Muon::TgcPrepDataContainer TRANS
Definition: TgcPrepDataContainerCnv_p1.h:31