Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
lareventdisplay
lareventdisplay
EventDisplay
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
///
6
#include "
lareventdisplay/EventDisplay/HeaderPad.h
"
7
#include "nuevdb/EventDisplayBase/View2D.h"
8
#include "
lareventdisplay/EventDisplay/HeaderDrawer.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
34
HeaderPad::~HeaderPad
()
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
//////////////////////////////////////////////////////////////////////////
evd::HeaderDrawer::Header
void Header(evdb::View2D *view)
Definition:
HeaderDrawer.cxx:21
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:72
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:23
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:41
evd::HeaderPad::~HeaderPad
~HeaderPad()
Definition:
HeaderPad.cxx:34
Generated by
1.8.5