HeaderPad.cxx
Go to the documentation of this file.
1 ///
2 /// \file HeaderPad.cxx
3 /// \brief Drawing pad for time or charge histograms
4 /// \author messier@indiana.edu
5 ///
7 #include "nuevdb/EventDisplayBase/View2D.h"
9 
10 #include "TPad.h"
11 
12 namespace evd{
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  //......................................................................
22 
23  HeaderPad::HeaderPad(const char* nm, const char* ti,
24  double x1, double y1,
25  double x2, double y2,
26  const char* /*opt*/) :
27  DrawingPad(nm, ti, x1, y1, x2, y2)
28  {
29  fView = new evdb::View2D();
30  }
31 
32  //......................................................................
33 
35  {
36  if (fView!=0) { delete fView; fView = 0; }
37  }
38 
39  //......................................................................
40 
41  void HeaderPad::Draw(const char* /* opt */)
42  {
43  fView->Clear();
44 
45  this->HeaderDraw()->Header(fView);
46 
47  this->Pad()->Clear();
48  this->Pad()->cd();
49  fView->Draw();
50  }
51 
52  //......................................................................
53 
54 }// namespace
55 //////////////////////////////////////////////////////////////////////////
void Header(evdb::View2D *view)
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:23
HeaderDrawer * HeaderDraw()
Definition: DrawingPad.cxx:72
HeaderPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
Definition: HeaderPad.cxx:23
LArSoft includes.
Definition: InfoTransfer.h:33
Base class for event display drawing pads.
Definition: DrawingPad.h:29
TPad * Pad()
Definition: DrawingPad.h:37
void Draw(const char *opt="")
Definition: HeaderPad.cxx:41