ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace 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
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
ToolHandle< xAODMaker::IMuonSegmentConverterTool > m_muonSegmentConverterTool
virtual StatusCode initialize() override
Function initialising the algorithm.
MuonSegmentCnvAlg(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
SG::WriteHandleKey< xAOD::MuonSegmentContainer > m_xaodContainerName
SG::ReadHandleKey< Trk::SegmentCollection > m_muonSegmentLocation