Fix for #81567: fix in SetTOFResponse method (AliESDpid)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 08:43:58 +0000 (08:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 08:43:58 +0000 (08:43 +0000)
STEER/AliESDpid.cxx

index ccb5855..220c211 100644 (file)
@@ -383,6 +383,7 @@ void AliESDpid::SetTOFResponse(AliVEvent *vevent,EStartTimeType_t option){
       for(Int_t i=0;i<fTOFResponse.GetNmomBins();i++){ // read T0-TOF default value
        startTime[i]=tofHeader->GetDefaultEventTimeVal();
        startTimeRes[i]=tofHeader->GetDefaultEventTimeRes();
+       if(startTimeRes[i] < 1.e-5) startTimeRes[i] = t0spread;
       }
 
       TArrayI *ibin=tofHeader->GetNvalues();
@@ -392,7 +393,8 @@ void AliESDpid::SetTOFResponse(AliVEvent *vevent,EStartTimeType_t option){
        Int_t icurrent = (Int_t)ibin->GetAt(j);
        startTime[icurrent]=t0Bin->GetAt(j);
        startTimeRes[icurrent]=t0ResBin->GetAt(j);
-      }
+       if(startTimeRes[icurrent] < 1.e-5) startTimeRes[icurrent] = t0spread;
+     }
     }
 
     // for cut of 3 sigma on t0 spread