]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliInputEventHandler.h
protection agains wrong centrality bin
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.h
index 95b4a7b41d67ba6280662e444197158de89a6fea..10c8ae631b7b872c90326996cf67a9c3d2603d13 100644 (file)
@@ -17,6 +17,7 @@
 class AliVEvent;
 class AliVCuts;
 class AliRunTag;
+class AliEventTag;
 
 
 class AliInputEventHandler : public AliVEventHandler {
@@ -50,7 +51,10 @@ class AliInputEventHandler : public AliVEventHandler {
     void SetActiveBranches  (const char* branches) {fBranchesOn = branches;}
      // Getters
     virtual AliVEvent   *GetEvent()        const                      {return 0;}
+    virtual const AliEventTag   *GetEventTag() const                  {return 0;}
     virtual AliRunTag   *GetRunTag()       const                      {return 0;}
+    // Get the statistics object (currently TH2). Option can be BIN0.
+    virtual TObject     *GetStatistics(Option_t *option="") const;
     virtual Option_t    *GetAnalysisType() const                      {return 0;}
     virtual TTree       *GetTree( )        const                      {return fTree;}
     virtual AliVCuts    *GetEventSelection() const                    {return fEventCuts;}
@@ -65,6 +69,9 @@ class AliInputEventHandler : public AliVEventHandler {
     {fMixingHandler = mixing;}
     AliInputEventHandler* MixingHandler()
     {return fMixingHandler;}
+    // Parent Handler
+    void SetParentHandler(AliInputEventHandler* parent) {fParentHandler = parent;}
+    AliInputEventHandler* ParentHandler() {return fParentHandler;}
 
  protected:
     void SwitchOffBranches() const;
@@ -79,8 +86,9 @@ class AliInputEventHandler : public AliVEventHandler {
     Bool_t          fNewEvent;     //  New event flag 
     AliVCuts*       fEventCuts;    //  Cuts on the event level
     UInt_t          fIsSelectedResult; //  Selection result
-    AliInputEventHandler* fMixingHandler; // Optionla plugin for mixing 
-    ClassDef(AliInputEventHandler, 5);
+    AliInputEventHandler* fMixingHandler; // Optionla plugin for mixing
+    AliInputEventHandler* fParentHandler; // optional pointer to parent handlers (used in AliMultiInputEventHandler)
+    ClassDef(AliInputEventHandler, 6);
 };
 
 #endif