Backward compatibility restored.
authorpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Nov 2010 18:42:19 +0000 (18:42 +0000)
committerpolicheh <policheh@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Nov 2010 18:42:19 +0000 (18:42 +0000)
If no RecoParameters found, use default non-linear correction.

PHOS/AliPHOSReconstructor.cxx

index deb6561..b1187fa 100644 (file)
@@ -507,6 +507,11 @@ void AliPHOSReconstructor::FillMisalMatrixes(AliESDEvent* esd)const{
 //==================================================================================
 Float_t AliPHOSReconstructor::CorrectNonlinearity(Float_t en){
 
+  //For backward compatibility, if no RecoParameters found
+  if(!GetRecoParam()){
+    return 0.0241+1.0504*en+0.000249*en*en ;
+  }
+
   if(strcmp(GetRecoParam()->GetNonlinearityCorrectionVersion(),"NoCorrection")==0){
     return en ;
   }