]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALHadronCorrectionv0.cxx
Assymmetry due TDI taken into account.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALHadronCorrectionv0.cxx
index ea16396af7c4716de1d21800cb79f04d619c13a5..fe44b4a697a6c73ba1cd451372f34a908068d3cd 100644 (file)
 
 /*
 $Log$
+Revision 1.2  2002/02/04 15:11:44  hristov
+Use TMath::Abs instead of fabs (Alpha)
+
+Revision 1.1  2002/01/17 23:52:43  morsch
+First commit.
+
 */
 
 
@@ -27,17 +33,15 @@ const Int_t nPol = 4;        // number coefficients of polinom
 static Double_t etaGrid[maxVariant]={ 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.67};
 static Double_t pGrid[nVec]={ 0.2, 0.5, 1.0, 2.0, 3.0, 5.0,10.0,15.0,25.0,40.0};
 // c[][] - first index for eta, second for momentum 
-static Double_t c[maxVariant][nPol] = 
-{
- 1.305705e-01, 3.725653e-01, -1.219962e-02, 1.806235e-04,
- 1.296153e-01, 3.827408e-01, -1.238640e-02, 1.822804e-04,
- 1.337690e-01, 3.797454e-01, -1.245227e-02, 1.848243e-04,
- 1.395796e-01, 3.623994e-01, -9.196803e-03, 1.243278e-04,
- 1.457184e-01, 3.753655e-01, -1.035324e-02, 1.473447e-04,
- 1.329164e-01, 4.219044e-01, -1.310515e-02, 1.948883e-04,
- 8.136581e-02, 4.646087e-01, -1.531917e-02, 2.274749e-04,
- 1.119836e-01, 4.262497e-01, -1.160125e-02, 1.628738e-04
-};
+static Double_t c[maxVariant][nPol] ={
+    {1.305705e-01, 3.725653e-01, -1.219962e-02, 1.806235e-04},
+    {1.296153e-01, 3.827408e-01, -1.238640e-02, 1.822804e-04},
+    {1.337690e-01, 3.797454e-01, -1.245227e-02, 1.848243e-04},
+    {1.395796e-01, 3.623994e-01, -9.196803e-03, 1.243278e-04},
+    {1.457184e-01, 3.753655e-01, -1.035324e-02, 1.473447e-04},
+    {1.329164e-01, 4.219044e-01, -1.310515e-02, 1.948883e-04},
+    {8.136581e-02, 4.646087e-01, -1.531917e-02, 2.274749e-04},
+    {1.119836e-01, 4.262497e-01, -1.160125e-02, 1.628738e-04} };
 
 ClassImp(AliEMCALHadronCorrectionv0)
 
@@ -60,7 +64,7 @@ Double_t
 AliEMCALHadronCorrectionv0::GetEnergy(const Double_t pmom,const Double_t eta,const Int_t gid)
 {
   Int_t iEta=0; // index 
-  Double_t etaw = fabs(eta);
+  Double_t etaw = TMath::Abs(eta);
   if(etaw > etaGrid[maxVariant-1]) etaw = etaGrid[maxVariant-1];
   for(Int_t i=0; i<maxVariant; i++) if(eta>=etaGrid[i]) {iEta = i; break;}