]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliMultiEventInputHandler.h
minor coverity defect: added protection for self-assignment
[u/mrichter/AliRoot.git] / ANALYSIS / AliMultiEventInputHandler.h
index 76512c35a286597e54263761dd906fb4b42dfcc0..50add9ef86e71e49d1f5f947ff08a80826778519 100644 (file)
@@ -32,12 +32,15 @@ class AliMultiEventInputHandler : public AliInputEventHandler {
     virtual AliVEvent       *GetEvent()          const {return GetLatestEvent();}
     virtual AliVEvent       *GetEvent(Int_t iev) const;
     AliVEvent               *GetLatestEvent()    const {return fEventBuffer[fIndex];}
+    Int_t                    GetFormat() { return fFormat ;} 
+    void                     EventSkipped() {fEventSkipped = kTRUE;}
     // From the interface
     virtual Bool_t Init(Option_t* /*opt*/)    {return kTRUE;}
     virtual Bool_t Init(TTree* tree, Option_t* /*opt*/);
     virtual Bool_t FinishEvent();
     virtual Bool_t BeginEvent(Long64_t /*entry*/);
-    
+    virtual Bool_t Notify() { return AliInputEventHandler::Notify();}
+    virtual Bool_t Notify(const char */*path*/);
  private:
     AliMultiEventInputHandler(const AliMultiEventInputHandler& handler);             
     AliMultiEventInputHandler& operator=(const AliMultiEventInputHandler& handler);  
@@ -47,8 +50,11 @@ class AliMultiEventInputHandler : public AliInputEventHandler {
     Int_t          fNBuffered;    // Number of events actually buffered
     Int_t          fIndex;        // Pointer to most recent event
     Int_t          fCurrentBin;   // Current bin from the pool
+    Int_t          fCurrentEvt;   // Current event
+    Bool_t         fInit;         // Current event
     AliVEventPool* fEventPool;    // Pointer to the pool
-    AliVEvent**    fEventBuffer;  // The event buffer
+    AliVEvent**    fEventBuffer;  //! The event buffer
+    Bool_t         fEventSkipped; // User requires event to be skip
     ClassDef(AliMultiEventInputHandler, 1);
 };