]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliRunAnalysis.h
Generator for ISAJET events (A. Bogdanov)
[u/mrichter/AliRoot.git] / ANALYSIS / AliRunAnalysis.h
index a410dda53dd3e4bc51595b6191de583e9b119014..6ec41a2181560a019da2b5998166103380a7e83c 100644 (file)
@@ -1,24 +1,21 @@
 #ifndef ALIRUNANALYSIS_H
 #define ALIRUNANALYSIS_H
-//________________________________
+
 ///////////////////////////////////////////////////////////
 //
 // class AliRunAnalysis
-//
 // Analysis manager
-//
-//
-// Piotr.Skowronski@cern.ch
+// Author: Piotr.Skowronski@cern.ch
 //
 ///////////////////////////////////////////////////////////
 
 #include <TTask.h>
 #include <TObjArray.h>
-#include "AliAnalysis.h"
 
 class AliEventCut;
-class TFile;
 class AliReader;
+class AliAnalysis;
+class AliAOD;
 
 class AliRunAnalysis: public TTask
 {
@@ -27,13 +24,15 @@ class AliRunAnalysis: public TTask
     virtual ~AliRunAnalysis();
     
     Int_t         Run();
+    void          Add(TTask *t){TTask::Add(t);}
     void          Add(AliAnalysis* a);
     void          SetReader(AliReader* reader){fReader = reader;}
     
-    const char*   GetName(){return "RunAnalysis";}
+    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);}
     
   protected:
     TObjArray     fAnalysies;//arry with analysies
@@ -44,7 +43,7 @@ class AliRunAnalysis: public TTask
     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
     
-    Bool_t        Pass(AliAOD* recevent, AliAOD* simevent);
+    Bool_t        Rejected(AliAOD* recevent, AliAOD* simevent);
     
   private:
     void SetName(const char *){}//change SetName to be private