Changeset 12343 for trunk/FACT++/src/DataCalib.h
- Timestamp:
- 10/31/11 14:52:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DataCalib.h
r12044 r12343 2 2 #define FACT_DataCalib 3 3 4 #include "DataProcessorImp.h" 5 6 using namespace std; 4 #include "DataWriteFits.h" 7 5 #include "externals/DrsCalib.h" 8 6 9 7 class DimDescribedService; 10 8 11 class DataCalib : public DataProcessorImp, CalibData 9 using namespace std; 10 11 class DataCalib : public DataWriteFits, public DrsCalibrate 12 12 { 13 static std::vector<int32_t> fOffset; /// Storage for physical baseline 14 static std::vector<int64_t> fGain; /// Storage for baseline corrected gain 15 static std::vector<int64_t> fTrgOff; /// Storage for logical baseline 13 static DrsCalibration fData; 16 14 17 static uint64_t fNumOffset; /// Scale for physcial baseline 18 static uint64_t fNumGain; /// Scale for gain values 19 static uint64_t fNumTrgOff; /// Scale for logical baseline 20 21 static std::vector<float> fStats; /// Storage for mean and rms values 15 static std::vector<float> fStats; /// Storage for mean and rms values 22 16 23 17 /// State of the DRS calibration: Positiove numbers mean that 24 18 /// we are in a run, negative mean that it is closed 25 static int fStep;26 19 static bool fProcessing; 27 20 … … 31 24 32 25 public: 33 DataCalib(const std::string &path, uint32_t id, DimDescribedService &dim, MessageImp &imp) : Data ProcessorImp(path, id, imp), fDim(dim)26 DataCalib(const std::string &path, uint32_t id, DimDescribedService &dim, MessageImp &imp) : DataWriteFits(path, id, imp), fDim(dim) 34 27 { 35 28 } … … 42 35 bool Close(RUN_TAIL * = 0); 43 36 44 static void Apply(int16_t *val, const int16_t *start, uint32_t roi); 45 static void Apply(float *vec, int16_t *val, const int16_t *start, uint32_t roi); 37 //static void Apply(int16_t *val, const int16_t *start, uint32_t roi); 38 static void Apply(float *vec, int16_t *val, const int16_t *start, uint32_t roi) 39 { 40 fData.Apply(vec, val, start, roi); 41 } 46 42 47 43 static bool ReadFits(const string &fname, MessageImp &msg); 48 44 49 static bool IsValid() { return f Step>2; }45 static bool IsValid() { return fData.IsValid(); } 50 46 }; 51 47
Note:
See TracChangeset
for help on using the changeset viewer.