![]() |
ATLAS Offline Software
|
#include <AcceptInfo.h>
Public Member Functions | |
| AcceptInfo (const char *name="AcceptInfo") | |
| Standard constructor. | |
| const char * | getName () const |
| Get the name of the class instance. | |
| unsigned int | getNCuts () const |
| Get the number of cuts defined. | |
| const std::bitset< NBITS > & | getCutMask () const |
| Get a bitmask for all cuts defined. | |
| int | addCut (const std::string &cutName, const std::string &cutDescription) |
| Add a cut; returning the cut position. | |
| unsigned int | getCutPosition (std::string_view cutName) const |
| Get the bit position of a cut. | |
| const std::string & | getCutName (unsigned int cutPosition) const |
| Get the name of a cut, based on the cut position (slow, avoid usage). | |
| const std::string & | getCutDescription (const std::string &cutName) const |
| Get the description of a cut, based on the cut name. | |
| const std::string & | getCutDescription (unsigned int cutPosition) const |
| Get the description of a cut, based on the cut position. | |
| void | setCutDescription (const std::string &cutName, const std::string &cutDescription) |
| Set the result of a cut, based on the cut name (safer). | |
| void | setCutDescription (unsigned int cutPosition, const std::string &cutDescription) |
| Get the result of a cut, based on the cut position (faster). | |
Static Public Attributes | |
| static const unsigned int | NBITS =32 |
| The number of bits for cuts. | |
Private Attributes | |
| std::string | m_name |
| The name of the class instance. | |
| std::map< std::string, std::pair< std::string, unsigned int >, std::less<> > | m_cutMap |
| The map for mapping cut names to their description and position. | |
| std::bitset< NBITS > | m_cutMask |
| A bitmap that provides a mask that only leaves defined cuts. | |
Definition at line 27 of file AcceptInfo.h.
|
inline |
Standard constructor.
Definition at line 35 of file AcceptInfo.h.
|
inline |
Add a cut; returning the cut position.
Definition at line 53 of file AcceptInfo.h.
Get the description of a cut, based on the cut name.
Definition at line 119 of file AcceptInfo.cxx.
| const std::string & AcceptInfo::getCutDescription | ( | unsigned int | cutPosition | ) | const |
Get the description of a cut, based on the cut position.
Definition at line 66 of file AcceptInfo.cxx.
| const std::string & AcceptInfo::getCutName | ( | unsigned int | cutPosition | ) | const |
Get the name of a cut, based on the cut position (slow, avoid usage).
Definition at line 36 of file AcceptInfo.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
Set the result of a cut, based on the cut name (safer).
Definition at line 92 of file AcceptInfo.h.
| void AcceptInfo::setCutDescription | ( | unsigned int | cutPosition, |
| const std::string & | cutDescription ) |
Get the result of a cut, based on the cut position (faster).
Definition at line 97 of file AcceptInfo.cxx.
|
private |
The map for mapping cut names to their description and position.
Definition at line 109 of file AcceptInfo.h.
|
private |
A bitmap that provides a mask that only leaves defined cuts.
Definition at line 112 of file AcceptInfo.h.
|
private |
The name of the class instance.
Definition at line 106 of file AcceptInfo.h.
|
static |
The number of bits for cuts.
Definition at line 32 of file AcceptInfo.h.