Public Member Functions | Private Attributes | List of all members
evd::CalorView Class Reference

View showing calorimetric particle ID information. More...

#include <CalorView.h>

Inheritance diagram for evd::CalorView:

Public Member Functions

 CalorView (TGMainFrame *mf)
 
virtual ~CalorView ()
 
const char * Description () const
 
const char * PrintTag () const
 
void Draw (const char *opt="")
 
void CloseWindow ()
 

Private Attributes

CalorPadfDeDxPad
 Graphics pad for dEdx vs. Res. range. More...
 
CalorPadfKEPad
 Graphics pad for KE vs. Total range. More...
 

Detailed Description

View showing calorimetric particle ID information.

Definition at line 20 of file CalorView.h.

Constructor & Destructor Documentation

evd::CalorView::CalorView ( TGMainFrame *  mf)

Definition at line 16 of file CalorView.cxx.

16  : evdb::Canvas(mf)
17 {
18 
20 
21  evdb::Canvas::fCanvas->cd();
22  if (anaOpt->fDrawShowerCalor){
23  fDeDxPad = new CalorPad("fDeDxPad","DeDx Pad",0.0,0.5,1.0,1.0,2);
24  }
25  else{
26  fDeDxPad = new CalorPad("fDeDxPad","DeDx Pad",0.0,0.5,1.0,1.0,1);
27  }
28  evdb::Canvas::fCanvas->cd();
29  fKEPad = new CalorPad("fKEPad","Kinetic Energy Pad",0.0,0.0,1.0,0.5,0);
30 
31  this->Connect("CloseWindow()","evd::CalorView",this,"CloseWindow()");
32 
33  evdb::Canvas::fCanvas->Update();
34 }
CalorPad * fDeDxPad
Graphics pad for dEdx vs. Res. range.
Definition: CalorView.h:39
CalorPad * fKEPad
Graphics pad for KE vs. Total range.
Definition: CalorView.h:40
evd::CalorView::~CalorView ( )
virtual

Definition at line 38 of file CalorView.cxx.

39 {
40  //if(fDeDxPad){ delete fDeDxPad; fDeDxPad = 0;}
41  //if(fKEPad){ delete fKEPad; fKEPad = 0;}
42 }

Member Function Documentation

void evd::CalorView::CloseWindow ( )

Definition at line 45 of file CalorView.cxx.

46 {
47  delete this;
48 }
const char* evd::CalorView::Description ( ) const
inline

Definition at line 32 of file CalorView.h.

32 { return "Calorimetric PID Display"; }
void evd::CalorView::Draw ( const char *  opt = "")

Definition at line 52 of file CalorView.cxx.

53 {
54 
55  //evdb::Canvas::fCanvas->ls();
56  fDeDxPad->Pad()->cd();
57  fDeDxPad->Draw();
58 
59  fKEPad->Pad()->cd();
60  fKEPad->Draw();
61 
62  evdb::Canvas::fCanvas->Update();
63 }
void Draw(const char *opt=0)
Definition: CalorPad.cxx:94
CalorPad * fDeDxPad
Graphics pad for dEdx vs. Res. range.
Definition: CalorView.h:39
CalorPad * fKEPad
Graphics pad for KE vs. Total range.
Definition: CalorView.h:40
TPad * Pad()
Definition: DrawingPad.h:37
const char* evd::CalorView::PrintTag ( ) const
inline

Definition at line 33 of file CalorView.h.

33 { return "larcalor"; }

Member Data Documentation

CalorPad* evd::CalorView::fDeDxPad
private

Graphics pad for dEdx vs. Res. range.

Definition at line 39 of file CalorView.h.

CalorPad* evd::CalorView::fKEPad
private

Graphics pad for KE vs. Total range.

Definition at line 40 of file CalorView.h.


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