]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEER/AliHLTTestInputHandler.h
Some fixes to make the test task work again within HLT
[u/mrichter/AliRoot.git] / STEER / STEER / AliHLTTestInputHandler.h
CommitLineData
b9f1d917 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
afdb0e0d 11#ifndef ALIVEVENTHANDLER_H
12#include "AliVEventHandler.h"
b9f1d917 13#endif
14
afdb0e0d 15class TObjArray;
1f516476 16class AliVfriendevent;
16af082b 17class AliVEvent;
b9f1d917 18
afdb0e0d 19class AliHLTTestInputHandler : public AliVEventHandler {
b9f1d917 20
21 public:
22 AliHLTTestInputHandler() {}
23 AliHLTTestInputHandler(const char* name, const char* title);
24 virtual ~AliHLTTestInputHandler() {}
afdb0e0d 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;}
33 // Input
34 virtual void SetInputTree(TTree* /*tree*/) {};
35 // Steering
36 virtual Bool_t GetEntry() {return kTRUE;}
37 virtual Bool_t Terminate() {return kTRUE;}
38 virtual Bool_t TerminateIO() {return kTRUE;}
b9f1d917 39
afdb0e0d 40 // Especially needed for HLT
da47307c 41 virtual Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/);
afdb0e0d 42
da47307c 43 AliVEvent* GetEvent() const {return fEvent;}
44 //AliVEvent* GetEvent() const {return NULL;}
16af082b 45 void SetEvent(AliVEvent *event) {fEvent = event;}
949fa831 46
1f516476 47 AliVfriendEvent* GetVFriendEvent() const {return fFriendEvent;}
48 void SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;}
b9f1d917 49
afdb0e0d 50 private:
51 AliHLTTestInputHandler(const AliVEventHandler& handler);
52 AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);
b9f1d917 53
16af082b 54 AliVEvent *fEvent; //! Pointer to the event
1f516476 55 AliVfriendEvent *fFriendEvent; //! Pointer to the friend event
afdb0e0d 56
b9f1d917 57 ClassDef(AliHLTTestInputHandler, 1);
58};
59
60#endif