Fixing memory leak (L.Gaudichet)
[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//_________________________________________________________________________
d434833b 9// This is just set of static methods for common using
315d1c64 10//
11//*-- Authors: J.L. Klay (LLNL) & Aleksei Pavlinov (WSU)
12
13#include <TNamed.h>
14class TList;
315d1c64 15
16class AliEMCALHistoUtilities: public TNamed {
17 public:
d434833b 18 AliEMCALHistoUtilities(const char *name="emcalUtilitiesRoutines",
19 const char *tit="EMCAL utility routines");
315d1c64 20 AliEMCALHistoUtilities(const AliEMCALHistoUtilities &) : TNamed("", ""){
21 Fatal("cpy ctor", "not implemented") ; }
22 virtual ~AliEMCALHistoUtilities();
23
315d1c64 24 // service routine
25 static TList *MoveHistsToList(const char* name="ListOfHists", Bool_t putToBrowser=kTRUE);
26 static void FillH1(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t w=1.);
27 static void FillH2(TList *l=0, Int_t ind=0, Double_t x=-99999., Double_t y=-99999., Double_t w=1.);
4800667c 28 static int SaveListOfHists(TList *mylist=0, const char* name="test", Bool_t kSingleKey=kFALSE,
315d1c64 29 const char* opt="RECREATE");
d434833b 30 //
31 static int ParseString(const TString &topt, TObjArray &Opt);
315d1c64 32
33 AliEMCALHistoUtilities & operator = (const AliEMCALHistoUtilities &) {
34 Fatal("operator =", "not implemented") ; return *this ; }
35
d434833b 36 ClassDef(AliEMCALHistoUtilities,1) // EMCAL utility routines
315d1c64 37};
38
39#endif // AliEMCALHistoUtilities_H