LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
HeaderPad.cxx
Go to the documentation of this file.
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,
24  const char* ti,
25  double x1,
26  double y1,
27  double x2,
28  double y2,
29  const char* /*opt*/)
30  : DrawingPad(nm, ti, x1, y1, x2, y2)
31  {
32  fView = new evdb::View2D();
33  }
34 
35  //......................................................................
36 
38  {
39  if (fView != 0) {
40  delete fView;
41  fView = 0;
42  }
43  }
44 
45  //......................................................................
46 
47  void HeaderPad::Draw(const char* /* opt */)
48  {
49  fView->Clear();
50 
51  this->HeaderDraw()->Header(fView);
52 
53  this->Pad()->Clear();
54  this->Pad()->cd();
55  fView->Draw();
56  }
57 
58  //......................................................................
59 
60 } // namespace
void Header(evdb::View2D *view)
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:28
Render the objects from the Simulation package.
HeaderDrawer * HeaderDraw()
Definition: DrawingPad.cxx:88
Float_t y1[n_points_granero]
Definition: compare.C:5
Float_t x1[n_points_granero]
Definition: compare.C:5
A collection of drawable 2-D objects.
void Clear()
Definition: View2D.cxx:109
Float_t y2[n_points_geant4]
Definition: compare.C:26
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:23
LArSoft includes.
void Draw()
Definition: View2D.cxx:89
Base class for event display drawing pads.
Definition: DrawingPad.h:27
TPad * Pad()
Definition: DrawingPad.h:31
void Draw(const char *opt="")
Definition: HeaderPad.cxx:47
Float_t x2[n_points_geant4]
Definition: compare.C:26