- Clean-up of data members and methods in base classes and derived classes
[u/mrichter/AliRoot.git] / JETAN / AliJetESDReader.h
1 #ifndef ALIJETESDREADER_H
2 #define ALIJETESDREADER_H
3  
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6  
7 //---------------------------------------------------------------------
8 // Jet ESD Reader 
9 // ESD reader for jet analysis
10 // Author: Mercedes Lopez Noriega (mercedes.lopez.noriega@cern.ch)
11 //=========================================================================
12 // Modified in order to use a fUnitArray object instead of a fMomentumArray
13 // Includes EMCal Geometry, fUnitArray, grid objects and tools for Hadron correction
14 // Author : magali.estienne@ires.in2p3.fr
15 //---------------------------------------------------------------------
16
17 #include "AliJetReader.h"
18 #include "AliJetUnitArray.h"
19 #include "AliJetGrid.h"
20 class AliJetESDReaderHeader;
21 class AliEMCALGeometry;
22 class AliJetHadronCorrection;
23 class AliJetUnitArray;
24 class AliJetReaderHeader;
25 class AliESD;
26
27 class AliJetESDReader : public AliJetReader
28 {
29  public: 
30   AliJetESDReader();
31   virtual ~AliJetESDReader();
32   // Setters
33   Bool_t FillMomentumArray(Int_t event); 
34   void   OpenInputFiles();
35   void   InitUnitArray();
36   void   ConnectTree(TTree* tree);
37   virtual void SetTPCGrid(AliJetGrid *grid)   {fTpcGrid = grid;}
38   virtual void SetEMCalGrid(AliJetGrid *grid) {fEmcalGrid = grid;}
39   // Correction of hadronic energy
40   virtual void SetHadronCorrection(Int_t flag = 1) {fHCorrection = flag;}
41   virtual void SetHadronCorrector(AliJetHadronCorrectionv1* corr) {fHadCorr = corr;}
42  private:
43   void SetEMCALGeometry();
44   void InitParameters();
45  protected:
46   AliEMCALGeometry           *fGeom;             //!EMCAL Geometry 
47   TChain                     *fChain;            // chain for reconstructed tracks
48   AliESD                     *fESD;              // pointer to esd
49   AliJetHadronCorrectionv1   *fHadCorr;          // Pointer to Hadron Correction Object 
50   AliJetGrid                 *fTpcGrid;          // Pointer to grid object
51   AliJetGrid                 *fEmcalGrid;        // Pointer to grid object
52   Float_t                     fPtCut;            // Pt cut for tracks to minimise background contribution
53   Int_t                       fHCorrection;      // Hadron correction flag
54   Int_t                       fNumUnits;         // Number of units in the unit object array
55                                                  // (same as num towers in EMCAL)
56   Int_t                       fDebug;            // Debug option
57   Int_t                       fNIn;              // Number of Array filled in UnitArray
58   Int_t                       fOpt;              // Detector to be used for jet reconstruction
59   Int_t                       fNeta;             // Number of bins in eta of tpc grid
60   Int_t                       fNphi;             // Number of bins in phi of tpc grid
61   Bool_t                      fArrayInitialised; // To check that array of units is initialised
62   
63
64
65   ClassDef(AliJetESDReader,1)
66 };
67  
68 #endif