]>
Commit | Line | Data |
---|---|---|
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 | // This is a set of histogram | |
10 | // utilities for the EMCAL | |
11 | // to make some common | |
12 | // functions easier | |
13 | // | |
14 | //*-- Authors: J.L. Klay (LLNL) & Aleksei Pavlinov (WSU) | |
15 | ||
16 | #include <TNamed.h> | |
17 | class TList; | |
18 | class TH1; | |
19 | ||
20 | class AliEMCALHistoUtilities: public TNamed { | |
21 | public: | |
22 | AliEMCALHistoUtilities(const char *name="emcalUtilitiesRoutines", | |
23 | const char *tit="EMCAL utility routines"); | |
24 | AliEMCALHistoUtilities(const AliEMCALHistoUtilities &) : TNamed("", ""){ | |
25 | Fatal("cpy ctor", "not implemented") ; } | |
26 | virtual ~AliEMCALHistoUtilities(); | |
27 | ||
28 | // service routine | |
29 | static TList *MoveHistsToList(const char* name="ListOfHists", Bool_t putToBrowser=kTRUE); | |
30 | static void FillH1(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t w=1.); | |
31 | static void FillH2(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t y=-99999., Double_t w=1.); | |
32 | static int SaveListOfHists(TList *mylist=0, const char* name="test", Bool_t kSingleKey=kFALSE, | |
33 | const char* opt="RECREATE"); | |
34 | static void AddToNameAndTitle(TH1 *h=0, const char *name=0, const char *title=0); | |
35 | static void AddToNameAndTitleToList(TList *l=0, const char *name=0, const char *title=0); | |
36 | // | |
37 | static int ParseString(const TString &topt, TObjArray &Opt); | |
38 | ||
39 | AliEMCALHistoUtilities & operator = (const AliEMCALHistoUtilities &) { | |
40 | Fatal("operator =", "not implemented") ; return *this ; } | |
41 | ||
42 | ClassDef(AliEMCALHistoUtilities,1) // EMCAL utility routines | |
43 | }; | |
44 | ||
45 | #endif // AliEMCALHistoUtilities_H |