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"
16 class AliVfriendevent;
19 class AliHLTTestInputHandler : public AliVEventHandler {
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;}
36 virtual void SetInputTree(TTree* /*tree*/) {};
38 virtual Bool_t GetEntry() {return kTRUE;}
39 virtual Bool_t Terminate() {return kTRUE;}
40 virtual Bool_t TerminateIO() {return kTRUE;}
42 // Especially needed for HLT
43 virtual Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
45 AliVEvent* GetEvent() const {return fEvent;}
46 //AliVEvent* GetEvent() const {return NULL;}
47 void SetEvent(AliVEvent *event) {fEvent = event;}
49 AliVfriendEvent* GetVfriendEvent() const {return fFriendEvent;}
50 void SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;}
53 AliHLTTestInputHandler(const AliVEventHandler& handler);
54 AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);
56 AliVEvent *fEvent; //! Pointer to the event
57 AliVfriendEvent *fFriendEvent; //! Pointer to the friend event
59 ClassDef(AliHLTTestInputHandler, 1);