]>
Commit | Line | Data |
---|---|---|
a847da94 | 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" | |
a847da94 | 15 | class TList; |
16 | class TTree; | |
17 | class TDirectoryFile; | |
18 | class TString; | |
19 | ||
20 | ||
21 | class AliESDInputHandlerRP : public AliESDInputHandler { | |
22 | ||
23 | public: | |
24 | AliESDInputHandlerRP(); | |
25 | AliESDInputHandlerRP(const char* name, const char* title); | |
26 | virtual ~AliESDInputHandlerRP(); | |
27 | virtual Bool_t Init(Option_t* opt); | |
f207215d | 28 | virtual Bool_t Init(TTree* tree, Option_t* opt) {return AliESDInputHandler::Init(tree, opt);} |
a847da94 | 29 | virtual Bool_t InitIO(Option_t* opt) {return Init(opt);}; |
30 | virtual Bool_t BeginEvent(Long64_t entry); | |
31 | virtual Bool_t FinishEvent(); | |
f207215d | 32 | virtual Bool_t LoadEvent(Int_t iev); |
a37ff5af | 33 | virtual Bool_t Notify() { return AliESDInputHandler::Notify();} |
a847da94 | 34 | virtual Bool_t Notify(const char* path); |
35 | virtual void ResetIO(); | |
ad61d1be | 36 | // |
a4e31092 | 37 | virtual TTree* GetTreeR(const char* det); |
a847da94 | 38 | private: |
39 | Bool_t OpenFile(Int_t i); | |
40 | AliESDInputHandlerRP(const AliESDInputHandlerRP& handler); | |
41 | AliESDInputHandlerRP& operator=(const AliESDInputHandlerRP& handler); | |
42 | private: | |
30cd6a86 | 43 | TObjArray* fRTrees; // List of RecPoint Trees |
0d277acb | 44 | TObjArray* fRDirs; // List of RecPoint directories |
a847da94 | 45 | TList* fRFiles; // List of RecPoint Files |
80d90f25 | 46 | TList* fDetectors; // List of detector names |
47 | TDirectoryFile *fDirR; //! Directory for RP Tree | |
a847da94 | 48 | Int_t fEventNumber; //! Current event number |
a847da94 | 49 | Int_t fFileNumber; //! Input file number |
50 | Int_t fEventsPerFile; //! Number of events per file | |
a6e0ebfe | 51 | const Char_t *fExtension; //! File name extension |
80d90f25 | 52 | TString *fPathName; //! Input file path |
53 | Bool_t fIsArchive; //! True if directory is an archive | |
a847da94 | 54 | ClassDef(AliESDInputHandlerRP, 1); |
55 | }; | |
56 | ||
57 | #endif |