]>
Commit | Line | Data |
---|---|---|
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 | //_________________________________________________________________________ | |
14ce0a6e | 9 | // This is a set of histogram |
10 | // utilities for the EMCAL | |
11 | // to make some common | |
12 | // functions easier | |
315d1c64 | 13 | // |
14 | //*-- Authors: J.L. Klay (LLNL) & Aleksei Pavlinov (WSU) | |
15 | ||
16 | #include <TNamed.h> | |
17 | class TList; | |
c2d4c7af | 18 | class TH1; |
315d1c64 | 19 | |
20 | class AliEMCALHistoUtilities: public TNamed { | |
21 | public: | |
d434833b | 22 | AliEMCALHistoUtilities(const char *name="emcalUtilitiesRoutines", |
23 | const char *tit="EMCAL utility routines"); | |
315d1c64 | 24 | AliEMCALHistoUtilities(const AliEMCALHistoUtilities &) : TNamed("", ""){ |
25 | Fatal("cpy ctor", "not implemented") ; } | |
26 | virtual ~AliEMCALHistoUtilities(); | |
27 | ||
315d1c64 | 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.); | |
4800667c | 32 | static int SaveListOfHists(TList *mylist=0, const char* name="test", Bool_t kSingleKey=kFALSE, |
315d1c64 | 33 | const char* opt="RECREATE"); |
c2d4c7af | 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); | |
d434833b | 36 | // |
37 | static int ParseString(const TString &topt, TObjArray &Opt); | |
315d1c64 | 38 | |
39 | AliEMCALHistoUtilities & operator = (const AliEMCALHistoUtilities &) { | |
40 | Fatal("operator =", "not implemented") ; return *this ; } | |
41 | ||
d434833b | 42 | ClassDef(AliEMCALHistoUtilities,1) // EMCAL utility routines |
315d1c64 | 43 | }; |
44 | ||
45 | #endif // AliEMCALHistoUtilities_H |