ATLAS Offline Software
|
#include <AcceptData.h>
Public Member Functions | |
AcceptData (const AcceptInfo *val_info) | |
Standard constructor. More... | |
operator bool () const | |
Overload the boolean cast; allows for: if(myAcceptData) More... | |
const char * | getName () const |
Get the name of the class instance. More... | |
void | clear () |
Clear all bits. More... | |
void | clearPositive () |
Set all bits to true. More... | |
unsigned int | getNCuts () const |
Get the number of cuts defined. More... | |
std::bitset< NBITS > | getCutMask () const |
Get a bitmask for all cuts defined. More... | |
unsigned int | getCutPosition (const std::string &cutName) const |
Get the bit position of a cut. More... | |
const std::string & | getCutName (unsigned int cutPosition) const |
Get the name of a cut, based on the cut position (slow, avoid usage) More... | |
const std::string & | getCutDescription (const std::string &cutName) const |
Get the description of a cut, based on the cut name. More... | |
const std::string & | getCutDescription (unsigned int cutPosition) const |
Get the description of a cut, based on the cut position. More... | |
bool | getCutResult (const std::string &cutName) const |
Get the result of a cut, based on the cut name (safer) More... | |
bool | getCutResult (unsigned int cutPosition) const |
Get the result of a cut, based on the cut position (faster) More... | |
const std::bitset< NBITS > & | getCutResultBitSet () const |
Get the cut result bitset. More... | |
std::bitset< NBITS > | getCutResultInvertedBitSet () const |
Get an inverted bitset of the cut result. More... | |
unsigned int | getCutResultInverted () const |
Get an inverted bitset as an unsigned integer of the cut result. More... | |
void | setCutResult (const std::string &cutName, bool cutResult) |
Set the result of a cut, based on the cut name (safer) More... | |
void | setCutResult (unsigned int cutPosition, bool cutResult) |
Get the result of a cut, based on the cut position (faster) More... | |
AcceptData & | operator|= (const AcceptData &other) |
Static Public Attributes | |
static const unsigned int | NBITS =AcceptInfo::NBITS |
The number of bits for cuts. More... | |
Private Attributes | |
const AcceptInfo * | m_info = nullptr |
the info structure describing us More... | |
std::bitset< NBITS > | m_accept |
The cut bits. More... | |
Definition at line 29 of file AcceptData.h.
|
inlineexplicit |
|
inline |
|
inline |
Set all bits to true.
Definition at line 57 of file AcceptData.h.
Get the description of a cut, based on the cut name.
Definition at line 85 of file AcceptData.h.
|
inline |
Get the description of a cut, based on the cut position.
Definition at line 91 of file AcceptData.h.
|
inline |
|
inline |
Get the name of a cut, based on the cut position (slow, avoid usage)
Definition at line 78 of file AcceptData.h.
|
inline |
Get the bit position of a cut.
Definition at line 71 of file AcceptData.h.
|
inline |
|
inline |
Get the result of a cut, based on the cut position (faster)
Definition at line 105 of file AcceptData.h.
Get the cut result bitset.
Definition at line 112 of file AcceptData.h.
|
inline |
Get an inverted bitset as an unsigned integer of the cut result.
This is IsEM-style, i.e, 0 means that all cuts are passed
Definition at line 126 of file AcceptData.h.
|
inline |
Get an inverted bitset of the cut result.
This is IsEM-style, i.e, 0 means the cut is passed
Definition at line 119 of file AcceptData.h.
|
inline |
Get the name of the class instance.
Definition at line 50 of file AcceptData.h.
|
inline |
Get the number of cuts defined.
Definition at line 64 of file AcceptData.h.
|
inlineexplicit |
Overload the boolean cast; allows for: if(myAcceptData)
Definition at line 43 of file AcceptData.h.
|
inline |
|
inline |
|
inline |
Get the result of a cut, based on the cut position (faster)
Definition at line 141 of file AcceptData.h.
|
private |
The cut bits.
Definition at line 160 of file AcceptData.h.
|
private |
the info structure describing us
Definition at line 157 of file AcceptData.h.
|
static |
The number of bits for cuts.
Definition at line 34 of file AcceptData.h.