QGUIScopeChannel.hh

Go to the documentation of this file.
00001 
00009 #ifndef __Q_GUI_SCOPE_CHANNEL_HH__
00010 #define __Q_GUI_SCOPE_CHANNEL_HH__
00011 
00012 
00013 #include "QCuore.hh"
00014 
00015 #include "TH1F.h"
00016 
00017 #include <math.h> // for round
00018 
00019 class QGUIScopeChannel {
00020 public:
00022    QGUIScopeChannel();
00024    virtual ~QGUIScopeChannel();
00025 
00030    void Dress(TH1F& histo);
00031 
00036    void InitGraphics(TH1F& histo);
00037 
00039    const bool GetAutoRange() const {return fAutoRange;}
00040 
00042    const long GetMin() const {return fHmin;}
00043 
00045    const long GetMax() const {return fHmax;}
00046 
00047    
00048    const long GetMaxAllowed() const {return kRangeMax;}
00049    const long GetMinAllowed() const {return -kRangeMax;}
00050 
00056    void SetAutoRange(bool isTrue) { fAutoRange = isTrue; }
00057 
00062    void UpdateRange() {fUpdateRange = true;}
00063 
00070    bool SetMin(long min);
00071 
00078    bool SetMax(long max);
00079    
00080 private:
00081    // conversion factors
00082    const long kRangeMax;
00083    const float kAdc2Mv;
00084 
00085    long fHmin;        
00087    long fHmax;        
00089    bool fAutoRange;   
00090    bool fUpdateRange; 
00093    ClassDef(QGUIScopeChannel,1)
00094 };
00095 
00096 #endif // __Q_GUI_SCOPE_CHANNEL_HH__

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