//____________________________________________________________________________
void AliQACheckerBase::Run(AliQA::ALITASK_t index, TObjArray * list)
{
- AliDebug(1, Form("Processing %s", AliQA::GetAliTaskName(index))) ;
-
- AliQA * qa = AliQA::Instance(index) ;
-
- Double_t rv = -1 ;
- if (list)
- rv = Check(index, list) ;
- else
- rv = Check(index) ;
-
- if ( rv <= 0.)
- qa->Set(AliQA::kFATAL) ;
- else if ( rv > 0 && rv <= 0.0002 )
- qa->Set(AliQA::kERROR) ;
- else if ( rv > 0.0002 && rv <= 0.5 )
- qa->Set(AliQA::kWARNING) ;
- else if ( rv > 0.5 && rv < 1 )
- qa->Set(AliQA::kINFO) ;
- AliDebug(1, Form("Test result of %s", AliQA::GetAliTaskName(index))) ;
- Finish() ;
+ AliDebug(1, Form("Processing %s", AliQA::GetAliTaskName(index))) ;
+
+ Double_t rv = -1 ;
+ if (list)
+ rv = Check(index, list) ;
+ else
+ rv = Check(index) ;
+
+ SetQA(index, rv) ;
+
+ AliDebug(1, Form("Test result of %s", AliQA::GetAliTaskName(index))) ;
+
+ Finish() ;
}
//____________________________________________________________________________
qa->Write(qa->GetName(), kWriteDelete) ;
AliQA::GetQAResultFile()->Close() ;
}
+
+//____________________________________________________________________________
+void AliQACheckerBase::SetQA(AliQA::ALITASK_t index, const Double_t value) const
+{
+ // sets the QA according the return value of the Check
+
+ AliQA * qa = AliQA::Instance(index) ;
+
+ if ( value <= 0.)
+ qa->Set(AliQA::kFATAL) ;
+ else if ( value > 0 && value <= 0.0002 )
+ qa->Set(AliQA::kERROR) ;
+ else if ( value > 0.0002 && value <= 0.5 )
+ qa->Set(AliQA::kWARNING) ;
+ else if ( value > 0.5 && value < 1 )
+ qa->Set(AliQA::kINFO) ;
+}
const Double_t DiffC(const TH1 * href, const TH1 * hin) const ;
const Double_t DiffK(const TH1 * href, const TH1 * hin) const ;
void Finish() const ;
+ virtual void SetQA(AliQA::ALITASK_t index, const Double_t value) const ;
TDirectory * fDataSubDir ; //! directory for the current task directory in the current detector directory in the data file
TDirectory * fRefSubDir ; //! directory for the current task directory in the current detector directory in the reference file