protect against missing centrality class
authorabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 10:58:30 +0000 (10:58 +0000)
committerabercuci <abercuci@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 10:58:30 +0000 (10:58 +0000)
PWG1/TRD/AliTRDcheckDET.cxx

index f628f2c..bfad5a5 100644 (file)
@@ -1500,7 +1500,7 @@ void AliTRDcheckDET::MakePlotTrackletCharge(){
        for(Int_t icent = 0; icent < AliTRDeventInfo::kCentralityClasses; icent++){
                hQtCent[icent] = hQt->ProjectionX(Form("hQt_%d", icent), icent+1, icent+1);
                if(!hQtCent[icent]->GetEntries()){
-                       delete hQtCent[icent];
+                       delete hQtCent[icent]; hQtCent[icent]=NULL;
                        continue;
                }
                hQtCent[icent]->SetTitle("Tracklet Charge");