Project
Loading...
Searching...
No Matches
o2::tpc::dcs::DataPointVector< T > Struct Template Reference

#include <DCS.h>

Public Types

using DPType = DataPoint< T >
 

Public Member Functions

void fill (const TimeStampType time, const T &value)
 
void fill (const DPType &dataPoint)
 
void sort ()
 
void sortAndClean ()
 
void clear ()
 
void append (const DataPointVector< T > &other)
 
const T & getValueForTime (const TimeStampType timeStamp) const
 
const T getAverageValueForTime (const TimeStampType timeStamp, const long range) const
 calculate average value for timeStamp, extending the range by +- range elements
 
const std::pair< T, longgetSumAndPoints (const TimeStampType from, const TimeStampType until, const long range) const
 calculate average value between from and unil, extending the range by +- range elements
 
const T getAverageValueForTime (const TimeStampType from, const TimeStampType until, const long range) const
 
 ClassDefNV (DataPointVector, 1)
 

Public Attributes

uint32_t sensorNumber {}
 
std::vector< DPTypedata
 

Detailed Description

template<typename T>
struct o2::tpc::dcs::DataPointVector< T >

Vector of data points at different time stamps

Definition at line 64 of file DCS.h.

Member Typedef Documentation

◆ DPType

template<typename T >
using o2::tpc::dcs::DataPointVector< T >::DPType = DataPoint<T>

Definition at line 65 of file DCS.h.

Member Function Documentation

◆ append()

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::append ( const DataPointVector< T > &  other)
inline

Definition at line 89 of file DCS.h.

◆ ClassDefNV()

template<typename T >
o2::tpc::dcs::DataPointVector< T >::ClassDefNV ( DataPointVector< T >  ,
 
)

◆ clear()

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::clear ( )
inline

Definition at line 87 of file DCS.h.

◆ fill() [1/2]

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::fill ( const DPType dataPoint)
inline

Definition at line 71 of file DCS.h.

◆ fill() [2/2]

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::fill ( const TimeStampType  time,
const T &  value 
)
inline

Definition at line 69 of file DCS.h.

◆ getAverageValueForTime() [1/2]

template<typename T >
const T o2::tpc::dcs::DataPointVector< T >::getAverageValueForTime ( const TimeStampType  from,
const TimeStampType  until,
const long  range 
) const
inline

Definition at line 122 of file DCS.h.

◆ getAverageValueForTime() [2/2]

template<typename T >
const T o2::tpc::dcs::DataPointVector< T >::getAverageValueForTime ( const TimeStampType  timeStamp,
const long  range 
) const
inline

calculate average value for timeStamp, extending the range by +- range elements

Definition at line 104 of file DCS.h.

◆ getSumAndPoints()

template<typename T >
const std::pair< T, long > o2::tpc::dcs::DataPointVector< T >::getSumAndPoints ( const TimeStampType  from,
const TimeStampType  until,
const long  range 
) const
inline

calculate average value between from and unil, extending the range by +- range elements

Definition at line 110 of file DCS.h.

◆ getValueForTime()

template<typename T >
const T & o2::tpc::dcs::DataPointVector< T >::getValueForTime ( const TimeStampType  timeStamp) const
inline

return value at the last valid time stamp

values are valid unitl the next time stamp

Definition at line 97 of file DCS.h.

◆ sort()

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::sort ( )
inline

Definition at line 73 of file DCS.h.

◆ sortAndClean()

template<typename T >
void o2::tpc::dcs::DataPointVector< T >::sortAndClean ( )
inline

Definition at line 75 of file DCS.h.

Member Data Documentation

◆ data

template<typename T >
std::vector<DPType> o2::tpc::dcs::DataPointVector< T >::data

Definition at line 67 of file DCS.h.

◆ sensorNumber

template<typename T >
uint32_t o2::tpc::dcs::DataPointVector< T >::sensorNumber {}

Definition at line 66 of file DCS.h.


The documentation for this struct was generated from the following file: