]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDInputHandler.h
Improvement of AliACORDEv1 class
[u/mrichter/AliRoot.git] / STEER / AliESDInputHandler.h
index c6206b8ee3b3e8babb56eaaef15e852db5e03a89..a24bb0a42583c67a17ab111dc8b4dce0ab550f39 100644 (file)
@@ -19,12 +19,24 @@ class AliESDInputHandler : public AliInputEventHandler {
     AliESDInputHandler();
     AliESDInputHandler(const char* name, const char* title);
     virtual ~AliESDInputHandler();
-    virtual Bool_t       InitIO(Option_t* opt);
+    virtual Bool_t       Init(Option_t* /*opt*/) {return kTRUE;}
+    virtual Bool_t       Init(TTree* tree, Option_t* opt);
     virtual Bool_t       BeginEvent(Long64_t entry);
+    virtual Bool_t       FinishEvent();
     AliESDEvent         *GetEvent() const {return fEvent;}
-    private:
-    AliESDEvent    *fEvent;   //! Pointer to the event 
-    ClassDef(AliESDInputHandler, 1);
+    //
+    void SetInactiveBranches(const char* branches) {fBranches   = branches;}
+    void SetActiveBranches  (const char* branches) {fBranchesOn = branches;}
+ private:
+    void SwitchOffBranches() const;
+    void SwitchOnBranches()  const;
+    AliESDInputHandler(const AliESDInputHandler& handler);             
+    AliESDInputHandler& operator=(const AliESDInputHandler& handler);  
+ private:
+    AliESDEvent    *fEvent;      //! Pointer to the event
+    TString         fBranches;   //List of branches to be switched off (separated by space)
+    TString         fBranchesOn; //List of branches to be switched on  (separated by space)
+    ClassDef(AliESDInputHandler, 2);
 };
 
 #endif