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 */
6 //-------------------------------------------------------------------------
7 // Reconstruction-specific input handler
8 // Author: Andrei Gheata, CERN
9 //-------------------------------------------------------------------------
11 #ifndef ALIVEVENTHANDLER_H
12 #include "AliVEventHandler.h"
17 class AliVfriendevent;
19 class AliHLTTestInputHandler : public AliVEventHandler {
22 AliHLTTestInputHandler() {}
23 AliHLTTestInputHandler(const char* name, const char* title);
24 virtual ~AliHLTTestInputHandler() {}
25 virtual Bool_t Notify() { return kFALSE; }
26 virtual Bool_t Notify(const char *) {return kTRUE;}
27 virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;}
28 virtual Bool_t Init(TTree* /*tree*/, Option_t* /*opt*/);
29 virtual Bool_t BeginEvent(Long64_t entry);
30 virtual Bool_t FinishEvent() {return kTRUE;}
31 virtual void SetOutputFileName(const char* /*fname*/) {};
32 virtual const char* GetOutputFileName() const {return NULL;}
34 virtual void SetInputTree(TTree* /*tree*/) {};
36 virtual Bool_t GetEntry() {return kTRUE;}
37 virtual Bool_t Terminate() {return kTRUE;}
38 virtual Bool_t TerminateIO() {return kTRUE;}
40 // Especially needed for HLT
41 Bool_t InitTaskInputData(AliVVevent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
43 AliVEvent* GetEvent() const {return NULL;}
44 AliVVevent* GetVVEvent() const {return fEvent;}
45 void SetVVEvent(AliVVevent *event) {fEvent = event;}
47 AliVfriendEvent* GetVFriendEvent() const {return fFriendEvent;}
48 void SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;}
51 AliHLTTestInputHandler(const AliVEventHandler& handler);
52 AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);
54 AliVVevent *fEvent; //! Pointer to the event
55 AliVfriendEvent *fFriendEvent; //! Pointer to the friend event
57 ClassDef(AliHLTTestInputHandler, 1);