Added option for possible gaussian (Sumw2) error propagation in CalculateEfficiency()
[u/mrichter/AliRoot.git] / CORRFW / AliCFEffGrid.h
index 4df19605bcd60df2564f97f4d291ac94362275a8..c477e64eb92668c30d8653d97cb82aaa655b53ed 100644 (file)
 //                                                                    //
 //--------------------------------------------------------------------//
 
-#include "AliCFGrid.h"
+#include "AliCFGridSparse.h"
 #include "AliCFContainer.h"
-#include <TTree.h>
 class TH1D;
 class TH2D;
 class TH3D;
 
-class AliCFEffGrid : public AliCFGrid
+class AliCFEffGrid : public AliCFGridSparse
 {
  public:
   AliCFEffGrid();
@@ -34,11 +33,12 @@ class AliCFEffGrid : public AliCFGrid
   virtual TH1D* Project( Int_t ivar) const;
   virtual TH2D* Project( Int_t ivar1, Int_t ivar2) const;
   virtual TH3D* Project( Int_t ivar1, Int_t ivar2,Int_t ivar3) const;
+  virtual AliCFEffGrid* Project(Int_t,Int_t*,Double_t*,Double_t*) const {return 0x0;} //not to be used.
 
   //Efficiency calculation
-  virtual void  CalculateEfficiency(Int_t istep1, Int_t istep2);
-  virtual const AliCFVGrid*  GetNum() {return fContainer->GetGrid(fSelNum);};
-  virtual const AliCFVGrid*  GetDen() {return fContainer->GetGrid(fSelDen);};
+  virtual void  CalculateEfficiency(Int_t istep1, Int_t istep2, Option_t *option ="B");
+  virtual AliCFVGrid*  GetNum() const {return (AliCFVGrid*)fContainer->GetGrid(fSelNum);};
+  virtual AliCFVGrid*  GetDen() const {return (AliCFVGrid*)fContainer->GetGrid(fSelDen);};
   virtual void  SetContainer(const AliCFContainer &c) {fContainer=&c;};
 
   //basic operations