Code for jet finding using TPC and EMCAL ESD information.
[u/mrichter/AliRoot.git] / JETAN / AliJetHadronCorrectionv1.h
1 #ifndef ALIJETHADRONCORRECTIONV1_H
2 #define ALIJETHADRONCORRECTIONV1_H
3 /* Copyright(c) 1998-2002, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice     */
5
6 //                  
7 //*-- Author: Mark Horner (LBL/UCT)
8 //
9 #include "AliJetHadronCorrection.h"
10
11 #define HCPARAMETERS    6
12 #define HCPARAMETERSETS 2
13
14 class AliEMCALGeometry;
15
16 class AliJetHadronCorrectionv1 : public AliJetHadronCorrection 
17 {
18  public:
19   static  AliJetHadronCorrectionv1* Instance();
20   virtual Double_t GetEnergy(Double_t pmom, Double_t eta, Int_t gid); 
21   Double_t GetEnergy(Double_t pmom, Double_t eta) {return GetEnergy(pmom,eta,7);}
22   
23   void SetGeometry(TString name, Double_t fs = 1.); 
24   virtual ~AliJetHadronCorrectionv1() {}
25
26  protected:
27   AliJetHadronCorrectionv1(const char *name="HadronCorrectionv1", const char *title="Hadron Correction");
28   //    AliJetHadronCorrectionv1(const char *name="HadronCorrectionv1", const char *title="Hadron Correction",AliJetGeometry *geometry = NULL);
29   void SetGeometry(AliEMCALGeometry *geometry);
30     
31  private:
32   void SetParameters(TString name = "") {Warning("SetParameter","Dummy method with argument %s",name.Data());}
33     
34   static AliJetHadronCorrectionv1* fgHadrCorr;  // Pointer to global instance (singleton)
35   static Double_t fgParLookup[HCPARAMETERS][HCPARAMETERSETS]; // Global array with parameters for hadronic response
36   Double_t fPar[6];
37   Float_t  fSamplingFraction;  // Sampling fraction
38       
39   ClassDef(AliJetHadronCorrectionv1,2) // Hadron correction for EMC (version for MDC)
40 };
41
42 #endif // ALIJETHADRONCORRECTIONV1_H