]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliESDInputHandlerRP.h
First version of esd input handler reading recpoints in parallel.
[u/mrichter/AliRoot.git] / STEER / AliESDInputHandlerRP.h
CommitLineData
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"
15#include "AliESDEvent.h"
16class TList;
17class TTree;
18class TDirectoryFile;
19class TString;
20
21
22class AliESDInputHandlerRP : public AliESDInputHandler {
23
24 public:
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 InitIO(Option_t* opt) {return Init(opt);};
30 virtual Bool_t BeginEvent(Long64_t entry);
31 virtual Bool_t FinishEvent();
32 virtual Bool_t GetEvent(Int_t iev);
33 virtual Bool_t Notify(const char* path);
34 virtual void ResetIO();
35 private:
36 Bool_t OpenFile(Int_t i);
37 AliESDInputHandlerRP(const AliESDInputHandlerRP& handler);
38 AliESDInputHandlerRP& operator=(const AliESDInputHandlerRP& handler);
39 private:
40 TList* fRTrees; // List of RecPoint Trees
41 TList* fRFiles; // List of RecPoint Files
42 TDirectoryFile* fDirR; //! Directory for RP Tree
43 Int_t fEventNumber; //! Current event number
44 Int_t fNEvent; //! Number of events in current directory
45 Int_t fFileNumber; //! Input file number
46 Int_t fEventsPerFile; //! Number of events per file
47 char *fExtension; //! File name extension
48 TString *fPathName; //! Input file path
49 ClassDef(AliESDInputHandlerRP, 1);
50};
51
52#endif