/[PAMELA software]/PamCut/CollectionActions/Histo1DActions/Histo1DAction/Histo1DAction.h
ViewVC logotype

Diff of /PamCut/CollectionActions/Histo1DActions/Histo1DAction/Histo1DAction.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Tue Oct 27 10:17:46 2009 UTC revision 1.4 by pam-fi, Tue Dec 8 17:37:25 2009 UTC
# Line 154  void Histo1DAction<HistoType>::_CreateHi Line 154  void Histo1DAction<HistoType>::_CreateHi
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()];
# Line 183  void Histo1DAction<HistoType>::_InitHist Line 194  void Histo1DAction<HistoType>::_InitHist
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>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23