Compatibility with ROOT trunk
[u/mrichter/AliRoot.git] / JETAN / AliJetHadronCorrectionv1.h
CommitLineData
4a01bb2c 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
e36a3f22 11#define HCPARAMETERS 8
12#define HCPARAMETERSETS 3
4a01bb2c 13
38a7f6db 14class AliJetDummyGeo;
15
4a01bb2c 16class AliJetHadronCorrectionv1 : public AliJetHadronCorrection
17{
18 public:
e36a3f22 19 static AliJetHadronCorrectionv1* Instance();
20 virtual ~AliJetHadronCorrectionv1() {}
21
22 virtual Double_t GetEnergy(Double_t pmom, Double_t eta, Int_t gid);
23 Double_t GetEnergy(Double_t pmom, Double_t eta){return GetEnergy(pmom,eta,7);}
24
25 void SetGeometry(TString name, Double_t fs = 1.);
1240edf5 26 void SetGeometry2(const AliJetDummyGeo *geometry);
aa862876 27// Temporarily commented - will be updated removing the AliAODpid dependence
28// void TrackPositionEMCal(const AliAODTrack* track,Double_t &eta, Double_t &phi);
e36a3f22 29
4a01bb2c 30 protected:
1dfd2819 31 AliJetHadronCorrectionv1():fSamplingFraction(0) {for (Int_t i = 0; i < 8; i++) fPar[i] = 0.;}
e36a3f22 32 AliJetHadronCorrectionv1(const char *name, const char *title);
33
4a01bb2c 34 private:
e36a3f22 35 void SetParameters(TString name = "") {Warning("SetParameter","Dummy method with argument %s",name.Data());}
36
37 static AliJetHadronCorrectionv1* fgHadrCorr; // Pointer to global instance (singleton)
38 static Double_t fgParLookup[HCPARAMETERS][HCPARAMETERSETS]; // Global array with parameters for hadronic response
1240edf5 39 Double_t fPar[8]; // Parameters
e36a3f22 40 Float_t fSamplingFraction; // Sampling fraction
de265230 41
e36a3f22 42 ClassDef(AliJetHadronCorrectionv1,2) // Hadron correction for EMC (version for MDC)
4a01bb2c 43};
de265230 44
4a01bb2c 45#endif // ALIJETHADRONCORRECTIONV1_H
de265230 46