QGUIScopeChannel.hh

Go to the documentation of this file.
00001 
00011 #ifndef __Q_GUI_SCOPE_CHANNEL_HH__
00012 #define __Q_GUI_SCOPE_CHANNEL_HH__
00013 
00014 
00015 #include "QCuore.hh"
00016 
00017 #include "TH1F.h"
00018 
00019 #include <math.h> // for round
00020 
00021 class QGUIScopeChannel {
00022 public:
00024    QGUIScopeChannel();
00026    virtual ~QGUIScopeChannel();
00027 
00032    void Dress(TH1F& histo);
00033 
00038    void InitGraphics(TH1F& histo);
00039 
00041    const bool GetAutoRange() const {return fAutoRange;}
00042 
00044    const long GetMin() const {return fHmin;}
00045 
00047    const long GetMax() const {return fHmax;}
00048 
00049    
00050    const long GetMaxAllowed() const {return kRangeMax;}
00051    const long GetMinAllowed() const {return -kRangeMax;}
00052 
00058    void SetAutoRange(bool isTrue) { fAutoRange = isTrue; }
00059 
00064    void UpdateRange() {fUpdateRange = true;}
00065 
00072    bool SetMin(long min);
00073 
00080    bool SetMax(long max);
00081    
00082 private:
00083    // conversion factors
00084    const long kRangeMax;
00085    const float kAdc2Mv;
00086 
00087    long fHmin;        
00089    long fHmax;        
00091    bool fAutoRange;   
00092    bool fUpdateRange; 
00095    ClassDef(QGUIScopeChannel,1)
00096 };
00097 
00098 #endif // __Q_GUI_SCOPE_CHANNEL_HH__

Generated on Tue Nov 16 10:49:55 2010 for CUORE Software by  doxygen 1.5.6