ClassImp(AliPHOSQualAssChecker)
//__________________________________________________________________
-AliPHOSQualAssChecker& AliPHOSQualAssChecker::operator = (const AliPHOSQualAssChecker& qadm )
+AliPHOSQualAssChecker& AliPHOSQualAssChecker::operator = (const AliPHOSQualAssChecker& qac )
{
// Equal operator.
this->~AliPHOSQualAssChecker();
- new(this) AliPHOSQualAssChecker(qadm);
+ new(this) AliPHOSQualAssChecker(qac);
return *this;
}
-//____________________________________________________________________________
-const Double_t AliPHOSQualAssChecker::Check(const Option_t * opt)
-{
- // Performs the checking
-
- TDirectory * wRefDir = fDetectorDir->GetDirectory(opt) ;
- TDirectory * wInDir = fDetectorDir ->GetDirectory(opt) ;
- Double_t test = 0.0 ;
-
- if (!wRefDir || !wInDir)
- test = -1. ;
- else {
- TList * keyList = wRefDir->GetListOfKeys() ;
- TIter next(keyList) ;
- TKey * key ;
- Int_t count = 0 ;
- while ( (key = static_cast<TKey *>(next())) ) {
- TObject * oref = wRefDir->Get(key->GetName()) ;
- if ( oref->IsA()->InheritsFrom("TH1") ) {
- TH1 * href = static_cast<TH1F*>(oref) ;
- TH1 * hin = static_cast<TH1F*>(wInDir->Get(key->GetName())) ;
- test += DiffK(href, hin) ;
- AliInfo(Form("test = %f", test)) ;
- count++ ;
- } else
- AliError(Form("%s is a class name that cannot be processed", key->GetClassName())) ;
- }
- if (count != 0)
- test /= count ;
- }
-
- return test ;
-}