HeaderPad.cxx
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////
2 /// \file HeaderPad.cxx
3 /// \brief Drawing pad for time or charge histograms
4 /// \version $Id: HeaderPad.cxx,v 1.4 2011-12-17 04:44:32 messier Exp $
5 /// \author messier@indiana.edu
6 /////////////////////////////////////////////////////////////////////////
7 #include "TPad.h"
8 #include "TText.h"
9 
11 #include "EventDisplay/HeaderPad.h"
13 
14 // static const int kTPAD = 0;
15 // static const int kQPAD = 1;
16 // static const int kRAW = 0;
17 // static const int kCALIB = 1;
18 // static const int kPE = 2;
19 // static const int kTNS = 3;
20 
21 namespace evd
22 {
23  //......................................................................
24  HeaderPad::HeaderPad(const char* nm, const char* ti,
25  double x1, double y1,
26  double x2, double y2,
27  const char* /*opt*/) :
28  DrawingPad(nm, ti, x1, y1, x2, y2)
29  {
30  fView = new evdb::View2D();
31  }
32 
33  //......................................................................
35  {
36  if (fView!=0) { delete fView; fView = 0; }
37  }
38 
39  //......................................................................
40  void HeaderPad::Draw(const char* /* opt */)
41  {
42  fView->Clear();
43 
44  this->HeaderDraw()->Header(fView);
45 
46  this->Pad()->Clear();
47  this->Pad()->cd();
48 
49  fView->Draw();
50  }
51 
52 } // end namespace evd
53 //////////////////////////////////////////////////////////////////////////
void Header(evdb::View2D *view)
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:24
Render the objects from the Simulation package.
HeaderDrawer * HeaderDraw()
Definition: DrawingPad.cxx:64
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
A collection of drawable 2-D objects.
void Clear()
Definition: View2D.cxx:109
Drawing pad for time or charge histograms.
HeaderPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
Definition: HeaderPad.cxx:24
nova event display
void Draw()
Definition: View2D.cxx:89
Base class for event display drawing pads.
Definition: DrawingPad.h:20
TPad * Pad()
Definition: DrawingPad.h:27
void Draw(const char *opt="")
Definition: HeaderPad.cxx:40