]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSQualAssChecker.cxx
Updated QA classes (Yves)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSQualAssChecker.cxx
index d9d5b531fa40de9e201375c581e1c65b4f289959..99cbbba0c9a7542904ea1e7691d884bb0e1f471c 100644 (file)
 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 ; 
-}