]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliRunAnalysis.h
IO fixes for the new root release. Deleting the list posted at the task output now...
[u/mrichter/AliRoot.git] / ANALYSIS / AliRunAnalysis.h
index 127084ce6032b09d5141c4beb95b4dc029c45bbe..d2419218a4a4e9c01634e20704fe03c8a57b9092 100644 (file)
@@ -1,25 +1,21 @@
 #ifndef ALIRUNANALYSIS_H
 #define ALIRUNANALYSIS_H
-//________________________________
+
 ///////////////////////////////////////////////////////////
 //
 // class AliRunAnalysis
-//
 // Analysis manager
-//
-//
-// Piotr.Skowronski@cern.ch
+// Author: Piotr.Skowronski@cern.ch
 //
 ///////////////////////////////////////////////////////////
 
-class AliEventCut;
-class TObjArray;
-class TFile;
-
-#include <TString.h>
 #include <TTask.h>
+#include <TObjArray.h>
 
-#include "AliAnalysis.h"
+class AliEventCut;
+class AliReader;
+class AliAnalysis;
+class AliAOD;
 
 class AliRunAnalysis: public TTask
 {
@@ -27,25 +23,32 @@ class AliRunAnalysis: public TTask
     AliRunAnalysis();
     virtual ~AliRunAnalysis();
     
-    Int_t Run();
-    void  Add(AliAnalysis* a);
-    void  ReadKinematics(Bool_t flag){fReadKinematics = flag;}
+    Int_t         Run();
+    void          Add(TTask *t){TTask::Add(t);}
+    void          Add(AliAnalysis* a);
+    void          SetReader(AliReader* reader){fReader = reader;}
+    
+    const char*   GetName() const {return "RunAnalysis";}
+    void          EventCutOnRec(Bool_t flag){fCutOnRec = flag;}
+    void          EventCutOnSim(Bool_t flag){fCutOnSim = flag;}
+    void          SetEventCut(AliEventCut* evcut);
+    void          SetOwner(Bool_t owner=kTRUE){fAnalysies.SetOwner(owner);}
     
-    Int_t GetDebug() {return AliAnalysis::GetDebug();}
-    void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names;
   protected:
-    TObjArray*    fAnalysies;//arry with analysies
-    TObjArray*    fDirs;//arry with directories to read data from
+    TObjArray     fAnalysies;//arry with analysies
+    AliReader*    fReader;//arry with directories to read data from
     
     AliEventCut*  fEventCut;//event cut    
     
-    TString       fFileName;//name of the file with ESDs
-    Bool_t        fReadKinematics;
+    Bool_t        fCutOnSim;//flag indicating that event cut is performed on simulated particles 
+    Bool_t        fCutOnRec;//flag indicating that event cut is performed on reconstructed tracks
     
-    TString& GetDirName(Int_t entry);
-    TFile* OpenFile(Int_t n);
+    Bool_t        Rejected(AliAOD* recevent, AliAOD* simevent);
     
   private:
+    AliRunAnalysis(const AliRunAnalysis & src);
+    AliRunAnalysis & operator=(const AliRunAnalysis & src);
+
     void SetName(const char *){}//change SetName to be private
     
     ClassDef(AliRunAnalysis,1)