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

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

Inheritance diagram for evd::HeaderPad:
evd::DrawingPad

Public Member Functions

 HeaderPad (const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
 
 ~HeaderPad ()
 
void Draw (const char *opt="")
 
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...
 

Private Attributes

evdb::View2DfView
 Collection of drawn objects. More...
 

Detailed Description

Definition at line 14 of file HeaderPad.h.

Constructor & Destructor Documentation

evd::HeaderPad::HeaderPad ( const char *  nm,
const char *  ti,
double  x1,
double  y1,
double  x2,
double  y2,
const char *  opt 
)

Definition at line 24 of file HeaderPad.cxx.

References fView.

27  :
28  DrawingPad(nm, ti, x1, y1, x2, y2)
29  {
30  fView = new evdb::View2D();
31  }
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:24
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
static constexpr Double_t nm
Definition: Munits.h:133
DrawingPad(const char *nm, const char *ti, double x1, double y1, double y2, double x2)
Definition: DrawingPad.cxx:34
evd::HeaderPad::~HeaderPad ( )

Definition at line 34 of file HeaderPad.cxx.

References fView.

35  {
36  if (fView!=0) { delete fView; fView = 0; }
37  }
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:24

Member Function Documentation

void evd::HeaderPad::Draw ( const char *  opt = "")

Definition at line 40 of file HeaderPad.cxx.

References evdb::View2D::Clear(), evdb::View2D::Draw(), fView, evd::HeaderDrawer::Header(), evd::DrawingPad::HeaderDraw(), and evd::DrawingPad::Pad().

Referenced by evd::HardwareView::Draw(), evd::XZYZProjectionsView::Draw(), evd::HardwareView::HardwareView(), and evd::XZYZProjectionsView::XZYZProjectionsView().

41  {
42  fView->Clear();
43 
44  this->HeaderDraw()->Header(fView);
45 
46  this->Pad()->Clear();
47  this->Pad()->cd();
48 
49  fView->Draw();
50  }
void Header(evdb::View2D *view)
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:24
HeaderDrawer * HeaderDraw()
Definition: DrawingPad.cxx:64
void Clear()
Definition: View2D.cxx:109
void Draw()
Definition: View2D.cxx:89
TPad * Pad()
Definition: DrawingPad.h:27
GeometryDrawer * evd::DrawingPad::GeometryDraw ( )
inherited

Provide access to the drawer for the detector geometry

Definition at line 73 of file DrawingPad.cxx.

References evd::DrawingPad::fGeometryDraw.

Referenced by evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and evd::DrawingPad::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 ( )
inherited

Provide access to the drawer for the event header

Definition at line 64 of file DrawingPad.cxx.

References evd::DrawingPad::fHeaderDraw.

Referenced by Draw(), evd::Display3DPad::Draw(), and evd::DrawingPad::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 ( )
inlineinherited
RawDataDrawer * evd::DrawingPad::RawDataDraw ( )
inherited

Provide access to the drawer for the RawData classes

Definition at line 91 of file DrawingPad.cxx.

References evd::DrawingPad::fRawDataDraw.

Referenced by evd::TZProjPad::AutoZoom(), evd::TQPad::Draw(), evd::HardwarePad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and evd::DrawingPad::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 ( )
inherited

Provide access to the drawer for RecoBase classes

Definition at line 101 of file DrawingPad.cxx.

References evd::DrawingPad::fRecoBaseDraw.

Referenced by evd::TQPad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and evd::DrawingPad::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 ( )
inherited

Provide access to the drawer for the Simulation classes

Definition at line 82 of file DrawingPad.cxx.

References evd::DrawingPad::fSimulationDraw.

Referenced by evd::TZProjPad::AutoZoomTruth(), evd::MCBriefPad::Draw(), evd::TQPad::Draw(), evd::Display3DPad::Draw(), evd::TZProjPad::Draw(), and evd::DrawingPad::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
protectedinherited

Drawer for detector geometry.

Definition at line 39 of file DrawingPad.h.

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

HeaderDrawer* evd::DrawingPad::fHeaderDraw
protectedinherited

Drawer for event header info.

Definition at line 38 of file DrawingPad.h.

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

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

Drawer for raw data.

Definition at line 41 of file DrawingPad.h.

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

RecoBaseDrawer* evd::DrawingPad::fRecoBaseDraw
protectedinherited

Drawer for recobase objects.

Definition at line 42 of file DrawingPad.h.

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

SimulationDrawer* evd::DrawingPad::fSimulationDraw
protectedinherited

Drawer for simulation objects.

Definition at line 40 of file DrawingPad.h.

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

evdb::View2D* evd::HeaderPad::fView
private

Collection of drawn objects.

Definition at line 24 of file HeaderPad.h.

Referenced by Draw(), HeaderPad(), and ~HeaderPad().


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