]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliInputEventHandler.h
Define default values of cluster resolution per chamber in the
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.h
index e0733d7b51c37218518346d957476e93ede2f61d..9c2996fcb2159a9bbff621f04155d196852ba65c 100644 (file)
@@ -11,8 +11,9 @@
 //-------------------------------------------------------------------------
 
 #include "AliVEventHandler.h"
+#include <TTree.h>
+
 
-class TChain;
 class AliVEvent;
 
 class AliInputEventHandler : public AliVEventHandler {
@@ -21,21 +22,26 @@ class AliInputEventHandler : public AliVEventHandler {
     AliInputEventHandler();
     AliInputEventHandler(const char* name, const char* title);
     virtual ~AliInputEventHandler();
-    virtual void         SetOutputFileName(char* /*fname*/) {;}
-    virtual char        *GetOutputFileName()                {return 0;}
-    virtual Bool_t       InitIO(Option_t* /*opt*/)          {return kTRUE;}
-    virtual Bool_t       BeginEvent()                       {return kTRUE;}
-    virtual Bool_t       Notify(const char */*path*/)       {return kTRUE;}
-    virtual Bool_t       FinishEvent()                      {return kTRUE;}        
-    virtual Bool_t       Terminate()                        {return kTRUE;}
-    virtual Bool_t       TerminateIO()                      {return kTRUE;}
+    virtual void         SetOutputFileName(const char* /*fname*/) {;}
+    virtual const char  *GetOutputFileName()                          {return 0;}
+    virtual Bool_t       Init(Option_t* /*opt*/)                      {return kTRUE;}
+    virtual Bool_t       Init(TTree* /*tree*/, Option_t* /*opt*/)     {return kTRUE;}
+    virtual Bool_t       BeginEvent(Long64_t /*entry*/)               {return kTRUE;}
+    virtual Bool_t       Notify() { return AliVEventHandler::Notify(); };
+    virtual Bool_t       Notify(const char */*path*/)                 {return kTRUE;}
+    virtual Bool_t       FinishEvent()                                {return kTRUE;}        
+    virtual Bool_t       Terminate()                                  {return kTRUE;}
+    virtual Bool_t       TerminateIO()                                {return kTRUE;}
     // Setters
-    virtual void         SetInputTree(TTree* tree)          {fTree = tree;}
-    // Getters
-    virtual AliVEvent   *GetEvent() const                   {return fEvent;}
-    virtual TTree       *GetChain() const                   {return fTree;}
+    virtual void         SetInputTree(TTree* tree)                    {fTree = tree;}
+     // Getters
+    virtual AliVEvent   *GetEvent() const                             {return 0;}
+    virtual TTree       *GetTree( ) const                             {return fTree;}
+    virtual Long64_t     GetReadEntry() const                         {return fTree->GetReadEntry();}
+ private:
+    AliInputEventHandler(const AliInputEventHandler& handler);             
+    AliInputEventHandler& operator=(const AliInputEventHandler& handler);  
  protected:
-    AliVEvent    *fEvent;   //! Pointer to the event 
     TTree        *fTree;    //! Pointer to the tree
     ClassDef(AliInputEventHandler, 1);
 };