Public Member Functions | Protected Attributes | List of all members
gar::evd::DrawingPad Class Reference

Base class for event display drawing pads. More...

#include <DrawingPad.h>

Inheritance diagram for gar::evd::DrawingPad:
gar::evd::CalorPad gar::evd::Display3DPad gar::evd::HeaderPad gar::evd::MCBriefPad

Public Member Functions

 DrawingPad (const char *nm, const char *ti, double x1, double y1, double y2, double x2)
 
 ~DrawingPad ()
 
TPad * Pad ()
 
HeaderDrawerHeaderDraw ()
 
GeometryDrawerGeometryDraw ()
 
SimulationDrawerSimulationDraw ()
 
RawDataDrawerRawDataDraw ()
 
RecoBaseDrawerRecoBaseDraw ()
 
AnalysisBaseDrawerAnalysisBaseDraw ()
 
HitSelector * HitSelectorGet ()
 

Protected Attributes

TPad * fPad
 The ROOT graphics pad. More...
 
HeaderDrawerfHeaderDraw
 Drawer for event header info. More...
 
GeometryDrawerfGeometryDraw
 Drawer for detector geometry. More...
 
SimulationDrawerfSimulationDraw
 Drawer for simulation objects. More...
 
RawDataDrawerfRawDataDraw
 Drawer for raw data. More...
 
RecoBaseDrawerfRecoBaseDraw
 Drawer for recobase objects. More...
 
AnalysisBaseDrawerfAnalysisBaseDraw
 Drawer for analysisbase objects. More...
 

Detailed Description

Base class for event display drawing pads.

Definition at line 23 of file DrawingPad.h.

Constructor & Destructor Documentation

gar::evd::DrawingPad::DrawingPad ( const char *  nm,
const char *  ti,
double  x1,
double  y1,
double  x2,
double  y2 
)

Create a drawing pad for the event display

Parameters
nm: Name of the TPad
ti: Title of the TPad
x1: Relative x position (0-1) of lower left corner
y1: Relative y position (0-1) of lower left corner
x2: Relative x position (0-1) of upper right corner
y2: Relative y position (0-1) of upper right corner

Definition at line 38 of file DrawingPad.cxx.

42  : fPad(0)
43  , fHeaderDraw(0) //Every pointer checked for a 0 value in the destructor should be set to 0 here. aoliv23@lsu.edu
44  , fGeometryDraw(0)
45  , fSimulationDraw(0)
46  , fRawDataDraw(0)
47  , fRecoBaseDraw(0)
49  {
50  fPad = new TPad(nm,ti,x1,y1,x2,y2);
51  fPad->Draw();
52  fPad->cd();
53  }
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:44
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:45
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:46
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:42
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:47
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:43
AnalysisBaseDrawer * fAnalysisBaseDraw
Drawer for analysisbase objects.
Definition: DrawingPad.h:48
gar::evd::DrawingPad::~DrawingPad ( )

Definition at line 57 of file DrawingPad.cxx.

58  {
59  if (fHeaderDraw) { delete fHeaderDraw; fHeaderDraw = 0; }
60  if (fGeometryDraw) { delete fGeometryDraw; fGeometryDraw = 0; }
61  if (fSimulationDraw) { delete fSimulationDraw; fSimulationDraw = 0; }
62  if (fRawDataDraw) { delete fRawDataDraw; fRawDataDraw = 0; }
63  if (fRecoBaseDraw) { delete fRecoBaseDraw; fRecoBaseDraw = 0; }
65  // if (fHitSelector) { delete fHitSelector; fHitSelector = 0; }
66  if (fPad) { delete fPad; fPad = 0; }
67  }
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:44
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:45
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:46
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:42
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:47
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:43
AnalysisBaseDrawer * fAnalysisBaseDraw
Drawer for analysisbase objects.
Definition: DrawingPad.h:48

Member Function Documentation

AnalysisBaseDrawer * gar::evd::DrawingPad::AnalysisBaseDraw ( )

Provide access to the drawer for AnalysisBase classes

Definition at line 127 of file DrawingPad.cxx.

128  {
129  if (fAnalysisBaseDraw==0) fAnalysisBaseDraw = new AnalysisBaseDrawer();
130  return fAnalysisBaseDraw;
131  }
AnalysisBaseDrawer * fAnalysisBaseDraw
Drawer for analysisbase objects.
Definition: DrawingPad.h:48
GeometryDrawer * gar::evd::DrawingPad::GeometryDraw ( )

Provide access to the drawer for the detector geometry

Definition at line 85 of file DrawingPad.cxx.

86  {
87  if (fGeometryDraw==0) fGeometryDraw = new GeometryDrawer();
88  return fGeometryDraw;
89  }
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:44
HeaderDrawer * gar::evd::DrawingPad::HeaderDraw ( )

Provide access to the drawer for the detector geometry

Definition at line 76 of file DrawingPad.cxx.

77  {
78  if (fHeaderDraw==0) fHeaderDraw = new HeaderDrawer();
79  return fHeaderDraw;
80  }
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:43
HitSelector* gar::evd::DrawingPad::HitSelectorGet ( )
TPad* gar::evd::DrawingPad::Pad ( )
inline

Definition at line 30 of file DrawingPad.h.

30 { return fPad; }
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:42
RawDataDrawer * gar::evd::DrawingPad::RawDataDraw ( )

Provide access to the drawer for the RawData classes

Definition at line 104 of file DrawingPad.cxx.

105  {
106  if (fRawDataDraw==0) fRawDataDraw = new RawDataDrawer();
107  return fRawDataDraw;
108  }
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:46
RecoBaseDrawer * gar::evd::DrawingPad::RecoBaseDraw ( )

Provide access to the drawer for RecoBase classes

Definition at line 115 of file DrawingPad.cxx.

116  {
117  if (fRecoBaseDraw==0) fRecoBaseDraw = new RecoBaseDrawer();
118  return fRecoBaseDraw;
119 
120  }
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:47
SimulationDrawer * gar::evd::DrawingPad::SimulationDraw ( )

Provide access to the drawer for the Simulation classes

Definition at line 94 of file DrawingPad.cxx.

95  {
96  if (fSimulationDraw==0) fSimulationDraw = new SimulationDrawer();
97  return fSimulationDraw;
98 
99  }
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:45

Member Data Documentation

AnalysisBaseDrawer* gar::evd::DrawingPad::fAnalysisBaseDraw
protected

Drawer for analysisbase objects.

Definition at line 48 of file DrawingPad.h.

GeometryDrawer* gar::evd::DrawingPad::fGeometryDraw
protected

Drawer for detector geometry.

Definition at line 44 of file DrawingPad.h.

HeaderDrawer* gar::evd::DrawingPad::fHeaderDraw
protected

Drawer for event header info.

Definition at line 43 of file DrawingPad.h.

TPad* gar::evd::DrawingPad::fPad
protected

The ROOT graphics pad.

Definition at line 42 of file DrawingPad.h.

RawDataDrawer* gar::evd::DrawingPad::fRawDataDraw
protected

Drawer for raw data.

Definition at line 46 of file DrawingPad.h.

RecoBaseDrawer* gar::evd::DrawingPad::fRecoBaseDraw
protected

Drawer for recobase objects.

Definition at line 47 of file DrawingPad.h.

SimulationDrawer* gar::evd::DrawingPad::fSimulationDraw
protected

Drawer for simulation objects.

Definition at line 45 of file DrawingPad.h.


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