QGPBoardFrame Class Reference
[Apollo GuiApollo]

Inheritance diagram for QGPBoardFrame:

QGuiCompositeFrame

List of all members.


Detailed Description

Author:
Sergio Di Domizio graphical frame handling all the channels from the same pulser hardware board

Public Member Functions

 QGPBoardFrame (const TGWindow *parent, UInt_t w, UInt_t h, UInt_t boardId, const std::set< unsigned int > &channels)
 ctor
Bool_t SetEnabled (UInt_t ch, Bool_t enabled)
 toggle whether or not this channel will fire when the start button will be pressed
Bool_t SetAmplitude (UInt_t ch, UInt_t amplitude)
 set pulse amplitude on a given channel
Bool_t GetEnabled (UInt_t ch) const
 check whether a channel will fire when the start button will be pressed
UInt_t GetAmplitude (UInt_t ch) const
 read amplitude from Gui
void Blink (UInt_t ch)
 blink led for a given channel
void Lock ()
 disable user interaction
void Unlock ()
 enable user interaction
void EnableToggled ()
void OneShotPressed (Long_t)
void OneShotPressed (Long_t, Long_t)

Private Attributes

UInt_t fBoardId
std::map< unsigned int,
QGPChannelFrame * > 
fChannelFrames

Constructor & Destructor Documentation

QGPBoardFrame::QGPBoardFrame ( const TGWindow *  parent,
UInt_t  w,
UInt_t  h,
UInt_t  boardId,
const std::set< unsigned int > &  channels 
)

ctor

Parameters:
boardId hardware board id number
channels hardware channels to activate in this board


Member Function Documentation

Bool_t QGPBoardFrame::SetEnabled ( UInt_t  ch,
Bool_t  enabled 
)

toggle whether or not this channel will fire when the start button will be pressed

Parameters:
ch hardware channel
Returns:
true unless ch is invalid or not loaded at all

References fChannelFrames.

Bool_t QGPBoardFrame::SetAmplitude ( UInt_t  ch,
UInt_t  amplitude 
)

set pulse amplitude on a given channel

Parameters:
ch hardware channel
amplitude pulse amplitude (ranges from 0 to 5000)
Returns:
true unless ch or amplitude are invalid

References fChannelFrames.


Member Data Documentation

std::map<unsigned int,QGPChannelFrame*> QGPBoardFrame::fChannelFrames [private]

key: hardware channel, value: ptr to corresponding frame object

Referenced by Blink(), GetAmplitude(), GetEnabled(), Lock(), SetAmplitude(), SetEnabled(), and Unlock().


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

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