CbmRoot
Loading...
Searching...
No Matches
cbm::algo::evbuild::TimeClusterTrigger Class Reference

Finds clusters in time-series data. More...

#include <TimeClusterTrigger.h>

Public Types

typedef std::pair< std::vector< double >, TimeClusterTriggerMonitorDataresultType
 

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.
 

Detailed Description

Finds clusters in time-series data.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Dominik Smith d.smi.nosp@m.th@g.nosp@m.si.de
Since
21.11.2021

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.

Member Typedef Documentation

◆ resultType

Constructor & Destructor Documentation

◆ TimeClusterTrigger()

cbm::algo::evbuild::TimeClusterTrigger::TimeClusterTrigger ( double winSize,
u32 minNumData,
double deadTime )
inline

Constructor.

Parameters
winSizeSize of trigger window
minNumDataThreshold on number of data within the trigger window
deadTimeMinimum time between two triggers

Definition at line 53 of file TimeClusterTrigger.h.

Member Function Documentation

◆ operator()()

TimeClusterTrigger::resultType cbm::algo::evbuild::TimeClusterTrigger::operator() ( const std::vector< double > & dataVec) const

◆ ToString()

string cbm::algo::evbuild::TimeClusterTrigger::ToString ( ) const

Member Data Documentation

◆ fDeadTime

double cbm::algo::evbuild::TimeClusterTrigger::fDeadTime = 0.
private

Definition at line 73 of file TimeClusterTrigger.h.

Referenced by operator()(), and ToString().

◆ fMinNumData

int32_t cbm::algo::evbuild::TimeClusterTrigger::fMinNumData = 0
private

Definition at line 72 of file TimeClusterTrigger.h.

Referenced by operator()(), and ToString().

◆ fWinSize

double cbm::algo::evbuild::TimeClusterTrigger::fWinSize = 0.
private

Definition at line 71 of file TimeClusterTrigger.h.

Referenced by operator()(), and ToString().


The documentation for this class was generated from the following files: