Skip to content

Commit

Permalink
form David Rohr: Fix crash during QA part of rec.C
Browse files Browse the repository at this point in the history
AliHLTQADataMakerRec.cxx:
previously set gDirectory to 0 temporarily, in order to prevent
histograms beeing added to current directory. With new root,
this causes a crash during TObject::clone. Hence we use the
propper way to disable histograms beeing added to gDirectory
temporarily, and reset it afterwards
  • Loading branch information
mkrzewic committed Jan 16, 2015
1 parent 5aa0f94 commit aee7d7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HLT/QA/AliHLTQADataMakerRec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ void AliHLTQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr
// see header file for class documentation
TIter next(&fPlugins);
TObject* obj=NULL;
TDirectory* dirBackup=gDirectory;
gDirectory=NULL;
Bool_t dirStatusBackup = gDirectory->AddDirectoryStatus();
gDirectory->AddDirectory(kFALSE);
while ((obj=next())) {
AliHLTQADataMakerBase* plugin=dynamic_cast<AliHLTQADataMakerBase*>(obj);
if (!plugin) continue;
Expand Down Expand Up @@ -172,7 +172,7 @@ void AliHLTQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArr
}
}
}
gDirectory=dirBackup;
gDirectory->AddDirectory(dirStatusBackup);
}

void AliHLTQADataMakerRec::MakeRaws(AliRawReader * rawReader)
Expand Down

0 comments on commit aee7d7b

Please sign in to comment.