bugfix: typo in id for TreeR data type; added unit test for default data types
[u/mrichter/AliRoot.git] / CORRFW / AliCFEffGrid.h
CommitLineData
563113d0 1#ifndef ALICFEFFGRID_H
2#define ALICFEFFGRID_H
3
4/* $Id$ */
5
6//--------------------------------------------------------------------//
7// //
8// AliCFEffGrid Class //
9// Class to handle efficiency grids //
10// //
11//--------------------------------------------------------------------//
12
13#include "AliCFGrid.h"
14#include "AliCFContainer.h"
1e9dad92 15class TH1D;
16class TH2D;
17class TH3D;
563113d0 18
19class AliCFEffGrid : public AliCFGrid
20{
21 public:
22 AliCFEffGrid();
1e9dad92 23 AliCFEffGrid(const Char_t* name,const Char_t* title, const Int_t nVarIn, const Int_t* nBinIn, const Double_t *binLimitsIn=0);
563113d0 24 AliCFEffGrid(const Char_t* name,const Char_t* title,const AliCFContainer &c);
25 AliCFEffGrid(const AliCFEffGrid& eff);
26
27 virtual ~AliCFEffGrid();
28 AliCFEffGrid& operator=(const AliCFEffGrid& eff);
1e9dad92 29 virtual Double_t GetAverage() const ;
30 virtual Double_t GetAverage(Double_t *varMin,Double_t *varMax) const ;
563113d0 31 virtual Int_t GetSelNumStep() const {return fSelNum;};
32 virtual Int_t GetSelDenStep() const {return fSelDen;};
1e9dad92 33 virtual TH1D* Project( Int_t ivar) const;
34 virtual TH2D* Project( Int_t ivar1, Int_t ivar2) const;
35 virtual TH3D* Project( Int_t ivar1, Int_t ivar2,Int_t ivar3) const;
563113d0 36
37 //Efficiency calculation
38 virtual void CalculateEfficiency(Int_t istep1, Int_t istep2);
318f64b1 39 virtual const AliCFVGrid* GetNum() {return (AliCFVGrid*)fContainer->GetGrid(fSelNum);};
40 virtual const AliCFVGrid* GetDen() {return (AliCFVGrid*)fContainer->GetGrid(fSelDen);};
563113d0 41 virtual void SetContainer(const AliCFContainer &c) {fContainer=&c;};
42
43 //basic operations
44 virtual void Copy(TObject& eff) const;
45
46
47 private:
48 const AliCFContainer *fContainer; //pointer to the input AliContainer
49 Int_t fSelNum; //numerator selection step
50 Int_t fSelDen; //denominator selection step
51
52 ClassDef(AliCFEffGrid,1);
53};
54
55#endif
56