00001 // Dear emacs, this is -*- c++ -*- 00002 // $Id: MuonSelectionTool.h 299883 2014-03-28 17:34:16Z krasznaa $ 00003 #ifndef CPANALYSISEXAMPLES_MUONSELECTIONTOOL_H 00004 #define CPANALYSISEXAMPLES_MUONSELECTIONTOOL_H 00005 00006 // Framework include(s): 00007 #include "AsgTools/AsgTool.h" 00008 #include "PATCore/IAsgSelectionTool.h" 00009 00010 // Local include(s): 00011 #include "CPAnalysisExamples/IMuonSelectionToolExample.h" 00012 00013 namespace CP { 00014 00025 class MuonSelectionToolExample : public virtual IAsgSelectionTool, 00026 public virtual IMuonSelectionToolExample, 00027 public asg::AsgTool { 00028 00030 ASG_TOOL_CLASS2( MuonSelectionToolExample, IAsgSelectionTool, 00031 CP::IMuonSelectionToolExample ) 00032 00033 public: 00035 MuonSelectionToolExample( const std::string& name ); 00036 00039 00041 virtual StatusCode initialize(); 00042 00044 00047 00049 virtual const Root::TAccept& getTAccept() const; 00050 00052 virtual const Root::TAccept& accept( const xAOD::IParticle* p ) const; 00053 00055 00058 00060 virtual const Root::TAccept& accept( const xAOD::Muon& mu ) const; 00061 00063 00064 private: 00066 double m_maxEta; 00068 int m_author; 00069 00071 mutable Root::TAccept m_accept; 00072 00073 }; // class MuonSelectionToolExample 00074 00075 } // namespace CP 00076 00077 #endif // CPANALYSISEXAMPLES_MUONSELECTIONTOOL_H