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 */
8 //-------------------------------------------------------------------------
10 // Implementation of the Event Handler Interface for ESD
12 //-------------------------------------------------------------------------
14 #include "AliVEventHandler.h"
21 class AliESDHandler : public AliVEventHandler {
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();
38 AliESDEvent* GetESD() {return fESDEvent;}
39 AliESDfriend* GetESDfriend() {return fesdf;}
40 virtual TTree* GetTree() const {return fTreeE;}
41 void CreateTree(Int_t flag);
42 void CreateFriends(Int_t flag);
44 void AddESDtoTreeUserInfo();
45 void SetInputTree(TTree* /*tree*/) {;}
48 AliESDHandler(const AliESDHandler&); // Not implemented
49 AliESDHandler& operator=(const AliESDHandler&); // Not implemented
51 AliESDEvent* fESDEvent; //! Pointer to the ESD event
52 AliESDfriend* fesdf; //! Pointer to the ESD friend
53 TTree* fTreeE; //! tree for ESD persistency
54 TFile* fFileE; //! Output file
55 TFile* fFileEF; //! Output file for friends
56 TString fFileName; // Output file name
58 ClassDef(AliESDHandler, 1)