/************************************************************************** * Copyright(c) 1998-2002, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // Author : Mark Horner (LBL/UCT) #include "AliEMCALHadronCorrectionv1.h" #include "AliEMCALGeometry.h" #include "Riostream.h" #include "TMath.h" static Double_t par_look_up[HCPARAMETERS][HCPARAMETERSETS] = { {-2.82271e-4 , -2.39954e-4}, {2.50796e-2 , 2.07172e-2}, {1.02861e-3 , 1.48576e-3}, {2.11539e-2 , -1.38473-2}, {2.27003e-2 , 2.78252e-2}, {1.65078e-6 , 1.51821e-6} }; ClassImp(AliEMCALHadronCorrectionv1) AliEMCALHadronCorrectionv1* AliEMCALHadronCorrectionv1::fHadrCorr = 0; void AliEMCALHadronCorrectionv1::SetGeometry(AliEMCALGeometry *geometry) { if (!geometry) { SetParameters(); fSamplingFraction = geometry->GetSampling(); cout<<"Setting the sampling fraction to :"<GetName()); fSamplingFraction = geometry->GetSampling(); cout<<"Setting the sampling fraction to :"<