Example macro (E.Lopez)
[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;
4800667c 27
28 virtual void Browse(TBrowser* b);
315d1c64 29
30 // service routine
31 static TList *MoveHistsToList(const char* name="ListOfHists", Bool_t putToBrowser=kTRUE);
32 static void FillH1(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t w=1.);
33 static void FillH2(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t y=-99999., Double_t w=1.);
4800667c 34 static int SaveListOfHists(TList *mylist=0, const char* name="test", Bool_t kSingleKey=kFALSE,
315d1c64 35 const char* opt="RECREATE");
36
37 AliEMCALHistoUtilities & operator = (const AliEMCALHistoUtilities &) {
38 Fatal("operator =", "not implemented") ; return *this ; }
39
40 private:
41 Int_t fDebug; // debug flag
42 TList* fListHist; //!
43
44 ClassDef(AliEMCALHistoUtilities,1) // EMCAL Histogram service routines
45};
46
47#endif // AliEMCALHistoUtilities_H