154 |
// No ROOT histogram for generic type; see template specializations in .cpp file. |
// No ROOT histogram for generic type; see template specializations in .cpp file. |
155 |
_rootHisto = NULL; |
_rootHisto = NULL; |
156 |
} |
} |
157 |
|
// Specializations for _CreateHistos(). See Histo1DAction.cpp |
158 |
|
template<> |
159 |
|
void Histo1DAction<Int_t>::_CreateHisto(); |
160 |
|
|
161 |
|
template<> |
162 |
|
void Histo1DAction<Float_t>::_CreateHisto(); |
163 |
|
|
164 |
|
template<> |
165 |
|
void Histo1DAction<Double_t>::_CreateHisto(); |
166 |
|
|
167 |
template<class HistoType> |
template<class HistoType> |
168 |
void Histo1DAction<HistoType>::_InitHistos() { |
void Histo1DAction<HistoType>::_InitHistos() { |
169 |
|
|
170 |
_CreateHisto(); |
_CreateHisto(); |
171 |
|
if (_bins.size() < 2) // SetXAxis not called by the main program, or wrongly filled (only 1 bin limit) |
172 |
|
SetXAxis("Default X", 10, 0., 1.); |
173 |
|
|
174 |
if (_rootHisto) { |
if (_rootHisto) { |
175 |
Double_t *auxArray = new Double_t[_bins.size()]; |
Double_t *auxArray = new Double_t[_bins.size()]; |
194 |
|
|
195 |
template<class HistoType> |
template<class HistoType> |
196 |
Histo1DAction<HistoType>::~Histo1DAction() { |
Histo1DAction<HistoType>::~Histo1DAction() { |
197 |
|
|
198 |
|
delete _rootHisto; |
199 |
|
_rootHisto = NULL; |
200 |
|
|
201 |
} |
} |
202 |
|
|
203 |
template<class HistoType> |
template<class HistoType> |