]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added debugs
authorvestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Jan 2002 16:47:28 +0000 (16:47 +0000)
committervestbo <vestbo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Jan 2002 16:47:28 +0000 (16:47 +0000)
HLT/src/AliL3ClustFinderNew.cxx

index d982acaee0903daf9ccf0408227931af0400129e..97af325c23dc7941534c3734350527afe93dcee4 100644 (file)
@@ -163,6 +163,13 @@ void AliL3ClustFinderNew::ProcessRow(AliL3DigitRowData *tempPt)
 
       while(1) //Loop over current sequence
        {
+         if(data[bin].fTime >= fTransform->GetNTimeBins())
+           {
+             LOG(AliL3Log::kFatal,"AliL3ClustFinderNew::ProcessRow","Digits")
+               <<"Timebin out of range "<<(Int_t)data[bin].fTime<<ENDLOG;
+             break;
+           }
+
          //Get the current ADC-value
          UInt_t charge = data[bin].fCharge;
          
@@ -200,7 +207,8 @@ void AliL3ClustFinderNew::ProcessRow(AliL3DigitRowData *tempPt)
        seq_mean = seq_average/seq_charge;
       else
        {
-         printf("\nCF: Should not happen\n");
+         LOG(AliL3Log::kFatal,"AliL3ClustFinderNew::ProcessRow","Data")
+           <<"Error in data given to the cluster finder"<<ENDLOG;
          seq_mean = 1;
          seq_charge = 1;
        }