From: schutz Date: Wed, 10 Oct 2007 16:22:43 +0000 (+0000) Subject: Protection against the absence of QA reference data X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=ac2bb64a4b28ae748355430c06ab65e1d898d9fc;p=u%2Fmrichter%2FAliRoot.git Protection against the absence of QA reference data --- diff --git a/STEER/AliQAChecker.cxx b/STEER/AliQAChecker.cxx index 8ff6cced516..d2545f31cc3 100644 --- a/STEER/AliQAChecker.cxx +++ b/STEER/AliQAChecker.cxx @@ -171,7 +171,7 @@ TDirectory * AliQAChecker::GetRefSubDir(const char * det, const char * task) // Opens and returns the file with the reference data TFile * f = TFile::Open(fRefDirName, "READ") ; if (!f) - AliFatal(Form("Cannot find reference file %s", fRefDirName.Data())) ; + AliError(Form("Cannot find reference file %s", fRefDirName.Data())) ; TDirectory * rv = NULL ; rv = f->GetDirectory(det) ; if (!rv) { @@ -253,8 +253,11 @@ Bool_t AliQAChecker::Run() if ( taskName == AliQA::GetTaskName(AliQA::kESDS) ) index = AliQA::kESD ; qac->Init(AliQA::DETECTORINDEX(det)) ; - qac->SetRefandData(GetRefSubDir(detNameQA.Data(), taskName.Data()), taskDir) ; - qac->Run(index) ; + TDirectory * refDir = GetRefSubDir(detNameQA.Data(), taskName.Data()) ; + if ( refDir ) { + qac->SetRefandData(refDir, taskDir) ; + qac->Run(index) ; + } } } AliInfo("QA performed for following detectors:") ;