ROOTANA
libAnalyzerDisplay
THistogramArrayBase.cxx
Go to the documentation of this file.
1
#include "
THistogramArrayBase.h
"
2
#include "
TFancyHistogramCanvas.hxx
"
3
4
5
THistogramArrayBase::~THistogramArrayBase
(){
6
for
(
int
i = size()-1; i >= 0 ; i--){
7
delete
(*this)[i];
8
//delete tmp;
9
}
10
}
11
12
13
TH1*
THistogramArrayBase::GetHistogram
(
unsigned
i){
14
if
(i >= size()){
15
std::cerr <<
"Invalid index (="
<< i
16
<<
") requested in THistogramArrayBase::GetHistogram(int i) "
<< std::endl;
17
return
0;
18
}
19
return
(*
this
)[i];
20
}
21
22
TCanvasHandleBase
*
THistogramArrayBase::CreateCanvas
() {
23
return
new
TFancyHistogramCanvas
(
this
,
fSubTabName
);
24
}
25
26
27
28
TFancyHistogramCanvas.hxx
THistogramArrayBase.h
TCanvasHandleBase
Definition:
TCanvasHandleBase.hxx:17
TFancyHistogramCanvas
Definition:
TFancyHistogramCanvas.hxx:28
THistogramArrayBase::~THistogramArrayBase
virtual ~THistogramArrayBase()
Definition:
THistogramArrayBase.cxx:5
THistogramArrayBase::CreateCanvas
virtual TCanvasHandleBase * CreateCanvas()
Definition:
THistogramArrayBase.cxx:22
THistogramArrayBase::fSubTabName
std::string fSubTabName
Definition:
THistogramArrayBase.h:141
THistogramArrayBase::GetHistogram
TH1 * GetHistogram(unsigned i)
A helper method for accessing each histogram. Does bounds checking.
Definition:
THistogramArrayBase.cxx:13
Generated on Wed Nov 13 2024 05:01:03 for ROOTANA by
1.9.1