added a protection before writing out the corr NTuple
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Nov 2010 18:33:22 +0000 (18:33 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 6 Nov 2010 18:33:22 +0000 (18:33 +0000)
STEER/AliQADataMakerRec.cxx

index 60c07a1c0fa48d204d28c7b0c3662f720cf9dad1..3f6fc9f4c1ef80e9e8243634a2e6cf4302720bad 100644 (file)
@@ -203,8 +203,10 @@ void AliQADataMakerRec::EndOfCycle(AliQAv1::TASKINDEX_t task)
     } 
     else if ( fCorrNt ) {
       if (fCorrNt[specie] && AliQAv1::GetDetIndex(GetName()) == AliQAv1::kCORR) {
-        eventSpecieDir->cd() ; 
-        fCorrNt[specie]->Write() ; 
+        if (fCorrNt[specie]->GetNvar() != 0) {
+          eventSpecieDir->cd() ; 
+          fCorrNt[specie]->Write() ; 
+        }
       }
       fOutput->Save() ; 
     }