]> git.uio.no Git - u/mrichter/AliRoot.git/blame - CORRFW/AliCFContainer.h
Add Config/HighVoltage directory and entry
[u/mrichter/AliRoot.git] / CORRFW / AliCFContainer.h
CommitLineData
563113d0 1#ifndef ALICFCONTAINER_H
2#define ALICFCONTAINER_H
3
4/* $Id$ */
5
6//--------------------------------------------------------------------//
7// //
8// AliCFContainer Class //
9// Class to handle input data for correction Framework //
10// //
11//--------------------------------------------------------------------//
12
13#include "AliCFFrame.h"
14
1e9dad92 15class TH1D;
16class TH2D;
17class TH3D;
18class AliCFVGrid;
563113d0 19
20class AliCFContainer : public AliCFFrame
21{
22 public:
23 AliCFContainer();
24 AliCFContainer(const Char_t* name,const Char_t* title);
db6722a5 25 AliCFContainer(const Char_t* name, const Char_t* title,const Int_t nSelStep, const Int_t nVarIn, const Int_t* nBinIn, const Double_t *binLimitsIn=0, const Bool_t useSparse = kFALSE);
563113d0 26 AliCFContainer(const AliCFContainer& c);
27
28 virtual ~AliCFContainer();
29 AliCFContainer& operator=(const AliCFContainer& corr);
30 virtual Int_t GetNStep() const {return fNStep;};
1e9dad92 31 virtual void SetBinLimits(Int_t varindex, Double_t * array);
32 virtual void Fill(Double_t *var, Int_t istep, Double_t weight=1.);
563113d0 33
34 virtual Float_t GetOverFlows(Int_t var,Int_t istep) const;
35 virtual Float_t GetUnderFlows(Int_t var,Int_t istep)const ;
563113d0 36 virtual Float_t GetEntries(Int_t istep)const ;
37 virtual Int_t GetEmptyBins(Int_t istep)const ;
1e9dad92 38 virtual Int_t GetEmptyBins(Int_t istep, Double_t *varMin,Double_t *varMax) const ;
39 virtual Double_t GetIntegral(Int_t istep) const ;
40 virtual Double_t GetIntegral(Int_t istep, Double_t *varMin,Double_t *varMax) const ;
563113d0 41 //basic operations
42
43 virtual void Copy(TObject& c) const;
1e9dad92 44 virtual void Add(AliCFContainer* aContainerToAdd, Double_t c=1.);
563113d0 45 virtual Long64_t Merge(TCollection* list);
46
1e9dad92 47 virtual TH1D* ShowProjection( Int_t ivar, Int_t istep) const;
48 virtual TH2D* ShowProjection( Int_t ivar1, Int_t ivar2, Int_t istep) const;
49 virtual TH3D* ShowProjection( Int_t ivar1, Int_t ivar2,Int_t ivar3, Int_t istep) const;
50 virtual TH1D* ShowSlice( Int_t ivar, Double_t *varMin, Double_t *varMax, Int_t istep) const;
51 virtual AliCFVGrid * GetGrid(Int_t istep) const {return fGrid[istep];};
563113d0 52
53 private:
54 Int_t fNStep; //number of selection steps
1e9dad92 55 AliCFVGrid **fGrid;//[fNStep]
563113d0 56
1e9dad92 57 ClassDef(AliCFContainer,2);
563113d0 58};
59
60#endif
61