]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/STEER/AliHLTTestInputHandler.h
Clearer fatal message.
[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 AliVfriendevent;
17 class AliVEvent;
18
19 class AliHLTTestInputHandler : public AliVEventHandler {
20
21  public:
22     AliHLTTestInputHandler();
23     AliHLTTestInputHandler(AliHLTTestInputHandler&);
24     AliHLTTestInputHandler(const char* name, const char* title);
25     virtual ~AliHLTTestInputHandler() {}
26     AliHLTTestInputHandler& operator=(const AliHLTTestInputHandler&) {return *this;}
27     virtual Bool_t Notify() { return kFALSE; }
28     virtual Bool_t Notify(const char *) {return kTRUE;}
29     virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
30     virtual Bool_t Init(TTree* /*tree*/, Option_t* /*opt*/);
31     virtual Bool_t BeginEvent(Long64_t entry);
32     virtual Bool_t FinishEvent() {return kTRUE;}
33     virtual void  SetOutputFileName(const char* /*fname*/) {};
34     virtual const char* GetOutputFileName() const {return NULL;}
35     // Input
36     virtual void SetInputTree(TTree* /*tree*/) {};
37     // Steering 
38     virtual Bool_t GetEntry() {return kTRUE;}
39     virtual Bool_t Terminate() {return kTRUE;}
40     virtual Bool_t TerminateIO() {return kTRUE;}
41
42     // Especially needed for HLT
43     virtual Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
44
45     AliVEvent* GetEvent() const {return fEvent;}
46     //AliVEvent* GetEvent() const {return NULL;}
47     void  SetEvent(AliVEvent *event) {fEvent = event;}
48
49     AliVfriendEvent* GetVfriendEvent() const {return fFriendEvent;}
50     void  SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;}
51       
52  private:
53     AliHLTTestInputHandler(const AliVEventHandler& handler);             
54     AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);  
55     
56     AliVEvent       *fEvent;          //! Pointer to the event
57     AliVfriendEvent *fFriendEvent;    //! Pointer to the friend event
58
59     ClassDef(AliHLTTestInputHandler, 1);
60 };
61
62 #endif