int indCl = GetEventTrigClass(icl)->GetUniqueID();
// AliInfo(Form("Ind %d at %d of %p of %p",index,indCl, arr, list[AliRecoParam::AConvert(fEventSpecie)]));
TH1* histo = dynamic_cast<TH1*>(arr->At(indCl));
- dest->AddLast(histo);
+ if (histo) dest->AddLast(histo);
// AliInfo(Form("EvCl%d IndTr%d add to %d IndH %d %p %s",icl,indCl,dest->LastIndex(),index,histo,histo ? histo->GetName():"XXX"));
}
// check if original histo was kept
if (arr->TestBit(AliQAv1::GetOrigHistoKeptBit())) {
TH1* histo = dynamic_cast<TH1*>(arr->At(GetNTrigClasses()));
- dest->AddLast(histo);
+ if (histo) dest->AddLast(histo);
// AliInfo(Form("Def add to %d inex: %d %p %s",dest->LastIndex(),index,histo,histo ? histo->GetName():"XXX"));
}
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x);
+ for (int ih=count;ih--;) if ((TH1*)arr->At(ih)) ((TH1*)arr->At(ih))->Fill(x);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Fill(x,y);
+ for (int ih=count;ih--;) if ((TH1*)arr->At(ih)) ((TH1*)arr->At(ih))->Fill(x,y);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->Fill(x,y,z);
+ for (int ih=count;ih--;) if ((TH2*)arr->At(ih)) ((TH2*)arr->At(ih))->Fill(x,y,z);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(bin,w);
+ for (int ih=count;ih--;) if ((TH2*)arr->At(ih)) ((TH2*)arr->At(ih))->SetBinContent(bin,w);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinContent(binX,binY,w);
+ for (int ih=count;ih--;) if ((TH2*)arr->At(ih)) ((TH2*)arr->At(ih))->SetBinContent(binX,binY,w);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(bin,err);
+ for (int ih=count;ih--;) if ((TH2*)arr->At(ih)) ((TH2*)arr->At(ih))->SetBinError(bin,err);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH2*)arr->At(ih))->SetBinError(binX,binY,err);
+ for (int ih=count;ih--;) if ((TH2*)arr->At(ih)) ((TH2*)arr->At(ih))->SetBinError(binX,binY,err);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->Reset(option);
+ for (int ih=count;ih--;) if ((TH1*)arr->At(ih)) ((TH1*)arr->At(ih))->Reset(option);
}
return count;
}
int count = 0;
if (arr) {
count = arr->GetEntriesFast();
- for (int ih=count;ih--;) ((TH1*)arr->At(ih))->ResetStats();
+ for (int ih=count;ih--;) if ((TH1*)arr->At(ih)) ((TH1*)arr->At(ih))->ResetStats();
}
return count;
}