Fix related to the HV treatment in the VZERO preprocessor. In sync with the new EOR...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Feb 2011 09:57:11 +0000 (09:57 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Feb 2011 09:57:11 +0000 (09:57 +0000)
VZERO/AliVZERODataDCS.cxx

index 6dd5277..b65b7ae 100644 (file)
@@ -140,14 +140,15 @@ void AliVZERODataDCS::ProcessData(TMap& aliasMap){
        Float_t variation = 0.0;
 
        while((aValue = (AliDCSValue*) iterarray.Next())) {
-                       values[iValue] = aValue->GetFloat();
                        UInt_t currentTime = aValue->GetTimeStamp();
+                       if(currentTime>fDaqEndTime) break;
+
+                       values[iValue] = aValue->GetFloat();
                        times[iValue] = (Double_t) (currentTime);
                        
                        if(iValue>0) {
                                if(values[iValue-1]>0.) variation = TMath::Abs(values[iValue]-values[iValue-1])/values[iValue-1];
-                               if(currentTime>fDaqEndTime && variation>0.10) continue;
-                               if(variation > 0.10) fDeadChannel[GetOfflineChannel(iAlias)] = kTRUE;
+                               if(variation > 0.01) fDeadChannel[GetOfflineChannel(iAlias)] = kTRUE;
                        }
                        fHv[iAlias]->Fill(values[iValue]);
                        printf("%s %f Dead=%d\n",fAliasNames[iAlias].Data(),values[iValue],fDeadChannel[GetOfflineChannel(iAlias)]);