]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG3/hfe/AliHFEcollection.h
extra check on pointer
[u/mrichter/AliRoot.git] / PWG3 / hfe / AliHFEcollection.h
CommitLineData
809a4336 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice
3 */
4
50685501 5//
6// Class for AliHFEcollection
7// Serves as a data container - currently based on internal TList
8//
9// Authors:
10// Markus Fasel <M.Fasel@gsi.de>
11// Matus Kalisky <matus.kalisky@cern.ch> (contact)
12//
13
14
15//
16// Provides an option for storing and creating histograms outside the
17// analysis class
18// the performance will be improved once the TMap is used insted of TTree
19//
809a4336 20
21/*
22 * vesion: 1.0.1
23 */
24
25
75d81601 26#ifndef ALIHFECOLLECTION_H
27#define ALIHFECOLLECTION_H
809a4336 28
29#ifndef ROOT_TNamed
30#include "TNamed.h"
31#endif
32
33class TList;
34class TCollection;
35class TBrowser;
36
37class AliHFEcollection : public TNamed{
38
39 public:
40 AliHFEcollection();
41 AliHFEcollection(char* name, char* title);
42 AliHFEcollection(const AliHFEcollection &c);
43 AliHFEcollection &operator=(const AliHFEcollection &c);
44 virtual ~AliHFEcollection();
45
46
75d81601 47 virtual void Browse(TBrowser *b);
809a4336 48
49 // Set & Create functions
50 Bool_t CreateTH1F(const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
51
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);
53
75d81601 54 Bool_t CreateTH1Fvector1(Int_t X, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
9bcfd1ab 55 Bool_t CreateTH1Fvector2(Int_t X, Int_t Y, const char* name, const char* title, Int_t nBin, Float_t nMin, Float_t nMax);
75d81601 56 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);
9bcfd1ab 57 Bool_t CreateProfile(const char* name, const char* title, Int_t nbins, Double_t xmin, Double_t xmax);
58 Bool_t CreateTHnSparse(const char* name, const char* title, Int_t dim, Int_t* nbins, Double_t* xmin, Double_t* xmax);
809a4336 59
9bcfd1ab 60 Bool_t BinLogAxis(const char* name, Int_t dim);
61
809a4336 62
63 Long64_t Merge(TCollection *list);
64
65 // Get functions
9bcfd1ab 66 TList* GetList() const { return fList; }
809a4336 67 TObject* Get(const char* name);
809a4336 68
9bcfd1ab 69 // Fill functions
70 Bool_t Fill(const char* name, Double_t v);
71 Bool_t Fill(const char* name, Int_t X, Double_t v);
72 Bool_t Fill(const char* name, Int_t X, Int_t Y, Double_t v);
73 Bool_t Fill(const char* name, Double_t v1, Double_t v2);
74 Bool_t Fill(const char* name, Int_t X, Double_t v1, Double_t v2);
809a4336 75 private:
75d81601 76 Bool_t CheckObject(const char* name);
809a4336 77 void Copy(TObject &ref) const;
78
79 private:
9bcfd1ab 80 TList* fList; //! Object container
809a4336 81
82 ClassDef(AliHFEcollection, 1)
83
84};
85
86#endif