/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /************************************************************************ * * * Class for AliHFEcollection * * Serves as a data container - currently based on internal TList * * * * Authors: * * Markus Fasel * * Matus Kalisky (contact) * ************************************************************************/ /* * Provides an option for storing and creating histograms outside the * analysis class * the performance will be improved once the TMap is used insted of TTree */ /* * vesion: 1.0.1 */ #ifndef ALIHFECOLLECTION_H #define ALIHFECOLLECTION_H #ifndef ROOT_TNamed #include "TNamed.h" #endif class TList; class TCollection; class TBrowser; class AliHFEcollection : public TNamed{ public: AliHFEcollection(); AliHFEcollection(char* name, char* title); AliHFEcollection(const AliHFEcollection &c); AliHFEcollection &operator=(const AliHFEcollection &c); virtual ~AliHFEcollection(); virtual void Browse(TBrowser *b); // Set & Create functions Bool_t CreateTH1F(const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax); 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); Bool_t CreateTH1Fvector1(Int_t X, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax); 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); Bool_t CreateTH1Fvector2(Int_t X, Int_t Y, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax); Long64_t Merge(TCollection *list); // Get functions TList* GetList() const { return fListE; } TObject* Get(const char* name); TObject* Get(const char* name, Int_t X); TObject* Get(const char* name, Int_t X, Int_t Y); private: Bool_t CheckObject(const char* name); void Copy(TObject &ref) const; private: TList* fListE; //! Object container ClassDef(AliHFEcollection, 1) }; #endif