fix track time cut decission
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Nov 2012 15:59:40 +0000 (15:59 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Nov 2012 15:59:40 +0000 (15:59 +0000)
PWG/CaloTrackCorrBase/AliCaloTrackReader.cxx

index 0364724..69afb9e 100755 (executable)
@@ -1148,11 +1148,13 @@ void AliCaloTrackReader::FillInputCTS()
       SetTrackEventBCcut(trackBC+9);
 
       //In any case, the time should to be larger than the fixed window ...
-      if( fUseTrackTimeCut && trackBC==0 && (tof < fTrackTimeCutMin  || tof > fTrackTimeCutMax) )
+      if( fUseTrackTimeCut && (trackBC!=0 || tof < fTrackTimeCutMin  || tof > fTrackTimeCutMax) )
       {
-        //printf("Remove track time %f\n",tof);
+        //printf("Remove track time %f and bc = %d\n",tof,trackBC);
         continue ;
       }
+      //else printf("Accept track time %f and bc = %d\n",tof,trackBC);
+
     }
     
     if(fUseTrackDCACut)