/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Authors: Oystein Djuvsland * * * * 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. * **************************************************************************/ #include "AliHLTPHOSRecoParamHandler.h" #include "AliCDBManager.h" #include "AliCDBEntry.h" #include "AliPHOSRecoParam.h" #include "TMatrixF.h" #include "TVector3.h" #include "AliPHOSReconstructor.h" #ifdef HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091 #include "AliPHOSPIDv1.h" #endif // HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091 #include "TObjArray.h" AliHLTPHOSRecoParamHandler::AliHLTPHOSRecoParamHandler() : AliHLTCaloRecoParamHandler("PHOS") { // See header file for class documentation } AliHLTPHOSRecoParamHandler::~AliHLTPHOSRecoParamHandler() { // See header file for class documentation } Float_t AliHLTPHOSRecoParamHandler::GetCorrectedEnergy ( Float_t e ) { // See header file for class documentation #ifndef HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091 return AliPHOSReconstructor::CorrectNonlinearity(e) ; #else // !HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091 AliPHOSPIDv1 phospidv1; return phospidv1.GetCalibratedEnergy(e); #endif // HAVE_NOT_ALIPHOSRECONSTRUCTOR_r44091 } void AliHLTPHOSRecoParamHandler::FillParameters() { //See header file for class documentation if(fRecoParamPtr) { fLogWeight = dynamic_cast(fRecoParamPtr)->GetEMCLogWeight(); fRecPointMemberThreshold = dynamic_cast(fRecoParamPtr)->GetEMCMinE(); fRecPointThreshold = dynamic_cast(fRecoParamPtr)->GetEMCClusteringThreshold(); } }