1 #ifndef ALIESDINPUTHANDLERRP_H
2 #define ALIESDINPUTHANDLERRP_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliESDInputHandler.h 24521 2008-03-14 16:43:54Z morsch $ */
8 //-------------------------------------------------------------------------
9 // ESD Input Handler realisation of the AliVEventHandler interface
10 // Automatic loading of RecPoint Trees
11 // Author: Andreas Morsch, CERN
12 //-------------------------------------------------------------------------
14 #include "AliESDInputHandler.h"
15 #include "AliESDEvent.h"
22 class AliESDInputHandlerRP : public AliESDInputHandler {
25 AliESDInputHandlerRP();
26 AliESDInputHandlerRP(const char* name, const char* title);
27 virtual ~AliESDInputHandlerRP();
28 virtual Bool_t Init(Option_t* opt);
29 virtual Bool_t Init(TTree* tree, Option_t* opt) {return AliESDInputHandler::Init(tree, opt);}
30 virtual Bool_t InitIO(Option_t* opt) {return Init(opt);};
31 virtual Bool_t BeginEvent(Long64_t entry);
32 virtual Bool_t FinishEvent();
33 virtual Bool_t LoadEvent(Int_t iev);
34 virtual Bool_t Notify() {return kTRUE;}
35 virtual Bool_t Notify(const char* path);
36 virtual void ResetIO();
38 virtual TTree* GetTreeR(char* det);
40 Bool_t OpenFile(Int_t i);
41 AliESDInputHandlerRP(const AliESDInputHandlerRP& handler);
42 AliESDInputHandlerRP& operator=(const AliESDInputHandlerRP& handler);
44 TList* fRTrees; // List of RecPoint Trees
45 TList* fRFiles; // List of RecPoint Files
46 TList* fDetectors; // List of detector names
47 TDirectoryFile *fDirR; //! Directory for RP Tree
48 Int_t fEventNumber; //! Current event number
49 Int_t fNEvent; //! Number of events in current directory
50 Int_t fFileNumber; //! Input file number
51 Int_t fEventsPerFile; //! Number of events per file
52 char *fExtension; //! File name extension
53 TString *fPathName; //! Input file path
54 Bool_t fIsArchive; //! True if directory is an archive
55 ClassDef(AliESDInputHandlerRP, 1);