]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correction for a potential problem, says Cvetan
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 23:34:02 +0000 (23:34 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 3 Dec 2009 23:34:02 +0000 (23:34 +0000)
STEER/AliCorrQADataMakerRec.cxx

index ab574ef81d66f80e17d6230f15707bb31085068c..04b063b3b445f667ecfe0a2cb2322d81d594a4ab 100644 (file)
@@ -164,8 +164,7 @@ void AliCorrQADataMakerRec::MakeRaws(AliRawReader *)
       InitRaws() ; 
   
   if ( fMaxRawVar > 0 ) {
-    const Int_t kSize = fMaxRawVar ; 
-    Double_t  *varvalue = new Double_t[kSize] ;
+    Double_t  *varvalue = new Double_t[fMaxRawVar] ;
     Int_t index = 0 ;
     for ( Int_t detIndex = 0 ; detIndex < AliQAv1::kNDET ; detIndex++ ) {
       AliQADataMaker * qadm = fqadm[detIndex] ; 
@@ -175,10 +174,10 @@ void AliCorrQADataMakerRec::MakeRaws(AliRawReader *)
       TIter next(list) ; 
       TParameter<double> * p ; 
       while ( (p = static_cast<TParameter<double>*>(next()) ) ) {
-       if (index >= kSize) {
-         AliError(Form("Variables list size exceeded (%d) !",index));
-         break;
-       }
+//     if (index >= kSize) {
+//       AliError(Form("Variables list size exceeded (%d) !",index));
+//       break;
+//     }
         varvalue[index++] = p->GetVal() ; 
       }
     }