1 #ifndef ALILNHISTOMAP_H
2 #define ALILNHISTOMAP_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 // class for handling histograms
8 // author: Eulogio Serradilla <eulogio.serradilla@cern.ch>
17 class AliLnHistoMap: public TObject
22 virtual ~AliLnHistoMap();
24 virtual Int_t Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0);
25 virtual Int_t Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const;
27 TObject* Get(const TString& keyname) const { return fHistoMap->GetValue(keyname.Data()); }
28 TObject* Get(const char* keyname) const { return fHistoMap->GetValue(keyname); }
30 TObject* Add(const TString& keyname, TObject* value);
32 TH1D* Add(const TString& name, Int_t nbins, Double_t xmin, Double_t xmax, const TString& title="", const TString& xlabel="", const TString& ylabel="");
34 TH2D* Add(const TString& name, Int_t xbins, Double_t xmin, Double_t xmax, Int_t ybins, Double_t ymin, Double_t ymax, const TString& title="", const TString& xlabel="", const TString& ylabel="");
38 AliLnHistoMap(const AliLnHistoMap& other);
39 AliLnHistoMap& operator=(const AliLnHistoMap& other);
43 TMap* fHistoMap; //-> histogram map
45 ClassDef(AliLnHistoMap, 1)
48 #endif // ALILNHISTOMAP_H