]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
check if event specie is set before using
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Nov 2009 17:33:15 +0000 (17:33 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Nov 2009 17:33:15 +0000 (17:33 +0000)
STEER/AliCorrQAChecker.cxx

index f6c1b2204aa55172baa6411df11340bce91da5e3..ea12cd8381bbd98212d75cd525671ab497f90a57 100644 (file)
@@ -63,6 +63,8 @@ Double_t * AliCorrQAChecker::CheckN(AliQAv1::ALITASK_t index, TNtupleD ** nData,
       AliError(Form("nRawCorr not found in %s", fDataSubDir->GetName())) ; 
     } else {
       for (Int_t specie = 0 ; specie < AliRecoParam::kNSpecies ; specie++) {
+        if ( !AliQAv1::Instance()->IsEventSpecieSet(specie) ) 
+          continue ; 
         TObjArray * bList = nData[specie]->GetListOfBranches() ; 
         for (Int_t b = 0 ; b < bList->GetEntries() ; b++) {
           AliInfo(Form("Ntuple %s parameter name %d : %s", nData[specie]->GetName(), b, bList->At(b)->GetName())) ;