PlottI
 All Classes Files Functions Variables Enumerations Enumerator Pages
Macros | Functions
functionality.h File Reference

Go to the source code of this file.

Functions

template<class AO >
Int_t GetXfirstFilledBin (AO *hst)
 
template<class AO >
Int_t GetXlastFilledBin (AO *hst)
 
void CleanUpHistogram (TH1 *hist, Double_t factor)
 

Function Documentation

void CleanUpHistogram ( TH1 *  hist,
Double_t  factor 
)

Sets bin contents of bins with too large uncertainties to zero.

The function finds the first bin (from the left) where the errorbar exceeds more than 100*factor percent of the range that is spanned by the histogram values and sets the content of this and all following bins to zero

template<class AO >
Int_t GetXfirstFilledBin ( AO *  hst)

Finds the first bin from the left with content > 0, if all bins (except last) are empty 0 is returned

template<class AO >
Int_t GetXlastFilledBin ( AO *  hst)

Finds the first bin from the right with content > 0, if all bins (except first) are empty last bin is returned