QGUIScopeChannel Class Reference

List of all members.


Detailed Description

handler for channel based graphics stuff. One of these objects for each active scope channel.

Author:
sergio.didomizio@ge.infn.it

Public Member Functions

 QGUIScopeChannel ()
 ctor
virtual ~QGUIScopeChannel ()
 dtor
void Dress (TH1F &histo)
 dress passed histogram with current graphics settings
void InitGraphics (TH1F &histo)
 perform histogram-based graphics initialization
const bool GetAutoRange () const
 get auto-range status
const long GetMin () const
 get current minimum
const long GetMax () const
 get current maximum
const long GetMaxAllowed () const
const long GetMinAllowed () const
void SetAutoRange (bool isTrue)
 toggle auto-range flag
void UpdateRange ()
 update histogram range (used when moving from autorange to manual range and when moving to a different channel
bool SetMin (long min)
 set histogram Y lower bound. If supplied value is out of range lower bound is not modified.
bool SetMax (long max)
 set histogram Y upper bound. If supplied value is out of range upper bound is not modified.

Private Attributes

const long kRangeMax
const float kAdc2Mv
long fHmin
long fHmax
bool fAutoRange
bool fUpdateRange

Member Function Documentation

void QGUIScopeChannel::Dress ( TH1F &  histo  ) 

dress passed histogram with current graphics settings

Parameters:
histo histogram to be dressed

References fAutoRange, fHmax, fHmin, and fUpdateRange.

void QGUIScopeChannel::InitGraphics ( TH1F &  histo  ) 

perform histogram-based graphics initialization

Parameters:
histo histogram to be initialized

void QGUIScopeChannel::SetAutoRange ( bool  isTrue  )  [inline]

toggle auto-range flag

Parameters:
isTrue if channel is in autorange mode, values set by mean of SetMin() and SetMax() methods have no effect

References fAutoRange.

bool QGUIScopeChannel::SetMin ( long  min  ) 

set histogram Y lower bound. If supplied value is out of range lower bound is not modified.

Parameters:
min histogram lower bound in mV.
Returns:
true on success

References fHmax, and fHmin.

bool QGUIScopeChannel::SetMax ( long  max  ) 

set histogram Y upper bound. If supplied value is out of range upper bound is not modified.

Parameters:
max histogram upper bound in mV
Returns:
true on success

References fHmax, and fHmin.


Member Data Documentation

long QGUIScopeChannel::fHmin [private]

histogram lower bound (has effect only in manual range mode)

Referenced by Dress(), GetMin(), SetMax(), and SetMin().

long QGUIScopeChannel::fHmax [private]

histogram upper bound (has effect only in manual range mode)

Referenced by Dress(), GetMax(), SetMax(), and SetMin().

auto-range flag

Referenced by Dress(), GetAutoRange(), and SetAutoRange().

determine wether fHmin and fHmax must be updated at the next call of Dress() method

Referenced by Dress(), and UpdateRange().


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

Generated on Tue Nov 16 10:50:07 2010 for CUORE Software by  doxygen 1.5.6