histList = new TList;
while (( objarray = (TObjArray*)objListIterator->Next() )) {
// loop over arrayQDZList, get TObjArray, get object at position i, cast it into TH3F
- if (!objarray) continue;
hist = (TH3F*)(objarray->At(i));
histList->Add(hist);
}