]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliInputEventHandler.h
Realisation of VEventHandler for input events.
[u/mrichter/AliRoot.git] / STEER / AliInputEventHandler.h
1 #ifndef ALIINPUTEVENTHANDLER_H
2 #define ALIINPUTEVENTHANDLER_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //-------------------------------------------------------------------------
9 //     Input Handler realisation of the AliVEventHandler interface
10 //     Author: Andreas Morsch, CERN
11 //-------------------------------------------------------------------------
12
13 #include "AliVEventHandler.h"
14
15 class TChain;
16 class AliVEvent;
17
18 class AliInputEventHandler : public AliVEventHandler {
19
20  public:
21     AliInputEventHandler();
22     AliInputEventHandler(const char* name, const char* title);
23     virtual ~AliInputEventHandler();
24     virtual void         SetOutputFileName(char* /*fname*/) {;}
25     virtual char        *GetOutputFileName()                {return 0;}
26     virtual Bool_t       InitIO(Option_t* /*opt*/)          {return kTRUE;}
27     virtual Bool_t       BeginEvent()                       {return kTRUE;}
28     virtual Bool_t       Notify(const char */*path*/)       {return kTRUE;}
29     virtual Bool_t       FinishEvent()                      {return kTRUE;}        
30     virtual Bool_t       Terminate()                        {return kTRUE;}
31     virtual Bool_t       TerminateIO()                      {return kTRUE;}
32     // Setters
33     virtual void         SetInputChain(TChain* chain)       {fChain = chain;}
34     // Getters
35     virtual AliVEvent *GetEvent() const                     {return fEvent;}
36     virtual TChain    *GetChain() const                     {return fChain;}
37  protected:
38     AliVEvent    *fEvent;   //! Pointer to the event 
39     TChain       *fChain;   //! Pointer to the chain
40     ClassDef(AliInputEventHandler, 1);
41 };
42
43 #endif