1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
20 Checks the quality assurance.
21 By comparing with reference data
22 Y. Schutz CERN July 2007
25 // --- ROOT system ---
29 #include <TIterator.h>
33 // --- Standard library ---
35 // --- AliRoot header files ---
37 #include "AliQualAss.h"
38 #include "AliQualAssChecker.h"
39 #include "AliPHOSQualAssChecker.h"
41 ClassImp(AliPHOSQualAssChecker)
43 //__________________________________________________________________
44 AliPHOSQualAssChecker& AliPHOSQualAssChecker::operator = (const AliPHOSQualAssChecker& qadm )
47 this->~AliPHOSQualAssChecker();
48 new(this) AliPHOSQualAssChecker(qadm);
52 //____________________________________________________________________________
53 const Double_t AliPHOSQualAssChecker::Check(const Option_t * opt)
55 // Performs the checking
57 TDirectory * wRefDir = fDetectorDir->GetDirectory(opt) ;
58 TDirectory * wInDir = fDetectorDir ->GetDirectory(opt) ;
61 if (!wRefDir || !wInDir)
64 TList * keyList = wRefDir->GetListOfKeys() ;
68 while ( (key = static_cast<TKey *>(next())) ) {
69 TObject * oref = wRefDir->Get(key->GetName()) ;
70 if ( oref->IsA()->InheritsFrom("TH1") ) {
71 TH1 * href = static_cast<TH1F*>(oref) ;
72 TH1 * hin = static_cast<TH1F*>(wInDir->Get(key->GetName())) ;
73 test += DiffK(href, hin) ;
74 AliInfo(Form("test = %f", test)) ;
77 AliError(Form("%s is a class name that cannot be processed", key->GetClassName())) ;