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

View showing calorimetric particle ID information. More...

#include <CalorView.h>

Inheritance diagram for gar::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 21 of file CalorView.h.

Constructor & Destructor Documentation

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

Definition at line 22 of file CalorView.cxx.

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

Definition at line 44 of file CalorView.cxx.

45 {
46  //if(fDeDxPad){ delete fDeDxPad; fDeDxPad = 0;}
47  //if(fKEPad){ delete fKEPad; fKEPad = 0;}
48 }

Member Function Documentation

void gar::evd::CalorView::CloseWindow ( )

Definition at line 51 of file CalorView.cxx.

52 {
53  delete this;
54 }
const char* gar::evd::CalorView::Description ( ) const
inline

Definition at line 33 of file CalorView.h.

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

Definition at line 58 of file CalorView.cxx.

59 {
60 
61  //evdb::Canvas::fCanvas->ls();
62  fDeDxPad->Pad()->cd();
63  fDeDxPad->Draw();
64 
65  fKEPad->Pad()->cd();
66  fKEPad->Draw();
67 
68  evdb::Canvas::fCanvas->Update();
69 }
CalorPad * fDeDxPad
Graphics pad for dEdx vs. Res. range.
Definition: CalorView.h:40
CalorPad * fKEPad
Graphics pad for KE vs. Total range.
Definition: CalorView.h:41
void Draw(const char *opt=0)
Definition: CalorPad.cxx:103
const char* gar::evd::CalorView::PrintTag ( ) const
inline

Definition at line 34 of file CalorView.h.

34 { return "larcalor"; }

Member Data Documentation

CalorPad* gar::evd::CalorView::fDeDxPad
private

Graphics pad for dEdx vs. Res. range.

Definition at line 40 of file CalorView.h.

CalorPad* gar::evd::CalorView::fKEPad
private

Graphics pad for KE vs. Total range.

Definition at line 41 of file CalorView.h.


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