CbmRoot
|
Finds clusters in time-series data. More...
#include <TimeClusterTrigger.h>
Public Types | |
typedef std::pair< std::vector< double >, TimeClusterTriggerMonitorData > | resultType |
Public Member Functions | |
TimeClusterTrigger (double winSize, u32 minNumData, double deadTime) | |
Constructor. | |
resultType | operator() (const std::vector< double > &dataVec) const |
Execution. | |
std::string | ToString () const |
Info to string. | |
Private Attributes | |
double | fWinSize = 0. |
int32_t | fMinNumData = 0 |
double | fDeadTime = 0. |
Finds clusters in time-series data.
A trigger is generated when the number density of data exceeds a given threshold. Each datum can contribute to only one trigger. Consecutive triggers are separated by at least the dead time.
The input vector must be sorted, otherwise the behaviour is undefined.
Definition at line 43 of file TimeClusterTrigger.h.
std::pair<std::vector<double>, TimeClusterTriggerMonitorData> cbm::algo::evbuild::TimeClusterTrigger::resultType |
Definition at line 46 of file TimeClusterTrigger.h.
|
inline |
Constructor.
winSize | Size of trigger window |
minNumData | Threshold on number of data within the trigger window |
deadTime | Minimum time between two triggers |
Definition at line 53 of file TimeClusterTrigger.h.
TimeClusterTrigger::resultType cbm::algo::evbuild::TimeClusterTrigger::operator() | ( | const std::vector< double > & | dataVec | ) | const |
Execution.
dataVec | Source data vector |
Definition at line 22 of file TimeClusterTrigger.cxx.
References fDeadTime, fMinNumData, fWinSize, cbm::algo::evbuild::TimeClusterTriggerMonitorData::nTriggers, cbm::algo::evbuild::TimeClusterTriggerMonitorData::num, cbm::algo::evbuild::TimeClusterTriggerMonitorData::numInTrigger, and cbm::algo::evbuild::TimeClusterTriggerMonitorData::time.
string cbm::algo::evbuild::TimeClusterTrigger::ToString | ( | ) | const |
Info to string.
Definition at line 72 of file TimeClusterTrigger.cxx.
References fDeadTime, fMinNumData, and fWinSize.
Referenced by cbm::algo::evbuild::EventbuildChain::Status(), and cbm::algo::evbuild::HitMultTrigger::ToString().
|
private |
Definition at line 73 of file TimeClusterTrigger.h.
Referenced by operator()(), and ToString().
|
private |
Definition at line 72 of file TimeClusterTrigger.h.
Referenced by operator()(), and ToString().
|
private |
Definition at line 71 of file TimeClusterTrigger.h.
Referenced by operator()(), and ToString().