3 #ifndef ALIL3_HISTOGRAM1D
4 #define ALIL3_HISTOGRAM1D
6 #include "AliL3RootTypes.h"
12 class AliL3Histogram1D {
16 Double_t *fContent; //!
33 AliL3Histogram1D(Char_t *name,Char_t *id,Int_t nxbin,Double_t xmin,Double_t xmax);
34 virtual ~AliL3Histogram1D();
37 void Fill(Double_t x,Int_t weight=1);
38 void AddBinContent(Int_t bin,Int_t weight);
39 Int_t GetMaximumBin();
40 Int_t FindBin(Double_t x);
41 Double_t GetBinContent(Int_t bin);
42 Double_t GetBinCenter(Int_t bin);
43 Int_t GetNEntries() {return fEntries;}
45 void SetBinContent(Int_t bin,Int_t value);
46 void SetThreshold(Int_t i) {fThreshold = i;}
50 void Draw(Char_t *option="hist");
51 TH1F *GetRootHisto() {return fRootHisto;}
54 ClassDef(AliL3Histogram1D,1) //1D histogram class