]>
Commit | Line | Data |
---|---|---|
6d3a7bbf | 1 | #ifndef ALIESDHANDLER_H |
2 | #define ALIESDHANDLER_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 | // | |
10 | // Implementation of the Event Handler Interface for ESD | |
11 | // | |
12 | //------------------------------------------------------------------------- | |
13 | ||
14 | #include "AliVEventHandler.h" | |
15 | ||
16 | class AliESDEvent; | |
17 | class AliESDfriend; | |
18 | class TFile; | |
19 | class TTree; | |
20 | ||
21 | class AliESDHandler : public AliVEventHandler { | |
22 | ||
23 | public: | |
24 | AliESDHandler(); | |
25 | AliESDHandler(const char* name, const char* title); | |
26 | virtual ~AliESDHandler(); | |
27 | virtual void SetOutputFileName(const char* fname){fFileName = fname;} | |
28 | virtual const char* GetOutputFileName(){return fFileName.Data();} | |
29 | virtual Bool_t Init(Option_t* option); | |
30 | virtual Bool_t Init(TTree* /*tree*/, Option_t* /*option*/) {return kTRUE;} | |
31 | virtual Bool_t BeginEvent(Long64_t /*entry*/){return kTRUE;} | |
32 | virtual Bool_t Notify() {return AliVEventHandler::Notify(); }; | |
33 | virtual Bool_t Notify(const char * /* path */) {return kTRUE;} | |
34 | virtual Bool_t FinishEvent(); | |
35 | virtual Bool_t Terminate(); | |
36 | virtual Bool_t TerminateIO(); | |
37 | ||
6d3a7bbf | 38 | AliESDfriend* GetESDfriend() {return fesdf;} |
03a8000a | 39 | virtual TTree* GetTree() const {return fTreeEF;} |
6d3a7bbf | 40 | void FillTree(); |
6d3a7bbf | 41 | void SetInputTree(TTree* /*tree*/) {;} |
42 | private: | |
43 | ||
44 | AliESDHandler(const AliESDHandler&); // Not implemented | |
45 | AliESDHandler& operator=(const AliESDHandler&); // Not implemented | |
46 | ||
6d3a7bbf | 47 | AliESDfriend* fesdf; //! Pointer to the ESD friend |
03a8000a | 48 | TTree* fTreeEF; //! Output tree for friends |
6d3a7bbf | 49 | TFile* fFileEF; //! Output file for friends |
03a8000a | 50 | TString fFileName; //! Output file name for friends |
6d3a7bbf | 51 | |
03a8000a | 52 | ClassDef(AliESDHandler, 2) |
6d3a7bbf | 53 | }; |
54 | #endif |