const Char_t * cname = Form("%s_%s", list[AliRecoParam::AConvert(AliRecoParam::kDefault)]->GetName(), hist->GetName()) ;
TParameter<double> * p = new TParameter<double>(cname, 9999.9999) ;
if ( fParameterList[AliRecoParam::AConvert(fEventSpecie)] == NULL )
+ {
fParameterList[AliRecoParam::AConvert(fEventSpecie)] = new TList() ;
+ fParameterList[AliRecoParam::AConvert(fEventSpecie)]->SetOwner(kTRUE);
+ }
fParameterList[AliRecoParam::AConvert(fEventSpecie)]->Add(p) ;
}
TObject* old = list[AliRecoParam::AConvert(fEventSpecie)]->At(index);
if (!fRecoParam) {
AliDebug(AliQAv1::GetQADebugLevel(), Form("Loading reconstruction parameter objects for detector %s", GetName()));
AliCDBPath path(GetName(),"Calib","RecoParam");
- AliCDBEntry *entry=AliCDBManager::Instance()->Get(path.GetPath());
+ AliCDBEntry *entry=AliCDBManager::Instance()->Get(path.GetPath());
if(!entry) {
fRecoParam = NULL ;
AliDebug(AliQAv1::GetQADebugLevel(), Form("Couldn't find RecoParam entry in OCDB for detector %s",GetName()));
}
else {
+ entry->SetOwner(kTRUE);
TObject * recoParamObj = entry->GetObject() ;
if ( strcmp(recoParamObj->ClassName(), "TObjArray") == 0 ) {
// The detector has only one set of reco parameters
AliDebug(AliQAv1::GetQADebugLevel(), Form("Array of reconstruction parameters found for detector %s",GetName()));
TObjArray *recoParamArray = static_cast<TObjArray*>(recoParamObj) ;
+ recoParamArray->SetOwner(kTRUE);
for (Int_t iRP=0; iRP<recoParamArray->GetEntriesFast(); iRP++) {
fRecoParam = static_cast<AliDetectorRecoParam*>(recoParamArray->At(iRP)) ;
if (!fRecoParam)