ATLAS Offline Software
CscStripPrepDataContainerCnv_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 CSCSTRIPPREPDATACONTAINERCNV_P1_H
6 #define CSCSTRIPPREPDATACONTAINERCNV_P1_H
7 
8 //-----------------------------------------------------------------------------
9 //
10 // file: CscStripPrepDataContainerCnv_p1.h
11 //
12 //-----------------------------------------------------------------------------
13 
17 #include "GaudiKernel/ToolHandle.h"
19 
20 class MsgStream;
21 class CscIdHelper;
22 
23 namespace Muon{
24  class CscStripPrepDataContainerCnv_p1 : public T_AthenaPoolTPCnvBase< Muon::CscStripPrepDataContainer, Muon::MuonPRD_Container_p1 >
25 
26  {
27  public:
31  virtual void persToTrans(const PERS* persCont, TRANS* transCont, MsgStream &log);
32  virtual void transToPers(const TRANS* transCont, PERS* persCont, MsgStream &log);
34  StatusCode initialize(MsgStream &log);
35 
36  private:
37  const MuonGM::CscReadoutElement* getReadOutElement(const Identifier& id ) const;
38  const CscIdHelper *m_cscStripId{nullptr};
39  ToolHandle < Trk::IEventCnvSuperTool > m_eventCnvTool{"Trk::EventCnvSuperTool/EventCnvSuperTool"};
40  bool m_isInitialized{false};
41  };
42 
43 }
44 #endif
45 
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
CscStripPrepDataContainer.h
Muon::CscStripPrepDataContainerCnv_p1
Definition: CscStripPrepDataContainerCnv_p1.h:26
Muon::CscStripPrepDataContainerCnv_p1::TRANS
Muon::CscStripPrepDataContainer TRANS
Definition: CscStripPrepDataContainerCnv_p1.h:29
TPConverterBase
Definition: TPConverter.h:738
Muon::CscStripPrepDataContainerCnv_p1::PERS
Muon::MuonPRD_Container_p1 PERS
Definition: CscStripPrepDataContainerCnv_p1.h:28
Muon::CscStripPrepDataContainerCnv_p1::m_eventCnvTool
ToolHandle< Trk::IEventCnvSuperTool > m_eventCnvTool
Definition: CscStripPrepDataContainerCnv_p1.h:39
Muon::CscStripPrepDataContainerCnv_p1::transToPers
virtual void transToPers(const TRANS *transCont, PERS *persCont, MsgStream &log)
Definition: CscStripPrepDataContainerCnv_p1.cxx:51
MuonGM::CscReadoutElement
Definition: CscReadoutElement.h:56
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:45
Muon::CscStripPrepDataContainerCnv_p1::CscStripPrepDataContainerCnv_p1
CscStripPrepDataContainerCnv_p1()=default
Muon::CscStripPrepDataContainerCnv_p1::persToTrans
virtual void persToTrans(const PERS *persCont, TRANS *transCont, MsgStream &log)
Definition: CscStripPrepDataContainerCnv_p1.cxx:102
MuonPRD_Container_p1.h
IEventCnvSuperTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
T_AthenaPoolTPConverter.h
Muon::CscStripPrepDataContainerCnv_p1::createTransient
virtual Muon::CscStripPrepDataContainer * createTransient(const Muon::MuonPRD_Container_p1 *persObj, MsgStream &log)
Definition: CscStripPrepDataContainerCnv_p1.cxx:168
Muon::CscStripPrepDataContainerCnv_p1::m_cscStripId
const CscIdHelper * m_cscStripId
Definition: CscStripPrepDataContainerCnv_p1.h:38
CscIdHelper
Definition: CscIdHelper.h:52
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::CscStripPrepDataContainerCnv_p1::initialize
StatusCode initialize(MsgStream &log)
Definition: CscStripPrepDataContainerCnv_p1.cxx:28
Muon::CscStripPrepDataContainerCnv_p1::m_isInitialized
bool m_isInitialized
Definition: CscStripPrepDataContainerCnv_p1.h:40
Muon::MuonPRD_Container_p1
Definition: MuonPRD_Container_p1.h:14
Muon::CscStripPrepDataContainerCnv_p1::getReadOutElement
const MuonGM::CscReadoutElement * getReadOutElement(const Identifier &id) const
Definition: CscStripPrepDataContainerCnv_p1.cxx:45
Identifier
Definition: IdentifierFieldParser.cxx:14