]>
Commit | Line | Data |
---|---|---|
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 | 15 | class TObjArray; |
1f516476 | 16 | class AliVfriendevent; |
16af082b | 17 | class AliVEvent; |
b9f1d917 | 18 | |
afdb0e0d | 19 | class AliHLTTestInputHandler : public AliVEventHandler { |
b9f1d917 | 20 | |
21 | public: | |
2de4dc45 | 22 | AliHLTTestInputHandler(); |
23 | AliHLTTestInputHandler(AliHLTTestInputHandler&); | |
b9f1d917 | 24 | AliHLTTestInputHandler(const char* name, const char* title); |
25 | virtual ~AliHLTTestInputHandler() {} | |
2de4dc45 | 26 | AliHLTTestInputHandler& operator=(const AliHLTTestInputHandler&) {return *this;} |
afdb0e0d | 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;} | |
b9f1d917 | 41 | |
afdb0e0d | 42 | // Especially needed for HLT |
da47307c | 43 | virtual Bool_t InitTaskInputData(AliVEvent* /*esdEvent*/, AliVfriendEvent* /*friendEvent*/, TObjArray* /*arrTasks*/); |
afdb0e0d | 44 | |
da47307c | 45 | AliVEvent* GetEvent() const {return fEvent;} |
46 | //AliVEvent* GetEvent() const {return NULL;} | |
16af082b | 47 | void SetEvent(AliVEvent *event) {fEvent = event;} |
949fa831 | 48 | |
8e957daa | 49 | AliVfriendEvent* GetVfriendEvent() const {return fFriendEvent;} |
1f516476 | 50 | void SetVFriendEvent(AliVfriendEvent *friendEvent) {fFriendEvent = friendEvent;} |
b9f1d917 | 51 | |
afdb0e0d | 52 | private: |
53 | AliHLTTestInputHandler(const AliVEventHandler& handler); | |
54 | AliHLTTestInputHandler& operator=(const AliVEventHandler& handler); | |
b9f1d917 | 55 | |
16af082b | 56 | AliVEvent *fEvent; //! Pointer to the event |
1f516476 | 57 | AliVfriendEvent *fFriendEvent; //! Pointer to the friend event |
afdb0e0d | 58 | |
b9f1d917 | 59 | ClassDef(AliHLTTestInputHandler, 1); |
60 | }; | |
61 | ||
62 | #endif |