1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice
5 /************************************************************************
7 * Class for AliHFEcollection *
8 * Serves as a data container - currently based on internal TList *
11 * Markus Fasel <M.Fasel@gsi.de> *
12 * Matus Kalisky <matus.kalisky@cern.ch> (contact) *
13 ************************************************************************/
16 * Provides an option for storing and creating histograms outside the
18 * the performance will be improved once the TMap is used insted of TTree
26 #ifndef ALIHFECOLLECTION_H
27 #define ALIHFECOLLECTION_H
37 class AliHFEcollection : public TNamed{
41 AliHFEcollection(char* name, char* title);
42 AliHFEcollection(const AliHFEcollection &c);
43 AliHFEcollection &operator=(const AliHFEcollection &c);
44 virtual ~AliHFEcollection();
47 virtual void Browse(TBrowser *b);
49 // Set & Create functions
50 Bool_t CreateTH1F(const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
52 Bool_t CreateTH2F(const char* name, const char* title, Int_t nBinX, Float_t nMinX, Float_t nMaxX, Int_t nBinY, Float_t nMinY, Float_t nMaxY);
54 Bool_t CreateTH1Fvector1(Int_t X, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
55 Bool_t CreateTH2Fvector1(Int_t X, const char* name, const char* title, Int_t nBinX, Float_t nMinX, Float_t nMaxX, Int_t nBinY, Float_t nMinY, Float_t nMaxY);
57 Bool_t CreateTH1Fvector2(Int_t X, Int_t Y, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
60 Long64_t Merge(TCollection *list);
63 TList* GetList() const { return fListE; }
64 TObject* Get(const char* name);
65 TObject* Get(const char* name, Int_t X);
66 TObject* Get(const char* name, Int_t X, Int_t Y);
69 Bool_t CheckObject(const char* name);
70 void Copy(TObject &ref) const;
73 TList* fListE; //! Object container
75 ClassDef(AliHFEcollection, 1)