add histogram utilities class, correct package definitions
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALHistoUtilities.h
CommitLineData
315d1c64 1#ifndef AliEMCALHistoUtilities_H
2#define AliEMCALHistoUtilities_H
3/* Copyright(c) 1998-2002, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8//_________________________________________________________________________
9//
10//*-- Authors: J.L. Klay (LLNL) & Aleksei Pavlinov (WSU)
11
12#include <TNamed.h>
13class TList;
14class TBrowser;
15
16class AliEMCALHistoUtilities: public TNamed {
17 public:
18 AliEMCALHistoUtilities(const char *name="emcalHistoUtilities",
19 const char *tit="Histogram Utilities methods for EMCAL");
20 AliEMCALHistoUtilities(const AliEMCALHistoUtilities &) : TNamed("", ""){
21 Fatal("cpy ctor", "not implemented") ; }
22 virtual ~AliEMCALHistoUtilities();
23
24 void SetDebug(Int_t flag) {fDebug = flag;}
25 Float_t GetDebug() const {return fDebug;}
26 virtual Bool_t IsFolder() const;
27 virtual void Browse(TBrowser* b) const ;
28
29 // service routine
30 static TList *MoveHistsToList(const char* name="ListOfHists", Bool_t putToBrowser=kTRUE);
31 static void FillH1(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t w=1.);
32 static void FillH2(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t y=-99999., Double_t w=1.);
33 static int SaveListOfHists(TList *list=0, const char* name="test", Bool_t kSingleKey=kFALSE,
34 const char* opt="RECREATE");
35
36 AliEMCALHistoUtilities & operator = (const AliEMCALHistoUtilities &) {
37 Fatal("operator =", "not implemented") ; return *this ; }
38
39 private:
40 Int_t fDebug; // debug flag
41 TList* fListHist; //!
42
43 ClassDef(AliEMCALHistoUtilities,1) // EMCAL Histogram service routines
44};
45
46#endif // AliEMCALHistoUtilities_H