]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliHLTTestInputHandler.h
Improvement of handling event when running AnalysisManager in the HLT component
[u/mrichter/AliRoot.git] / STEER / STEER / AliHLTTestInputHandler.h
1 #ifndef ALIHLTTESTINPUTHANDLER_H
2 #define ALIHLTTESTINPUTHANDLER_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //-------------------------------------------------------------------------
7 //     Reconstruction-specific input handler
8 //     Author: Andrei Gheata, CERN
9 //-------------------------------------------------------------------------
10
11 #ifndef ALIVEVENTHANDLER_H
12 #include "AliVEventHandler.h"
13 #endif
14
15 class TObjArray;
16 class AliVEvent;
17
18 class AliHLTTestInputHandler : public AliVEventHandler {
19
20  public:
21     AliHLTTestInputHandler() {}
22     AliHLTTestInputHandler(const char* name, const char* title);
23     virtual ~AliHLTTestInputHandler() {}
24     virtual Bool_t Notify() { return kFALSE; }
25     virtual Bool_t Notify(const char *) {return kTRUE;}
26     virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
27     virtual Bool_t Init(TTree* /*tree*/, Option_t* /*opt*/);
28     virtual Bool_t BeginEvent(Long64_t entry);
29     virtual Bool_t FinishEvent() {return kTRUE;}
30     virtual void  SetOutputFileName(const char* /*fname*/) {};
31     virtual const char* GetOutputFileName() const {return NULL;}
32     // Input
33     virtual void SetInputTree(TTree* /*tree*/) {};
34     // Steering 
35     virtual Bool_t GetEntry() {return kTRUE;}
36     virtual Bool_t Terminate() {return kTRUE;}
37     virtual Bool_t TerminateIO() {return kTRUE;}
38
39     // Especially needed for HLT
40     Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, TObjArray* /*arrTasks*/);
41
42     AliVEvent* GetEvent() const {return fEvent;}
43     void  SetEvent(AliVEvent *event) {fEvent = event;}
44       
45  private:
46     AliHLTTestInputHandler(const AliVEventHandler& handler);             
47     AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);  
48     
49     AliVEvent *fEvent;    //! Pointer to the event
50
51     ClassDef(AliHLTTestInputHandler, 1);
52 };
53
54 #endif