]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALHadronCorrectionv1.h
Changes needed to run simulation and reconstrruction in the same AliRoot session
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALHadronCorrectionv1.h
CommitLineData
414acf4e 1#ifndef ALIEMCALHADRONCORRECTIONV1_H
2#define ALIEMCALHADRONCORRECTIONV1_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 "AliEMCALHadronCorrection.h"
10
11
12#define HCPARAMETERS 6
13#define HCPARAMETERSETS 2
14
15class AliEMCALGeometry;
16
17class AliEMCALHadronCorrectionv1: public AliEMCALHadronCorrection {
18 public:
19 static AliEMCALHadronCorrectionv1* Instance();
09884213 20 virtual Double_t GetEnergy(Double_t pmom, Double_t eta, Int_t gid);
21 Double_t GetEnergy(Double_t pmom, Double_t eta)
414acf4e 22 {return GetEnergy(pmom,eta,7);}
23
bdade85d 24 void SetGeometry(TString name, Double_t fs = 1.);
414acf4e 25 virtual ~AliEMCALHadronCorrectionv1() {}
26 protected:
27 AliEMCALHadronCorrectionv1(const char *name="HadronCorrectionv1", const char *title="Hadron Correction");
28
29// AliEMCALHadronCorrectionv1(const char *name="HadronCorrectionv1", const char *title="Hadron Correction",AliEMCALGeometry *geometry = NULL);
bdade85d 30 void SetGeometry(AliEMCALGeometry *geometry);
31
414acf4e 32 private:
b58d4ab7 33 void SetParameters(TString name = "") {Warning("SetParameter","Dummy method with argument %s",name.Data());}
a1a74fe1 34
65603611 35 static AliEMCALHadronCorrectionv1* fgHadrCorr; // Pointer to global instance (singleton)
36 static Double_t fgParLookup[HCPARAMETERS][HCPARAMETERSETS]; // Global array with parameters for hadronic response
414acf4e 37 Double_t fPar[6];
65603611 38 Float_t fSamplingFraction; // Sampling fraction
bdade85d 39
414acf4e 40
bdade85d 41 ClassDef(AliEMCALHadronCorrectionv1,2) // Hadron correction for EMC (version for MDC)
414acf4e 42};
43
44#endif // ALIEMCALHADRONCORRECTIONV1_H