|
| KTCutFilter (const std::string &name="cut-filter") |
|
virtual | ~KTCutFilter () |
|
bool | Configure (const scarab::param_node &node) |
| Should perform parameter store and command-line configurations. More...
|
|
void | SetCutMask (KTCutStatus::bitset_type mask) |
|
void | SetCutMask (unsigned long long mask) |
|
void | SetCutMask (const std::string &mask) |
| Set the mask with a string; String must consist of all 0's and 1's. More...
|
|
void | SetCutMaskAll () |
| Set the cut mask to use all cuts. More...
|
|
bool | Filter (KTData &data) |
|
void | FilterData (KTDataPtr) |
|
| KTProcessor (const std::string &name="default-proc-name") |
|
virtual | ~KTProcessor () |
|
void | ConnectASlot (const std::string &signalName, KTProcessor *processor, const std::string &slotName, int groupNum=-1) |
|
void | ConnectASignal (KTProcessor *processor, const std::string &signalName, const std::string &slotName, int groupNum=-1) |
|
void | ConnectSignalToSlot (KTSignalWrapper *signal, KTSlotWrapper *slot, int groupNum=-1) |
|
template<class XProcessor > |
void | RegisterSignal (std::string name, XProcessor *signalPtr) |
|
template<class XTarget , typename XReturn > |
void | RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)()) |
|
template<class XTarget , typename XReturn , typename XArg1 > |
void | RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)(XArg1)) |
|
template<class XTarget , typename XReturn , typename XArg1 , typename XArg2 > |
void | RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)(XArg1, XArg2)) |
|
KTSignalWrapper * | GetSignal (const std::string &name) |
|
KTSlotWrapper * | GetSlot (const std::string &name) |
|
template<typename XSignalSig > |
void | RegisterSignal (std::string name, XSignalSig *signalPtr) |
|
| KTConfigurable (const std::string &name="default-name") |
|
virtual | ~KTConfigurable () |
|
bool | Configure (const std::string &config) |
| Implement the option for calling Configure without passing a parameter store node. More...
|
|
const std::string & | GetConfigName () const |
|
void | SetConfigName (const std::string &name) |
|
Filters data based on cuts already applied and a filter mask.
- Author
- N. S. Oblath
KTCutFilter checks the status of cuts that have already been applied to a data. If the bitwise AND of the cut status with the configurable cut mask is non-zero, than the data fails the filter.
Interpretation of the boolean returned by Filter(KTData&):
- TRUE means the data failed the cut filter.
- FALSE means the data passed the cut filter.
Configuration name: "cut-filter"
Available configuration values:
- "cut-mask-all": bool – If true, filter will use all cuts. If this is present and true, it overrules other mask configurations.
- "cut-mask": string – Set the cut mask with a string of 1's and 0's. The first character is the highest significant bit, and the last character is the least significant bit. If present, it overrules cut-mask-int.
- "cut-mask-int": unsigned int – Set the cut mask with an unsigned integer's bit values.
Slots:
- "filter": void (KTDataPtr) – Checks the cut status of the received data ANDed with the cut mask; No data is added.
Signals:
- "all": void (KTDataPtr) – Emitted after cut status is checked for all data.
- "pass": void (KTDataPtr) – Emitted after cut status is checked if the cut filter passed.
- "fail": void (KTDataPtr) – Emitted after cut status is checked if the cut filter failed.
Definition at line 57 of file KTCutFilter.hh.