GRUTinizer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
TStripChartItem.h
Go to the documentation of this file.
1
#ifndef _STRIPCHARTITEM_H_
2
#define _STRIPCHARTITEM_H_
3
4
#include <string>
5
6
#include "TBits.h"
7
#include "TH1D.h"
8
#include "TVirtualPad.h"
9
10
class
TStripChart
;
11
12
class
TStripChartItem
:
public
TObject {
13
public
:
14
TStripChartItem
(){ }
15
TStripChartItem
(
const
std::string&
title
,
TStripChart
*
parent
,
double
bin_width
= 1);
16
17
void
Fill
(
double
value
);
18
void
DrawCopy
(Option_t* options =
"sameL*"
);
19
20
bool
IsVisible
() {
return
bitflags
.TestBitNumber(
kVisible
); }
21
void
SetVisible
(
bool
flag =
true
) {
bitflags
.SetBitNumber(
kVisible
, flag); }
22
23
bool
IsAutoUpdate
() {
return
bitflags
.TestBitNumber(
kAutoUpdate
); }
24
void
SetAutoUpdate
(
bool
flag =
true
) {
bitflags
.SetBitNumber(
kAutoUpdate
, flag); }
25
26
int
GetColor
() {
return
data
->GetLineColor(); }
27
void
SetColor
(
int
color) {
data
->SetLineColor(color); }
28
29
TH1*
GetHist
() {
return
data
; }
30
31
enum
{
kVisible
,
kAutoUpdate
};
32
33
~TStripChartItem
();
34
35
private
:
36
void
ExtendAxis
(
int
factor = 2);
37
38
std::string
title
;
39
std::string
name
;
40
double
bin_width
;
41
TBits
bitflags
;
42
43
int
nbins
;
44
double
xmin
,
xmax
;
45
double
ymin
,
ymax
;
46
47
TH1D*
data
;
48
TStripChart
*
parent
;
49
50
ClassDef
(
TStripChartItem
, 1)
51
};
52
53
#endif
/* _STRIPCHARTITEM_H_ */
Generated on Wed Nov 4 2015 17:27:54 for GRUTinizer by
1.8.1.2