Initialize the array of test results before providing it to detector-specific Check
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Oct 2011 22:31:26 +0000 (22:31 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 25 Oct 2011 22:31:26 +0000 (22:31 +0000)
STEER/STEER/AliQACheckerBase.cxx

index cd55c99..d722766 100644 (file)
@@ -337,6 +337,7 @@ void AliQACheckerBase::Run(AliQAv1::ALITASK_t index, AliDetectorRecoParam * reco
   AliDebug(AliQAv1::GetQADebugLevel(), Form("Processing %s", AliQAv1::GetAliTaskName(index))) ; 
   
   Double_t * rv = new Double_t[AliRecoParam::kNSpecies] ;
+  for (int i=AliRecoParam::kNSpecies;i--;) rv[i] = 0.0;
   Check(rv, index, recoParam) ;
   SetQA(index, rv) ;