]>
Commit | Line | Data |
---|---|---|
76147823 | 1 | #ifndef ALIINPUTEVENTHANDLER_H |
2 | #define ALIINPUTEVENTHANDLER_H | |
3 | /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //------------------------------------------------------------------------- | |
9 | // Input Handler realisation of the AliVEventHandler interface | |
10 | // Author: Andreas Morsch, CERN | |
11 | //------------------------------------------------------------------------- | |
12 | ||
13 | #include "AliVEventHandler.h" | |
97acfdbe | 14 | #include <TTree.h> |
15 | ||
76147823 | 16 | |
76147823 | 17 | class AliVEvent; |
18 | ||
19 | class AliInputEventHandler : public AliVEventHandler { | |
20 | ||
21 | public: | |
22 | AliInputEventHandler(); | |
23 | AliInputEventHandler(const char* name, const char* title); | |
24 | virtual ~AliInputEventHandler(); | |
0931e76a | 25 | virtual void SetOutputFileName(const char* /*fname*/) {;} |
26 | virtual const char *GetOutputFileName() {return 0;} | |
300d5701 | 27 | virtual Bool_t Init(Option_t* /*opt*/) {return kTRUE;} |
87d395bd | 28 | virtual Bool_t Init(TTree* /*tree*/, Option_t* /*opt*/) {return kTRUE;} |
300d5701 | 29 | virtual Bool_t BeginEvent(Long64_t /*entry*/) {return kTRUE;} |
276be602 | 30 | virtual Bool_t Notify() { return AliVEventHandler::Notify(); }; |
300d5701 | 31 | virtual Bool_t Notify(const char */*path*/) {return kTRUE;} |
32 | virtual Bool_t FinishEvent() {return kTRUE;} | |
33 | virtual Bool_t Terminate() {return kTRUE;} | |
34 | virtual Bool_t TerminateIO() {return kTRUE;} | |
76147823 | 35 | // Setters |
300d5701 | 36 | virtual void SetInputTree(TTree* tree) {fTree = tree;} |
fedd7a0d | 37 | // Getters |
300d5701 | 38 | virtual AliVEvent *GetEvent() const {return 0;} |
39 | virtual TTree *GetTree( ) const {return fTree;} | |
97acfdbe | 40 | virtual Long64_t GetReadEntry() const {return fTree->GetReadEntry();} |
87d395bd | 41 | private: |
42 | AliInputEventHandler(const AliInputEventHandler& handler); | |
43 | AliInputEventHandler& operator=(const AliInputEventHandler& handler); | |
76147823 | 44 | protected: |
933fd60f | 45 | TTree *fTree; //! Pointer to the tree |
76147823 | 46 | ClassDef(AliInputEventHandler, 1); |
47 | }; | |
48 | ||
49 | #endif |