Implement comparison of sim and rec CDB's, by default for the TPC/RecoParam only
[u/mrichter/AliRoot.git] / ANALYSIS / AliEventPoolOTF.h
index cc24a28..78a0798 100644 (file)
@@ -17,8 +17,9 @@ class AliLHCTagCuts;
 class AliDetectorTagCuts;
 class AliEventTagCuts;
 class AliTagAnalysis;
+class TGridResult;
 
-typedef enum {kMultiplicity, kZVertex, kEventPlane, kLeadingParticleEta, kUser1, kUser2}  EventPoolAxis_t;
+typedef enum {kMultiplicity, kZVertex, kEventPlane, kLeadingParticleEta, kLeadingParticlePhi, kUser1, kUser2}  EventPoolAxis_t;
 
 class AliEventPoolOTF : public AliVEventPool
 {
@@ -26,7 +27,7 @@ class AliEventPoolOTF : public AliVEventPool
     AliEventPoolOTF();
     AliEventPoolOTF(const char* name, const char* title = "AOD");
 
-    virtual ~AliEventPoolOTF() {;}
+    virtual ~AliEventPoolOTF();
     // Interface
     virtual TChain* GetNextChain();
     virtual void  GetCurrentBin(Float_t* /*bin*/);
@@ -43,9 +44,12 @@ class AliEventPoolOTF : public AliVEventPool
        {fValueMin[kEventPlane] = min; fValueMax[kEventPlane] = max; fValueStep[kEventPlane] = step;}
     virtual void  SetLeadingParticleEtaBinning(Float_t min, Float_t max, Float_t step)
        {fValueMin[kLeadingParticleEta] = min; fValueMax[kLeadingParticleEta] = max; fValueStep[kLeadingParticleEta] = step;}
+  virtual void  SetLeadingParticlePhiBinning(Float_t min, Float_t max, Float_t step)
+       {fValueMin[kLeadingParticlePhi] = min; fValueMax[kLeadingParticlePhi] = max; fValueStep[kLeadingParticlePhi] = step;}
 
     //
     void SetTagDirectory(const char* dirname) {fTagDirectory = dirname;};
+    void SetGridResult(TGridResult*  gridTag) {fGridTags = gridTag;};
     virtual Int_t BinNumber() const {return fBinNumber;}
            
  private:
@@ -54,18 +58,20 @@ class AliEventPoolOTF : public AliVEventPool
     void InitArrays();
     
  protected:
-    AliTagAnalysis*      fTagAnalysis;  // Pointer to tag analysis
-    AliRunTagCuts*       fRunCuts;      // Run      cuts
-    AliLHCTagCuts*       fLHCCuts;      // LHC      cuts
-    AliDetectorTagCuts*  fDetectorCuts; // Detector cuts
-    AliEventTagCuts*     fEventCuts;    // Event    cuts
-    const char*          fTagDirectory; // Directory with local tag files
+    AliTagAnalysis*      fTagAnalysis;   // Pointer to tag analysis
+    AliRunTagCuts*       fRunCuts;       // Run      cuts
+    AliLHCTagCuts*       fLHCCuts;       // LHC      cuts
+    AliDetectorTagCuts*  fDetectorCuts;  // Detector cuts
+    AliEventTagCuts*     fEventCuts;     // Event    cuts
+    TGridResult*         fGridTags;      // Tags from a grid file collection
+    TChain*              fChain;         // Current chain
+    const char*          fTagDirectory;  // Directory with local tag files
     // Common pool cuts
     // Multiplicity
-    Float_t              fValueMin[6];  // Minimum value
-    Float_t              fValueMax[6];  // Maximum value
-    Float_t              fValueStep[6]; // Step size
-    Float_t              fValue[6];     // Current value
+    Float_t              fValueMin[10];  // Minimum value
+    Float_t              fValueMax[10];  // Maximum value
+    Float_t              fValueStep[10]; // Step size
+    Float_t              fValue[10];     // Current value
     //
     Int_t                fBinNumber;    // Current bin number
     Bool_t               fNoMore;       // No more bins