AliRoot Core  3dc7879 (3dc7879)
AliESDInputHandlerRP.h
Go to the documentation of this file.
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 */
5 
6 /* $Id: AliESDInputHandler.h 24521 2008-03-14 16:43:54Z morsch $ */
7 
8 //-------------------------------------------------------------------------
9 // ESD Input Handler realisation of the AliVEventHandler interface
10 // Automatic loading of RecPoint Trees
11 // Author: Andreas Morsch, CERN
12 //-------------------------------------------------------------------------
13 
14 #include "AliESDInputHandler.h"
15 class TList;
16 class TTree;
17 class TDirectoryFile;
18 class TString;
19 
20 
22 
23  public:
25  AliESDInputHandlerRP(const char* name, const char* title);
26  virtual ~AliESDInputHandlerRP();
27  virtual Bool_t Init(Option_t* opt);
28  virtual Bool_t Init(TTree* tree, Option_t* opt) {return AliESDInputHandler::Init(tree, opt);}
29  virtual Bool_t InitIO(Option_t* opt) {return Init(opt);};
30  virtual Bool_t BeginEvent(Long64_t entry);
31  virtual Bool_t FinishEvent();
32  virtual Bool_t LoadEvent(Int_t iev);
33  virtual Bool_t Notify() { return AliESDInputHandler::Notify();}
34  virtual Bool_t Notify(const char* path);
35  virtual void ResetIO();
36  virtual void ReadFromDirectory() {fReadDirectory = kTRUE;}
37  //
38  virtual TTree* GetTreeR(const char* det);
39  private:
40  enum {kReadFromArchiveBIT = BIT(14)};
41  Bool_t OpenFile(Int_t i);
44  private:
45  TObjArray* fRTrees; // List of RecPoint Trees
46  TObjArray* fRDirs; // List of RecPoint directories
47  TList* fRFiles; // List of RecPoint Files
48  TList* fDetectors; // List of detector names
49  TDirectoryFile *fDirR;
50  Int_t fEventNumber;
51  Int_t fFileNumber;
53  const Char_t *fExtension;
54  TString *fPathName;
55  Bool_t fIsArchive;
56  Bool_t fReadDirectory;
57  ClassDef(AliESDInputHandlerRP, 1);
58 };
59 
60 #endif
Bool_t fReadDirectory
True if directory is an archive.
virtual Bool_t InitIO(Option_t *opt)
#define TObjArray
const char * path
AliESDInputHandlerRP & operator=(const AliESDInputHandlerRP &handler)
virtual Bool_t Init(Option_t *opt)
TString * fPathName
File name extension.
Int_t fEventsPerFile
Input file number.
virtual Bool_t LoadEvent(Int_t iev)
Int_t fEventNumber
Directory for RP Tree.
Int_t fFileNumber
Current event number.
TTree * tree
virtual TTree * GetTreeR(const char *det)
const Char_t * fExtension
Number of events per file.
virtual Bool_t Notify()
virtual Bool_t Init(Option_t *opt)
virtual void ReadFromDirectory()
virtual Bool_t Init(TTree *tree, Option_t *opt)
virtual Bool_t BeginEvent(Long64_t entry)
Bool_t fIsArchive
Input file path.