bug fix using the v0 time offset
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Dec 2009 10:24:42 +0000 (10:24 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Dec 2009 10:24:42 +0000 (10:24 +0000)
PWG0/AliTriggerAnalysis.cxx

index 49a6694..6d09843 100644 (file)
@@ -585,7 +585,6 @@ AliTriggerAnalysis::V0Decision AliTriggerAnalysis::V0Trigger(const AliESDEvent*
       Float_t correctedTime = V0CorrectLeadingTime(i, esdV0->GetTime(i), esdV0->GetAdc(i));
       Float_t timeWeight = V0LeadingTimeWeight(esdV0->GetAdc(i));
       time += correctedTime*timeWeight;
-      time += fV0TimeOffset;
       
       weight += timeWeight;
     }
@@ -593,6 +592,7 @@ AliTriggerAnalysis::V0Decision AliTriggerAnalysis::V0Trigger(const AliESDEvent*
 
   if (weight > 0) 
     time /= weight;
+  time += fV0TimeOffset;
 
   if (fillHists)
   {