LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
HeaderPad.cxx
Go to the documentation of this file.
1
#include "
lareventdisplay/EventDisplay/HeaderPad.h
"
7
#include "
nutools/EventDisplayBase/View2D.h
"
8
#include "
lareventdisplay/EventDisplay/HeaderDrawer.h
"
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
35
HeaderPad::~HeaderPad
()
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
evd::HeaderDrawer::Header
void Header(evdb::View2D *view)
Definition:
HeaderDrawer.cxx:26
evd::HeaderPad::fView
evdb::View2D * fView
Collection of drawn objects.
Definition:
HeaderPad.h:23
HeaderDrawer.h
Render the objects from the Simulation package.
evd::DrawingPad::HeaderDraw
HeaderDrawer * HeaderDraw()
Definition:
DrawingPad.cxx:75
y1
Float_t y1[n_points_granero]
Definition:
compare.C:5
x1
Float_t x1[n_points_granero]
Definition:
compare.C:5
View2D.h
A collection of drawable 2-D objects.
evdb::View2D::Clear
void Clear()
Definition:
View2D.cxx:109
y2
Float_t y2[n_points_geant4]
Definition:
compare.C:26
HeaderPad.h
Drawing pad for time or charge histograms.
evd::HeaderPad::HeaderPad
HeaderPad(const char *nm, const char *ti, double x1, double y1, double x2, double y2, const char *opt)
Definition:
HeaderPad.cxx:24
evd
LArSoft includes.
Definition:
AnalysisBaseDrawer.cxx:50
evdb::View2D::Draw
void Draw()
Definition:
View2D.cxx:89
evd::DrawingPad
Base class for event display drawing pads.
Definition:
DrawingPad.h:29
evd::DrawingPad::Pad
TPad * Pad()
Definition:
DrawingPad.h:37
evd::HeaderPad::Draw
void Draw(const char *opt="")
Definition:
HeaderPad.cxx:42
x2
Float_t x2[n_points_geant4]
Definition:
compare.C:26
evd::HeaderPad::~HeaderPad
~HeaderPad()
Definition:
HeaderPad.cxx:35
evdb::View2D
Definition:
View2D.h:22
lareventdisplay
v07_02_02
source
lareventdisplay
EventDisplay
HeaderPad.cxx
Generated on Wed Dec 12 2018 14:42:47 for LArSoft by
1.8.11