Nymph
v1.5.2
Flow-Based Data Processing Framework
|
Provides easy access to cut information. More...
#include <KTCutStatus.hh>
Classes | |
class | KTCutResultHandle |
Public Types | |
typedef boost::dynamic_bitset< > | bitset_type |
Public Member Functions | |
KTCutStatus () | |
KTCutStatus (const KTCutStatus &orig) | |
~KTCutStatus () | |
KTCutStatus & | operator= (const KTCutStatus &rhs) |
const KTCutResult * | CutResults () const |
void | UpdateStatus () |
template<typename XCutType > | |
bool | AddCutResult (bool state, bool doUpdateStatus=true) |
bool | AddCutResult (const std::string &cutName, bool state, bool doUpdateStatus=true) |
bool | AddCutResult (const char *cutName, bool state, bool doUpdateStatus=true) |
template<typename XCutType > | |
bool | AddCutResult (const XCutType &cut, bool doUpdateStatus=true) |
template<typename XCutType > | |
bool | HasCutResult () const |
bool | HasCutResult (const std::string &cutName) const |
template<typename XCutType > | |
bool | GetCutState () const |
bool | GetCutState (const std::string &cutName) const |
template<typename XCutType > | |
const KTCutResult * | GetCutResult () const |
const KTCutResult * | GetCutResult (const std::string &cutName) const |
template<typename XCutType > | |
KTCutResult * | GetCutResult () |
KTCutResult * | GetCutResult (const std::string &cutName) |
template<typename XCutType > | |
bool | SetCutState (bool state, bool doUpdateStatus=true) |
bool | SetCutState (const std::string &cutName, bool state, bool doUpdateStatus=true) |
template<typename XCutType > | |
void | RemoveCutResult (bool doUpdateStatus=true) |
std::string | CutResultsPresent () const |
Returns a string with the names of the cuts that are present in bitset order. More... | |
size_t | size () const |
bool | IsCut () const |
bool | IsCut (const bitset_type &mask) const |
bool | IsCut (unsigned long long mask) const |
bool | IsCut (const std::string &mask) const |
bitset_type | ToBitset (unsigned long long mask) const |
bitset_type | ToBitset (const std::string &mask) const |
Private Attributes | |
boost::scoped_ptr< KTCutResultHandle > | fCutResults |
bitset_type | fSummary |
Friends | |
std::ostream & | operator<< (std::ostream &out, const KTCutStatus &status) |
Provides easy access to cut information.
KTCutStatus is typically used as a member variable of KTData, the top-level data object.
KTCutStatus owns the set of cut results that have been added to a data object. It also owns a summary of those cuts (implemented with boost::dynamic_bitset).
You can check if the data has been cut with the IsCut functions.
When specifying a cut mask, bits set to true specify cuts that should be used:
With KTCutStatus you can interact with individual cut results in the following ways:
For all except KTCutStatus::RemoveCutResult, the cut result can be identified by type or string name.
Definition at line 54 of file KTCutStatus.hh.
typedef boost::dynamic_bitset< > bitset_type |
Definition at line 57 of file KTCutStatus.hh.
KTCutStatus | ( | ) |
Definition at line 17 of file KTCutStatus.cc.
KTCutStatus | ( | const KTCutStatus & | orig | ) |
Definition at line 23 of file KTCutStatus.cc.
~KTCutStatus | ( | ) |
Definition at line 30 of file KTCutStatus.cc.
bool AddCutResult | ( | bool | state, |
bool | doUpdateStatus = true |
||
) |
Definition at line 146 of file KTCutStatus.hh.
bool AddCutResult | ( | const std::string & | cutName, |
bool | state, | ||
bool | doUpdateStatus = true |
||
) |
Definition at line 71 of file KTCutStatus.cc.
|
inline |
Definition at line 157 of file KTCutStatus.hh.
bool AddCutResult | ( | const XCutType & | cut, |
bool | doUpdateStatus = true |
||
) |
Definition at line 163 of file KTCutStatus.hh.
|
inline |
Definition at line 140 of file KTCutStatus.hh.
std::string CutResultsPresent | ( | ) | const |
Returns a string with the names of the cuts that are present in bitset order.
Definition at line 158 of file KTCutStatus.cc.
const KTCutResult * GetCutResult | ( | ) | const |
Definition at line 191 of file KTCutStatus.hh.
const KTCutResult * GetCutResult | ( | const std::string & | cutName | ) | const |
Definition at line 105 of file KTCutStatus.cc.
KTCutResult * GetCutResult | ( | ) |
Definition at line 201 of file KTCutStatus.hh.
KTCutResult * GetCutResult | ( | const std::string & | cutName | ) |
Definition at line 116 of file KTCutStatus.cc.
bool GetCutState | ( | ) | const |
Definition at line 181 of file KTCutStatus.hh.
bool GetCutState | ( | const std::string & | cutName | ) | const |
Definition at line 98 of file KTCutStatus.cc.
|
inline |
Definition at line 175 of file KTCutStatus.hh.
bool HasCutResult | ( | const std::string & | cutName | ) | const |
Definition at line 91 of file KTCutStatus.cc.
|
inline |
Definition at line 223 of file KTCutStatus.hh.
|
inline |
Definition at line 228 of file KTCutStatus.hh.
|
inline |
Definition at line 233 of file KTCutStatus.hh.
|
inline |
Definition at line 238 of file KTCutStatus.hh.
KTCutStatus & operator= | ( | const KTCutStatus & | rhs | ) |
Definition at line 33 of file KTCutStatus.cc.
|
inline |
Definition at line 211 of file KTCutStatus.hh.
bool SetCutState | ( | bool | state, |
bool | doUpdateStatus = true |
||
) |
bool SetCutState | ( | const std::string & | cutName, |
bool | state, | ||
bool | doUpdateStatus = true |
||
) |
Definition at line 127 of file KTCutStatus.cc.
|
inline |
Definition at line 218 of file KTCutStatus.hh.
|
inline |
Definition at line 243 of file KTCutStatus.hh.
|
inline |
Definition at line 248 of file KTCutStatus.hh.
void UpdateStatus | ( | ) |
Definition at line 40 of file KTCutStatus.cc.
|
friend |
Definition at line 187 of file KTCutStatus.cc.
|
private |
Definition at line 122 of file KTCutStatus.hh.
|
private |
Definition at line 124 of file KTCutStatus.hh.