ATLAS Offline Software
MuonSegmentCnvAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef XAODMUONCNV_MUONSEGMENTCNVALG_H
6 #define XAODMUONCNV_MUONSEGMENTCNVALG_H
7 
9 #include "GaudiKernel/ToolHandle.h"
11 
12 #include <string>
13 
14 namespace xAODMaker {
15 
27 
28  public:
30  MuonSegmentCnvAlg( const std::string& name, ISvcLocator* svcLoc );
31 
33  virtual StatusCode initialize() override;
35  virtual StatusCode execute(const EventContext& ctx) const override;
36 
37  private:
38  // the following segments do NOT contain MuGirl segments
39  SG::ReadHandleKey<Trk::SegmentCollection> m_muonSegmentLocation{this,"SegmentContainerName","TrackMuonSegments"};
40  SG::WriteHandleKey<xAOD::MuonSegmentContainer> m_xaodContainerName{this,"xAODContainerName","xaodMuonSegments"};
41 
42  ToolHandle<xAODMaker::IMuonSegmentConverterTool> m_muonSegmentConverterTool{this,"MuonSegmentConverterTool","Muon::MuonSegmentConverterTool/MuonSegmentConverterTool"};
43  }; // class MuonSegmentCnvAlg
44 
45 } // namespace xAODMaker
46 
47 #endif // XAODCREATORALGS_MUONCREATOR_H
xAODMaker::MuonSegmentCnvAlg::m_muonSegmentLocation
SG::ReadHandleKey< Trk::SegmentCollection > m_muonSegmentLocation
Definition: MuonSegmentCnvAlg.h:39
xAODMaker::MuonSegmentCnvAlg::MuonSegmentCnvAlg
MuonSegmentCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Definition: MuonSegmentCnvAlg.cxx:16
xAODMaker::MuonSegmentCnvAlg::initialize
virtual StatusCode initialize() override
Function initialising the algorithm.
Definition: MuonSegmentCnvAlg.cxx:20
xAODMaker::MuonSegmentCnvAlg::m_muonSegmentConverterTool
ToolHandle< xAODMaker::IMuonSegmentConverterTool > m_muonSegmentConverterTool
Definition: MuonSegmentCnvAlg.h:42
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
xAODMaker
Definition: StoreGateSvc.h:72
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAODMaker::MuonSegmentCnvAlg::m_xaodContainerName
SG::WriteHandleKey< xAOD::MuonSegmentContainer > m_xaodContainerName
Definition: MuonSegmentCnvAlg.h:40
xAODMaker::MuonSegmentCnvAlg
Algorithm creating xAOD::MuonSegments from MuonSegments.
Definition: MuonSegmentCnvAlg.h:26
IMuonSegmentConverterTool.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAODMaker::MuonSegmentCnvAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
Definition: MuonSegmentCnvAlg.cxx:31