]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSRecoParamHandler.cxx
Introduction of online gain factors (Theo)
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRecoParamHandler.cxx
index 6c9996d605eb1939f6f877be493e40cb8184b733..20dc530bbb7d7ab7bbcf010ee67f641e8469d2ae 100644 (file)
@@ -39,23 +39,19 @@ AliHLTPHOSRecoParamHandler::~AliHLTPHOSRecoParamHandler()
 
 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
+  // See header file for class documentation
+  return e;
 }
 
 void AliHLTPHOSRecoParamHandler::FillParameters()
 {
    //See header file for class documentation
-   if(fRecoParamPtr)
+  AliPHOSRecoParam *tmp = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr);
+   if(tmp)
    {
-      fLogWeight = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCLogWeight();
-      fRecPointMemberThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCMinE();
-      fRecPointThreshold = dynamic_cast<AliPHOSRecoParam*>(fRecoParamPtr)->GetEMCClusteringThreshold();
+      fLogWeight = tmp->GetEMCLogWeight();
+      fRecPointMemberThreshold = tmp->GetEMCMinE();
+      fRecPointThreshold = tmp->GetEMCClusteringThreshold();
    }
 }