]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliVEventHandler.h
No optimization with gcc 4.3.0
[u/mrichter/AliRoot.git] / STEER / AliVEventHandler.h
1 #ifndef ALIVEVENTHANDLER_H
2 #define ALIVEVENTHANDLER_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 //     Event Handler base class
10 //     Author: Andreas Morsch, CERN
11 //-------------------------------------------------------------------------
12
13 #include <TNamed.h>
14
15 class TTree;
16
17 class AliVEventHandler : public TNamed {
18
19  public:
20     AliVEventHandler();
21     AliVEventHandler(const char* name, const char* title);
22     virtual ~AliVEventHandler();
23     // Output
24     virtual void         SetOutputFileName(const char* fname)   = 0;
25     virtual const char*  GetOutputFileName()              = 0;
26     // Input
27     virtual void         SetInputTree(TTree* tree)        = 0;
28     // Steering 
29     virtual Bool_t       Init(Option_t* opt)              = 0;
30     virtual Bool_t       Init(TTree* tree, Option_t* opt) = 0;
31     virtual Bool_t       BeginEvent(Long64_t entry)       = 0;
32     virtual Bool_t       Notify(const char *path)         = 0;
33     virtual Bool_t       FinishEvent()                    = 0;
34     virtual Bool_t       Terminate()                      = 0;
35     virtual Bool_t       TerminateIO()                    = 0;
36     //
37     virtual Bool_t       Notify() { return TNamed::Notify(); };
38  private :
39   ClassDef(AliVEventHandler, 1);
40 };
41
42 #endif