QLCMeasurement.hh

Go to the documentation of this file.
00001 
00014 #ifndef _QLC_MEASUREMENT_HH_
00015 #define _QLC_MEASUREMENT_HH_
00016 
00017 #include "QCuore.hh"
00018 #include "QLCSlowConfig.hh"
00019 
00020 #include <sys/types.h>
00021 #include <ostream>
00022 
00023 class QLCMeasurement : public QLCSlowConfig {
00024 public:
00025    
00027    QLCMeasurement();
00028    
00036    QLCMeasurement(const QLCSlowConfig* config);
00037    
00039    virtual ~QLCMeasurement();
00040 
00045    double GetBaseline() const { return fBaseline; }
00046 
00051    double GetBaselineRMS() const { return fBaselineRMS; }
00052 
00057    double GetPulseHeight() const { return fPulseHeight; }
00058 
00063    time_t GetTime() const { return fTime; }
00064 
00066    bool GetIsNoise() const { return fIsNoise; }
00067 
00069    bool GetIsHeater() const { return fIsHeater; }
00070 
00072    unsigned short GetMeasId() const { return fMeasId; }
00073 
00074 
00075 
00080    void SetBaseline(const double baseline) { fBaseline = baseline; }
00081 
00086    void SetBaselineRMS(const double rms) { fBaselineRMS = rms; }
00087 
00092    void SetPulseHeight(const double height) { fPulseHeight = height; }
00093 
00095    void SetTime(time_t time) { fTime = time; }
00096 
00098    void SetMeasId(unsigned short id) { fMeasId = id; }
00099 
00101    void SetEventNumber(const unsigned short evNum) { fEventId = evNum; }
00102 
00104    void SetIsNoise(const bool isNoise) { fIsNoise = isNoise; }
00105 
00107    void SetIsHeater(const bool isHeater) { fIsHeater = isHeater; }
00108 
00110    void Dump(std::ostream& file) const;
00111 
00112 private:
00113    bool fIsNoise;  
00114    bool fIsHeater; 
00116    double fBaseline;     
00117    double fBaselineRMS;  
00118    double fPulseHeight;  
00120    //
00121    // SDD FIXME
00122    // further useful quantities to be defined
00123    //
00124    time_t fTime; 
00125    unsigned short fMeasId; 
00126    unsigned short fEventId; 
00128 };
00129 
00130 #endif // _QLC_MEASUREMENT_HH_

Generated on Fri Mar 6 13:40:40 2009 for CUORE Software by  doxygen 1.5.1