LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
HeaderPad.cxx
Go to the documentation of this file.
9 
10 #include "TPad.h"
11 #include "TText.h"
12 
13 namespace evd{
14 
15  //static const int kTPAD = 0;
16  //static const int kQPAD = 1;
17  //static const int kRAW = 0;
18  //static const int kCALIB = 1;
19  //static const int kPE = 2;
20  //static const int kTNS = 3;
21 
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  //......................................................................
34 
36  {
37  if (fView!=0) { delete fView; fView = 0; }
38  }
39 
40  //......................................................................
41 
42  void HeaderPad::Draw(const char* /* opt */)
43  {
44  fView->Clear();
45 
46  this->HeaderDraw()->Header(fView);
47 
48  this->Pad()->Clear();
49  this->Pad()->cd();
50  fView->Draw();
51  }
52 
53  //......................................................................
54 
55 }// namespace
void Header(evdb::View2D *view)
evdb::View2D * fView
Collection of drawn objects.
Definition: HeaderPad.h:23
Render the objects from the Simulation package.
HeaderDrawer * HeaderDraw()
Definition: DrawingPad.cxx:75
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:24
LArSoft includes.
void Draw()
Definition: View2D.cxx:89
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:42
Float_t x2[n_points_geant4]
Definition: compare.C:26