ATLAS Offline Software
MuonID/MuonSelectorTools/src/MuonSelectionAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // Simple alg to wrap the selectiontool
6 // outputs a view container of the selected muons, if m_outputMuons different to m_inputMuons
7 
8 #ifndef MUONSELECTORTOOLS_MUONSELECTIONALG
9 #define MUONSELECTORTOOLS_MUONSELECTIONALG
10 
12 #include "GaudiKernel/ToolHandle.h"
14 
15 namespace CP {
16 
17  class MuonSelectionAlg : public AthAlgorithm {
18  public:
19  MuonSelectionAlg(const std::string& name, ISvcLocator* svcloc);
20 
21  virtual StatusCode initialize();
22  virtual StatusCode execute();
23 
24  private:
25  std::string m_inputMuons;
26  std::string m_outputMuons;
27  ToolHandle<CP::IMuonSelectionTool> m_tool;
28  };
29 
30 } // namespace CP
31 
32 #endif
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::MuonSelectionAlg::initialize
virtual StatusCode initialize()
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.cxx:18
AthAlgorithm.h
IMuonSelectionTool.h
CP::MuonSelectionAlg::m_tool
ToolHandle< CP::IMuonSelectionTool > m_tool
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::MuonSelectionAlg
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.h:17
CP::MuonSelectionAlg::execute
virtual StatusCode execute()
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.cxx:32
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::MuonSelectionAlg::m_inputMuons
std::string m_inputMuons
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.h:25
CP::MuonSelectionAlg::MuonSelectionAlg
MuonSelectionAlg(const std::string &name, ISvcLocator *svcloc)
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.cxx:11
CP::MuonSelectionAlg::m_outputMuons
std::string m_outputMuons
Definition: MuonID/MuonSelectorTools/src/MuonSelectionAlg.h:26