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

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

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/EventDisplay/DrawingPad.h"

Inheritance diagram for evd::DrawingPad:
evd::Display3DPad evd::HardwarePad evd::HeaderPad evd::MCBriefPad evd::TQPad evd::TZProjPad

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 ()
 

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...
 

Detailed Description

Base class for event display drawing pads.

Definition at line 20 of file DrawingPad.h.

Constructor & Destructor Documentation

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 34 of file DrawingPad.cxx.

References fPad.

37  :
38  fHeaderDraw(0),
39  fGeometryDraw(0),
40  fSimulationDraw(0),
41  fRawDataDraw(0),
42  fRecoBaseDraw(0)
43  {
44  fPad = new TPad(nm,ti,x1,y1,x2,y2);
45  fPad->Draw();
46  fPad->cd();
47  }
Float_t y1[n_points_granero]
Definition: compare.C:5
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:39
Float_t x1[n_points_granero]
Definition: compare.C:5
static constexpr Double_t nm
Definition: Munits.h:133
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:42
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:41
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:37
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:38
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:40
evd::DrawingPad::~DrawingPad ( )

Definition at line 50 of file DrawingPad.cxx.

References fGeometryDraw, fHeaderDraw, fPad, fRawDataDraw, fRecoBaseDraw, and fSimulationDraw.

51  {
52  if (fHeaderDraw) { delete fHeaderDraw; fHeaderDraw = 0; }
53  if (fGeometryDraw) { delete fGeometryDraw; fGeometryDraw = 0; }
54  if (fSimulationDraw) { delete fSimulationDraw; fSimulationDraw = 0; }
55  if (fRawDataDraw) { delete fRawDataDraw; fRawDataDraw = 0; }
56  if (fRecoBaseDraw) { delete fRecoBaseDraw; fRecoBaseDraw = 0; }
57  if (fPad) { delete fPad; fPad = 0; }
58  }
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:39
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:42
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:41
TPad * fPad
The ROOT graphics pad.
Definition: DrawingPad.h:37
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:38
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:40

Member Function Documentation

GeometryDrawer * evd::DrawingPad::GeometryDraw ( )

Provide access to the drawer for the detector geometry

Definition at line 73 of file DrawingPad.cxx.

References fGeometryDraw.

Referenced by evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and Pad().

74  {
75  if (fGeometryDraw==0) fGeometryDraw = new GeometryDrawer();
76  return fGeometryDraw;
77  }
GeometryDrawer * fGeometryDraw
Drawer for detector geometry.
Definition: DrawingPad.h:39
HeaderDrawer * evd::DrawingPad::HeaderDraw ( )

Provide access to the drawer for the event header

Definition at line 64 of file DrawingPad.cxx.

References fHeaderDraw.

Referenced by evd::HeaderPad::Draw(), evd::Display3DPad::Draw(), and Pad().

65  {
66  if (fHeaderDraw==0) fHeaderDraw = new HeaderDrawer();
67  return fHeaderDraw;
68  }
HeaderDrawer * fHeaderDraw
Drawer for event header info.
Definition: DrawingPad.h:38
TPad* evd::DrawingPad::Pad ( )
inline
RawDataDrawer * evd::DrawingPad::RawDataDraw ( )

Provide access to the drawer for the RawData classes

Definition at line 91 of file DrawingPad.cxx.

References fRawDataDraw.

Referenced by evd::TZProjPad::AutoZoom(), evd::TQPad::Draw(), evd::HardwarePad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and Pad().

92  {
93  if (fRawDataDraw==0) fRawDataDraw = new RawDataDrawer();
94  return fRawDataDraw;
95  }
RawDataDrawer * fRawDataDraw
Drawer for raw data.
Definition: DrawingPad.h:41
RecoBaseDrawer * evd::DrawingPad::RecoBaseDraw ( )

Provide access to the drawer for RecoBase classes

Definition at line 101 of file DrawingPad.cxx.

References fRecoBaseDraw.

Referenced by evd::TQPad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and Pad().

102  {
103  if (fRecoBaseDraw==0) fRecoBaseDraw = new RecoBaseDrawer();
104  return fRecoBaseDraw;
105  }
RecoBaseDrawer * fRecoBaseDraw
Drawer for recobase objects.
Definition: DrawingPad.h:42
SimulationDrawer * evd::DrawingPad::SimulationDraw ( )

Provide access to the drawer for the Simulation classes

Definition at line 82 of file DrawingPad.cxx.

References fSimulationDraw.

Referenced by evd::TZProjPad::AutoZoomTruth(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and Pad().

83  {
84  if (fSimulationDraw==0) fSimulationDraw = new SimulationDrawer();
85  return fSimulationDraw;
86  }
SimulationDrawer * fSimulationDraw
Drawer for simulation objects.
Definition: DrawingPad.h:40

Member Data Documentation

GeometryDrawer* evd::DrawingPad::fGeometryDraw
protected

Drawer for detector geometry.

Definition at line 39 of file DrawingPad.h.

Referenced by GeometryDraw(), and ~DrawingPad().

HeaderDrawer* evd::DrawingPad::fHeaderDraw
protected

Drawer for event header info.

Definition at line 38 of file DrawingPad.h.

Referenced by HeaderDraw(), and ~DrawingPad().

TPad* evd::DrawingPad::fPad
protected
RawDataDrawer* evd::DrawingPad::fRawDataDraw
protected

Drawer for raw data.

Definition at line 41 of file DrawingPad.h.

Referenced by RawDataDraw(), and ~DrawingPad().

RecoBaseDrawer* evd::DrawingPad::fRecoBaseDraw
protected

Drawer for recobase objects.

Definition at line 42 of file DrawingPad.h.

Referenced by RecoBaseDraw(), and ~DrawingPad().

SimulationDrawer* evd::DrawingPad::fSimulationDraw
protected

Drawer for simulation objects.

Definition at line 40 of file DrawingPad.h.

Referenced by SimulationDraw(), and ~DrawingPad().


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