//man->SetDefaultStorage(gSystem->Getenv("AMORE_CDB_URI"));
if(!man) return;
AliCDBEntry* entry = man->Get("GRP/Calib/QAThresholds");
+ if(!entry) return;
TObjArray* t0branch = (TObjArray*) entry->GetObject();
AliQAThresholds* thresholds = (AliQAThresholds*) t0branch->FindObject("T00");
// here you should test that you got a non-null pointer