ATLAS Offline Software
TgcPrepDataContainerCnv_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 TgcPREPDATACONTAINERCNV_P2_H
6 #define TgcPREPDATACONTAINERCNV_P2_H
7 
11 #include "GaudiKernel/ToolHandle.h"
13 
14 #include <iostream>
15 
16 class TgcIdHelper;
17 
18 
19 namespace Muon{
22 class TgcPrepDataContainerCnv_p2 : public T_AthenaPoolTPCnvBase<Muon::TgcPrepDataContainer, Muon::TgcPrepDataContainer_p2>
23 {
24 public:
26 
27  virtual void persToTrans(const Muon::TgcPrepDataContainer_p2* persCont,
28  Muon::TgcPrepDataContainer* transCont,
29  MsgStream &log) ;
30  virtual void transToPers(const Muon::TgcPrepDataContainer* transCont,
32  MsgStream &log) ;
33 
35 
36 
37 private:
38  const MuonGM::TgcReadoutElement* getReadOutElement(const Identifier& id ) const;
39  const TgcIdHelper *m_TgcId{nullptr};
40  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
41  bool m_isInitialized{false};
42  StatusCode initialize(MsgStream &log);
43 };
44 }
45 
46 
47 #endif
48 
49 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
Muon::TgcPrepDataContainerCnv_p2::getReadOutElement
const MuonGM::TgcReadoutElement * getReadOutElement(const Identifier &id) const
Definition: TgcPrepDataContainerCnv_p2.cxx:38
TgcIdHelper
Definition: TgcIdHelper.h:50
TPConverterBase
Definition: TPConverter.h:738
Muon::TgcPrepDataContainerCnv_p2::m_TgcId
const TgcIdHelper * m_TgcId
Definition: TgcPrepDataContainerCnv_p2.h:39
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
IEventCnvSuperTool.h
MuonPRD_Container_p2.h
Muon::TgcPrepDataContainerCnv_p2::m_isInitialized
bool m_isInitialized
Definition: TgcPrepDataContainerCnv_p2.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
TgcPrepDataContainer.h
Muon::TgcPrepDataContainerCnv_p2::initialize
StatusCode initialize(MsgStream &log)
Definition: TgcPrepDataContainerCnv_p2.cxx:22
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_p2
Class to handle the conversion of the transient TgcPrepDataContainer into its persistent representati...
Definition: TgcPrepDataContainerCnv_p2.h:23
Muon::MuonPRD_Container_p2
Class to contain the Muon Prep Raw Data.
Definition: MuonPRD_Container_p2.h:26
Muon::TgcPrepDataContainerCnv_p2::TgcPrepDataContainerCnv_p2
TgcPrepDataContainerCnv_p2()=default
Muon::TgcPrepDataContainerCnv_p2::transToPers
virtual void transToPers(const Muon::TgcPrepDataContainer *transCont, Muon::TgcPrepDataContainer_p2 *persCont, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p2.cxx:43
Muon::TgcPrepDataContainerCnv_p2::persToTrans
virtual void persToTrans(const Muon::TgcPrepDataContainer_p2 *persCont, Muon::TgcPrepDataContainer *transCont, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p2.cxx:136
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::TgcPrepDataContainerCnv_p2::createTransient
virtual Muon::TgcPrepDataContainer * createTransient(const Muon::TgcPrepDataContainer_p2 *persObj, MsgStream &log)
Definition: TgcPrepDataContainerCnv_p2.cxx:218
Muon::TgcPrepDataContainerCnv_p2::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: TgcPrepDataContainerCnv_p2.h:40
Identifier
Definition: IdentifierFieldParser.cxx:14