]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliAnalysisTaskSE.h
Fix for bug report #48432: Consistent size of the PID array in the base and derived...
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskSE.h
index c47bf62f3b4e8314b5d0aa7d134f0821c1a056f3..8ab14ccb6e14a0d2b6a5c6742d56a50b9bdfa2ad 100644 (file)
@@ -9,7 +9,10 @@
 #include "AliAnalysisTask.h"
 class AliVEvent;
 class AliAODEvent;
+class AliAODHeader;
+class AliAODTracklets;
 class AliMCEvent;
+class AliInputEventHandler;
 class TTree;
 
 
@@ -31,18 +34,33 @@ class AliAnalysisTaskSE : public AliAnalysisTask
     // To be implemented by user
     virtual void UserCreateOutputObjects()  {;}
     virtual void UserExec(Option_t* /*option*/) {;}
-    
-    // Getters
+    // Helpers for adding branches to the AOD
+   virtual void AddAODBranch(const char* cname, void* addobj);
+// Getters
+    virtual Int_t        DebugLevel()  {return fDebug;     }
     virtual AliVEvent*   InputEvent()  {return fInputEvent;}
-    virtual AliAODEvent* AODEvent()    {return fOutputAOD;}
-    virtual TTree*       OutputTree()  {return fTreeA;}
-    virtual AliMCEvent*  MCEvent()     {return fMCEvent;}
- protected:
-    Int_t         fDebug;        //  Debug flag
-    AliVEvent*    fInputEvent;   //! VEvent Input
-    AliAODEvent*  fOutputAOD;    //! AOD out 
-    AliMCEvent*   fMCEvent;      //! MC
-    TTree*        fTreeA;        //  AOD output Tree
+    virtual AliAODEvent* AODEvent()    {return fOutputAOD; }
+    virtual TTree*       OutputTree()  {return fTreeA;     }
+    virtual AliMCEvent*  MCEvent()     {return fMCEvent;   }
+    virtual Long64_t     Entry()       {return fEntry;     }
+    virtual const char*  CurrentFileName();
+  protected:
+    Int_t                 fDebug;           //  Debug flag
+    Int_t                 fEntry;           //  Current entry in the chain
+    AliVEvent*            fInputEvent;      //! VEvent Input
+    AliInputEventHandler* fInputHandler;    //! Input Handler
+    AliAODEvent*          fOutputAOD;       //! AOD out 
+    AliMCEvent*           fMCEvent;         //! MC
+    TTree*                fTreeA;           //  AOD output Tree
+    static AliAODHeader*    fgAODHeader;        //! Header for replication
+    static TClonesArray*    fgAODTracks;        //! Tracks for replication
+    static TClonesArray*    fgAODVertices;      //! Vertices for replication
+    static TClonesArray*    fgAODV0s;           //! V0s for replication
+    static TClonesArray*    fgAODPMDClusters;   //! PMDClusters for replication
+    static TClonesArray*    fgAODJets;          //! Jets for replication
+    static TClonesArray*    fgAODFMDClusters;   //! FMDClusters for replication
+    static TClonesArray*    fgAODCaloClusters;  //! CaloClusters for replication
+    static AliAODTracklets* fgAODTracklets;     //! Tracklets for replication
     ClassDef(AliAnalysisTaskSE, 1); // Analysis task for standard jet analysis
 };