Reading friends in analysis framework inside 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;
16class AliVEvent;
949fa831 17class AliESDfriend;
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
949fa831 41 Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliESDfriend* /*friendEvent*/, TObjArray* /*arrTasks*/);
afdb0e0d 42
43 AliVEvent* GetEvent() const {return fEvent;}
44 void SetEvent(AliVEvent *event) {fEvent = event;}
949fa831 45
46 AliESDfriend* GetFriendEvent() const {return fFriendEvent;}
47 void SetFriendEvent(AliESDfriend *friendEvent) {fFriendEvent = friendEvent;}
b9f1d917 48
afdb0e0d 49 private:
50 AliHLTTestInputHandler(const AliVEventHandler& handler);
51 AliHLTTestInputHandler& operator=(const AliVEventHandler& handler);
b9f1d917 52
949fa831 53 AliVEvent *fEvent; //! Pointer to the event
54 AliESDfriend *fFriendEvent; //! Pointer to the friend event
afdb0e0d 55
b9f1d917 56 ClassDef(AliHLTTestInputHandler, 1);
57};
58
59#endif