FACT++  1.0
DrsCalibrate Class Reference

#include <DrsCalib.h>

+ Inheritance diagram for DrsCalibrate:
+ Collaboration diagram for DrsCalibrate:

Classes

struct  Step
 

Public Member Functions

 DrsCalibrate ()
 
void Reset ()
 
void InitSize (uint16_t channels, uint16_t samples)
 
void AddRel (const int16_t *val, const int16_t *start)
 
void AddRel (const int16_t *val, const int16_t *start, const int32_t *offset, const int64_t scale)
 
void AddAbs (const int16_t *val, const int16_t *start, const int32_t *offset, const int64_t scale)
 
std::pair< std::vector< double >, std::vector< double > > GetSampleStats () const
 
void GetSampleStats (float *ptr, float scale) const
 
const std::vector< int64_t > & GetSum () const
 
int64_t GetNumEntries () const
 

Static Public Member Functions

static void ApplyCh (float *vec, const int16_t *val, int16_t start, uint32_t roi, const int32_t *offset, const int64_t scaleabs, const int64_t *gain, const int64_t scalegain)
 
static void ApplyCh (float *vec, const int16_t *val, int16_t start, uint32_t roi, const int32_t *offset, const int64_t scaleabs, const int64_t *gain, const int64_t scalegain, const int64_t *trgoff, const int64_t scalerel)
 
static double FindStep (const size_t ch0, const float *vec, int16_t roi, const int16_t pos, const uint16_t *map=NULL)
 
static void SubtractStep (const size_t ch0, const double avg, float *vec, int16_t roi, int32_t pos, const uint16_t *map=NULL)
 
static Step AverageSteps (const std::vector< Step >::iterator beg, const std::vector< Step >::iterator end)
 
static Step CorrectStep (float *vec, uint16_t nch, uint16_t roi, const int16_t *prev, const int16_t *start, const int16_t offset, const uint16_t *map=NULL)
 
static void RemoveSpikes (float *p, uint32_t roi)
 
static void RemoveSpikes2 (float *p, uint32_t roi)
 
static void RemoveSpikes3 (float *vec, uint32_t roi)
 
static void RemoveSpikes4 (float *ptr, uint32_t roi)
 
static void SlidingAverage (float *const vec, const uint32_t roi, const uint16_t w)
 
static double GetPixelStats (float *ptr, const float *data, uint16_t roi, uint16_t begskip=0, uint16_t endskip=0)
 
static void GetPixelMax (float *max, const float *data, uint16_t roi, int32_t first, int32_t last)
 

Protected Attributes

int64_t fNumEntries
 
size_t fNumSamples
 
size_t fNumChannels
 
std::vector< int64_t > fSum
 
std::vector< int64_t > fSum2
 

Detailed Description

Definition at line 15 of file DrsCalib.h.


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