ATLAS Offline Software
Classes | Public Member Functions | Static Public Member Functions | List of all members
IAthSelectionTool Class Referenceabstract

IAthSelectionTool is a virtual baseclass for selection methods. More...

#include <IAthSelectionTool.h>

Inheritance diagram for IAthSelectionTool:
Collaboration diagram for IAthSelectionTool:

Classes

class  CutResult
 

Public Member Functions

virtual ~IAthSelectionTool ()
 virtual destructor, does nothing More...
 
virtual IAthSelectionTool::CutResult testAllCuts (const xAOD::IParticle *p, std::vector< unsigned int > &counter) const =0
 The most important method to determine whether the particle is accepted. More...
 
virtual IAthSelectionTool::CutResult accept (const xAOD::IParticle *p) const =0
 The most important method to determine whether the particle is accepted. More...
 
virtual unsigned int nCuts () const =0
 return the number of cuts. More...
 
virtual std::vector< std::string > names () const =0
 return the names of the cuts as a vector<string> More...
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 interfaceID reimplemented from base More...
 

Detailed Description

IAthSelectionTool is a virtual baseclass for selection methods.

Definition at line 27 of file IAthSelectionTool.h.

Constructor & Destructor Documentation

◆ ~IAthSelectionTool()

virtual IAthSelectionTool::~IAthSelectionTool ( )
inlinevirtual

virtual destructor, does nothing

Definition at line 49 of file IAthSelectionTool.h.

49 { }

Member Function Documentation

◆ accept()

virtual IAthSelectionTool::CutResult IAthSelectionTool::accept ( const xAOD::IParticle p) const
pure virtual

The most important method to determine whether the particle is accepted.

Parameters
pPointer to particle baseclass, will be cast to truth or track
Returns
the number of cuts which are not passed or tested

Implemented in AthTruthSelectionTool.

◆ interfaceID()

const InterfaceID & IAthSelectionTool::interfaceID ( )
inlinestatic

interfaceID reimplemented from base

Definition at line 73 of file IAthSelectionTool.h.

73  {
74  return IID_IAthSelectionTool;
75 }

◆ names()

virtual std::vector<std::string> IAthSelectionTool::names ( ) const
pure virtual

return the names of the cuts as a vector<string>

Implemented in AthTruthSelectionTool.

◆ nCuts()

virtual unsigned int IAthSelectionTool::nCuts ( ) const
pure virtual

return the number of cuts.

Returns
the number of cuts

Implemented in AthTruthSelectionTool.

◆ testAllCuts()

virtual IAthSelectionTool::CutResult IAthSelectionTool::testAllCuts ( const xAOD::IParticle p,
std::vector< unsigned int > &  counter 
) const
pure virtual

The most important method to determine whether the particle is accepted.

Parameters
pPointer to particle baseclass, will be cast to truth or track
Returns
true if particle passes cuts

Implemented in AthTruthSelectionTool.


The documentation for this class was generated from the following file: