Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

DisplayCanvas Class Reference

Event Display for Balloon root files. More...

#include <DisplayCanvas.h>

List of all members.

Public Methods

 DisplayCanvas ( EDControl *evtCtrl )
 Principal Constructor. More...

void Draw ( Bool_t dataType )
 Main routine for drawing a single test beam event. More...

void Draw (Int_t event, Bool_t dataType )
 Draw routine for a event specified. More...

Int_t getCurrentEvent ()
void setCurrentEvent ( Int_t evt )
Bool_t getScanDirection ()
void setScanDirection ( Bool_t direction )
void setDrawingPads ()
void setCalDisplay (Float_t cal1, Float_t cal2, Float_t cal3)
 not yet functional.

void setCanvasforProj ()

Private Methods

void drawAxes ()
 Adds Axes to main pad. More...

void AnnotatePad ( TPad *pad, Char_t *title, UShort_t opt )
void DrawEventInfo ( TPad *pad )
void addEnergyScale ()
 Adds a Title displaying current Energy Scale. More...

Char_t* getText (TString color, Float_t energy)
 Returns Text Lines for addEnergyScale(). More...

Char_t* getTextInt (TString str, Int_t number)
 Returns Text Lines. More...


Private Attributes

TCanvas* m_canvas
TPad* m_infoPad
TPad* m_3DPad
TPad* m_zxpad
TPad* m_zypad
TPad* m_xyTopPad
TPad* m_yxTopPad
TNodem_frameNode
TNodem_towerNode
CalDisplaym_CAL
AcdDisplaym_Acd
TkrDisplaym_Tkr
EDControlm_evtCtrl
DigiEvent* m_event
Recon* m_recon
TTree* fTree
TTree* rTree
TObjArray* m_ped
TObjArray* m_acdped
TObjArray* m_xgtped
TObjArray* m_eventTextList
Bool_t m_scanForward
Int_t m_currentevent
Float_t m_axis_width
Float_t m_TowerHeight
Float_t m_TowerWidth
Float_t scale_factor
Float_t frame_x
Float_t frame_y
Float_t frame_z
TString* m_TextLine

Friends

class  TkrDisplay
class  CalDisplay
class  AcdDisplay


Detailed Description

Event Display for Balloon root files.

Definition at line 26 of file DisplayCanvas.h.


Constructor & Destructor Documentation

DisplayCanvas::DisplayCanvas ( EDControl * evtCtrl )
 

Principal Constructor.

Definition at line 16 of file DisplayCanvas.cxx.


Member Function Documentation

void DisplayCanvas::AnnotatePad ( TPad * pad,
Char_t * title,
UShort_t opt ) [private]
 

Definition at line 321 of file DisplayCanvas.cxx.

Referenced by Draw().

void DisplayCanvas::Draw ( Int_t event,
Bool_t dataType ) [inline]
 

Draw routine for a event specified.

The routine calls the draw the event whose event number corresponds to the input integer 'event'. The current event variables ends up pointing to the event after 'event'.

Definition at line 108 of file DisplayCanvas.h.

void DisplayCanvas::Draw ( Bool_t dataType )
 

Main routine for drawing a single test beam event.

The routine draws the event corresponding to m_currentevent,

which is incremented at the end of the routine, so that consecutive

events can be displayed by rerunning the Draw() routine.

Initially m_currentevent points to the first event.

Definition at line 119 of file DisplayCanvas.cxx.

Referenced by DisplayCanvas(), Draw(), and EDControl::processCommand().

void DisplayCanvas::DrawEventInfo ( TPad * pad ) [private]
 

Definition at line 369 of file DisplayCanvas.cxx.

Referenced by Draw().

void DisplayCanvas::addEnergyScale ( ) [private]
 

Adds a Title displaying current Energy Scale.

Definition at line 472 of file DisplayCanvas.cxx.

Referenced by Draw().

void DisplayCanvas::drawAxes ( ) [private]
 

Adds Axes to main pad.

Definition at line 579 of file DisplayCanvas.cxx.

Int_t DisplayCanvas::getCurrentEvent ( ) [inline]
 

Definition at line 113 of file DisplayCanvas.h.

Referenced by EDControl::processCommand().

Bool_t DisplayCanvas::getScanDirection ( ) [inline]
 

Definition at line 115 of file DisplayCanvas.h.

Referenced by EDControl::processCommand().

Char_t * DisplayCanvas::getText ( TString color,
Float_t energy ) [private]
 

Returns Text Lines for addEnergyScale().

Definition at line 601 of file DisplayCanvas.cxx.

Char_t * DisplayCanvas::getTextInt ( TString str,
Int_t number ) [private]
 

Returns Text Lines.

Definition at line 627 of file DisplayCanvas.cxx.

void DisplayCanvas::setCalDisplay ( Float_t cal1,
Float_t cal2,
Float_t cal3 )
 

not yet functional.

void DisplayCanvas::setCanvasforProj ( )
 

void DisplayCanvas::setCurrentEvent ( Int_t evt ) [inline]
 

Definition at line 114 of file DisplayCanvas.h.

Referenced by EDControl::processCommand().

void DisplayCanvas::setDrawingPads ( )
 

Definition at line 270 of file DisplayCanvas.cxx.

Referenced by Draw(), and EDControl::processCommand().

void DisplayCanvas::setScanDirection ( Bool_t direction ) [inline]
 

Definition at line 116 of file DisplayCanvas.h.

Referenced by EDControl::processCommand().


Friends And Related Function Documentation

class AcdDisplay [friend]
 

Definition at line 99 of file DisplayCanvas.h.

Referenced by DisplayCanvas().

class CalDisplay [friend]
 

Definition at line 98 of file DisplayCanvas.h.

Referenced by DisplayCanvas().

class TkrDisplay [friend]
 

Default Destructor.

Definition at line 97 of file DisplayCanvas.h.

Referenced by DisplayCanvas().


Member Data Documentation

TTree * DisplayCanvas::fTree [private]
 

Definition at line 56 of file DisplayCanvas.h.

Float_t DisplayCanvas::frame_x [private]
 

Definition at line 74 of file DisplayCanvas.h.

Float_t DisplayCanvas::frame_y [private]
 

Definition at line 74 of file DisplayCanvas.h.

Float_t DisplayCanvas::frame_z [private]
 

Definition at line 74 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_3DPad [private]
 

Definition at line 34 of file DisplayCanvas.h.

AcdDisplay * DisplayCanvas::m_Acd [private]
 

Definition at line 49 of file DisplayCanvas.h.

CalDisplay * DisplayCanvas::m_CAL [private]
 

Definition at line 48 of file DisplayCanvas.h.

TString * DisplayCanvas::m_TextLine [private]
 

Definition at line 84 of file DisplayCanvas.h.

TkrDisplay * DisplayCanvas::m_Tkr [private]
 

Definition at line 50 of file DisplayCanvas.h.

Float_t DisplayCanvas::m_TowerHeight [private]
 

Definition at line 69 of file DisplayCanvas.h.

Float_t DisplayCanvas::m_TowerWidth [private]
 

Definition at line 70 of file DisplayCanvas.h.

TObjArray * DisplayCanvas::m_acdped [private]
 

Definition at line 60 of file DisplayCanvas.h.

Float_t DisplayCanvas::m_axis_width [private]
 

Definition at line 68 of file DisplayCanvas.h.

TCanvas * DisplayCanvas::m_canvas [private]
 

Definition at line 32 of file DisplayCanvas.h.

Int_t DisplayCanvas::m_currentevent [private]
 

Definition at line 66 of file DisplayCanvas.h.

DigiEvent * DisplayCanvas::m_event [private]
 

Definition at line 54 of file DisplayCanvas.h.

TObjArray * DisplayCanvas::m_eventTextList [private]
 

Definition at line 63 of file DisplayCanvas.h.

EDControl * DisplayCanvas::m_evtCtrl [private]
 

Definition at line 52 of file DisplayCanvas.h.

TNode * DisplayCanvas::m_frameNode [private]
 

Definition at line 42 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_infoPad [private]
 

Definition at line 33 of file DisplayCanvas.h.

TObjArray * DisplayCanvas::m_ped [private]
 

Definition at line 59 of file DisplayCanvas.h.

Recon * DisplayCanvas::m_recon [private]
 

Definition at line 55 of file DisplayCanvas.h.

Bool_t DisplayCanvas::m_scanForward [private]
 

Definition at line 65 of file DisplayCanvas.h.

TNode * DisplayCanvas::m_towerNode [private]
 

Definition at line 43 of file DisplayCanvas.h.

TObjArray * DisplayCanvas::m_xgtped [private]
 

Definition at line 61 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_xyTopPad [private]
 

Definition at line 37 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_yxTopPad [private]
 

Definition at line 38 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_zxpad [private]
 

Definition at line 35 of file DisplayCanvas.h.

TPad * DisplayCanvas::m_zypad [private]
 

Definition at line 36 of file DisplayCanvas.h.

TTree * DisplayCanvas::rTree [private]
 

Definition at line 57 of file DisplayCanvas.h.

Float_t DisplayCanvas::scale_factor [private]
 

Definition at line 73 of file DisplayCanvas.h.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:20:07 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000