]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding simple check on the signals.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2010 11:48:54 +0000 (11:48 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2010 11:48:54 +0000 (11:48 +0000)
HLT/TPCLib/AliHLTTPCDataCheckerComponent.cxx

index 62e01ade31961c75fa38e4e4f1484152063e6585..cfb4d25e03b1c979cd2c1332f306cc07112a549e 100644 (file)
@@ -363,16 +363,18 @@ bool AliHLTTPCDataCheckerComponent::CheckRawDataBlock(
                        {
                                while (fRawStream->NextBunch())
                                {
-                                       UInt_t startTimeBin = fRawStream->GetStartTimeBin();
-                                       UInt_t endTimeBin = fRawStream->GetEndTimeBin();
                                        Int_t bunchLength = fRawStream->GetBunchLength();
                                        const UShort_t* bunchData = fRawStream->GetSignals();
-                                       cout << "startTimeBin = " << startTimeBin << endl;
-                                       cout << "endTimeBin = " << endTimeBin << endl;
-                                       cout << "bunchLength = " << bunchLength << endl;
                                        for (Int_t i = 0; i < bunchLength; ++i)
                                        {
-                                               cout << "bunchData[" << i << "] = " << bunchData[i] << endl;
+                                               if (bunchData[i] <= 0)
+                                               {
+                                                       HLTWarning("Data signal %d in sector %d row %d pad %d is a strange value %d,"
+                                                               " for data block %d (DDL ID = %d) in event %lld.",
+                                                               i, fRawStream->GetSector(), fRawStream->GetRow(),
+                                                               fRawStream->GetPad(), bunchData[i], index, ddlid, event
+                                                       );
+                                               }
                                        }
                                }
                        }