FACT++  1.0
DataCalib Class Reference

#include <DataCalib.h>

+ Inheritance diagram for DataCalib:
+ Collaboration diagram for DataCalib:

Public Member Functions

 DataCalib (const std::string &path, uint64_t night, uint32_t id, const DrsCalibration &calib, DimDescribedService &dim, DimDescribedService &runs, MessageImp &imp)
 
bool Open (const RUN_HEAD &h, const FAD::RunDescription &d)
 
bool WriteEvt (const EVT_CTRL2 &)
 
bool Close (const EVT_CTRL2 &)
 
- Public Member Functions inherited from DataWriteFits2
 DataWriteFits2 (const std::string path, uint64_t night, uint32_t runid, MessageImp &imp)
 
 DataWriteFits2 (const std::string path, uint64_t night, uint32_t runid, const DrsCalibration &cal, MessageImp &imp)
 
bool Open (const RUN_HEAD &h, const FAD::RunDescription &d)
 
bool WriteEvt (const EVT_CTRL2 &e)
 
bool Close (const EVT_CTRL2 &)
 
Time GetTstart () const
 
Time GetTstop () const
 
- Public Member Functions inherited from DataProcessorImp
 DataProcessorImp (const std::string &path, uint64_t night, uint32_t id, MessageImp &imp)
 
virtual ~DataProcessorImp ()
 
const std::string & GetFileName () const
 
std::string GetPath () const
 
uint32_t GetNight () const
 
uint32_t GetRunId () const
 
std::string FormFileName (const std::string &extension)
 
- Public Member Functions inherited from MessageImp
 MessageImp (std::ostream &out=std::cout)
 
virtual ~MessageImp ()
 
virtual void IndicateStateChange (const Time &, const std::string &)
 
void StateChanged (const Time &time, const std::string &server, const std::string &msg, int state)
 
int Update (const std::string &txt, int severity=kMessage)
 
int Update (const char *txt, int severity=kMessage)
 
int Update (const std::ostringstream &str, int severity=kMessage)
 
int Debug (const std::string &str)
 
int Message (const std::string &str)
 
int Info (const std::string &str)
 
int Warn (const std::string &str)
 
int Error (const std::string &str)
 
int Alarm (const std::string &str)
 
int Fatal (const std::string &str)
 
int Comment (const std::string &str)
 
int Debug (const char *txt)
 
int Message (const char *txt)
 
int Info (const char *txt)
 
int Warn (const char *txt)
 
int Error (const char *txt)
 
int Alarm (const char *txt)
 
int Fatal (const char *txt)
 
int Comment (const char *txt)
 
int Debug (const std::ostringstream &str)
 
int Message (const std::ostringstream &str)
 
int Info (const std::ostringstream &str)
 
int Warn (const std::ostringstream &str)
 
int Alarm (const std::ostringstream &str)
 
int Error (const std::ostringstream &str)
 
int Fatal (const std::ostringstream &str)
 
int Comment (const std::ostringstream &str)
 
std::ostream & operator() () const
 
std::ostream & Out () const
 
virtual bool MessageQueueEmpty () const
 
- Public Member Functions inherited from DrsCalibrate
 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 Restart ()
 
static bool ResetTrgOff (DimDescribedService &dim, DimDescribedService &runs)
 
static void Update (DimDescribedService &dim, DimDescribedService &runs)
 
static void Apply (float *vec, int16_t *val, const int16_t *start, uint32_t roi)
 
static bool ReadFits (const string &fname, MessageImp &msg)
 
static bool IsValid ()
 
static int GetStep ()
 
static const DrsCalibrationGetCalibration ()
 
- Static Public Member Functions inherited from DataProcessorImp
static std::string FormFileName (const std::string &path, uint64_t night, uint32_t runid, const std::string &extension)
 
- Static Public Member Functions inherited from DrsCalibrate
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)
 

Private Member Functions

int GetDrsStep () const
 

Private Attributes

DimDescribedServicefDim
 
DimDescribedServicefDimRuns
 

Static Private Attributes

static DrsCalibration fData
 
static std::vector< float > fStats
 
static bool fProcessing = false
 Storage for mean and rms values. More...
 

Additional Inherited Members

- Public Types inherited from MessageImp
enum  Severity {
  kMessage = 10, kInfo = 20, kWarn = 30, kError = 40,
  kAlarm = 45, kFatal = 50, kComment = 90, kDebug = 99
}
 Severity of a message. More...
 
- Protected Attributes inherited from DataProcessorImp
MessageImpfMsg
 
std::string fFileName
 
- Protected Attributes inherited from DrsCalibrate
int64_t fNumEntries
 
size_t fNumSamples
 
size_t fNumChannels
 
std::vector< int64_t > fSum
 
std::vector< int64_t > fSum2
 

Detailed Description

Definition at line 11 of file DataCalib.h.


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