Public Member Functions | |
QApolloTrigger * | Run () |
run method: just run all trigger engines available. | |
void | SelfAdjust () |
compute/autoadjust parameters for all triggers | |
bool | isReady () const |
true if all triggers have completed the autoadjusting phase | |
void | Dump (int) const |
void | SetEnabled (bool enabled) |
enable or disable trigger scan | |
QApolloTrigger * | Run () |
run method: just run all trigger engines available. | |
void | SelfAdjust () |
compute/autoadjust parameters for all triggers | |
void | Init () |
evaluate minwords if is first call | |
bool | isReady () const |
true if all triggers have completed the autoadjusting phase | |
void | Dump (int) const |
void | SetEnabled (bool enabled) |
enable or disable trigger scan | |
Private Member Functions | |
void | Add (QApolloTrigger *t) |
void | EvalMinNumWords () |
determine, for each channel, the minimum number of words that can can be analyzed at each call of the Run() method | |
void | EvalMinDelayWords () |
determine, for each channel, the minimum delay samples with respect to the last word written by the DAQ that guarantees that all active algorithms will work correctly | |
void | DeleteAll () |
delete all trigger objects in list | |
void | Add (QApolloTrigger *t) |
void | EvalMinNumWords () |
determine, for each channel, the minimum number of words that can can be analyzed at each call of the Run() method | |
void | EvalMinDelayWords () |
determine, for each channel, the minimum delay samples with respect to the last word written by the DAQ that guarantees that all active algorithms will work correctly | |
void | DeleteAll () |
delete all trigger objects in list | |
Private Attributes | |
std::map< int, unsigned long > | fNumWords |
std::map< int, unsigned long > | fDelayWords |
std::map< int, std::vector < QApolloTrigger * > > | fTriggers |
bool | fReady |
bool | fFirstCall |
Friends | |
class | QApolloTriggerFactory |
QApolloTrigger * QApolloTriggerList::Run | ( | ) |
run method: just run all trigger engines available.
numWords | number of samples to be processed; if data buffer contains less than numWords samples, nothing is done. |
References EvalMinDelayWords(), and EvalMinNumWords().
void QApolloTriggerList::SetEnabled | ( | bool | enabled | ) |
enable or disable trigger scan
If trigger scan is disabled data is simply set as processed by trigger, but actually trigger algorithms don't scan data. Every time this member function is called, data in shared memory is flagged in order to signal that trigger status has changed.
enable | if true (default), triggers are enabled |
QApolloTrigger* QApolloTriggerList::Run | ( | ) |
run method: just run all trigger engines available.
numWords | number of samples to be processed; if data buffer contains less than numWords samples, nothing is done. |
void QApolloTriggerList::SetEnabled | ( | bool | enabled | ) |
enable or disable trigger scan
If trigger scan is disabled data is simply set as processed by trigger, but actually trigger algorithms don't scan data. Every time this member function is called, data in shared memory is flagged in order to signal that trigger status has changed.
enable | if true (default), triggers are enabled |