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 **************************************************************************/
16 // Checks the quality assurance for ACORDE.
17 // Default implementation
19 // Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch> (FCFM-BUAP)
20 // Luciano Diaz Gonzalez <luciano.diaz@nucleares.unam.mx> (ICN-UNAM)
21 // Arturo Fernandez <afernan@mail.cern.ch> (FCFM-BUAP)
24 // --- ROOT system ---
28 #include <TIterator.h>
32 // --- Standard library ---
34 // --- AliRoot header files ---
37 #include "AliQAChecker.h"
38 #include "AliACORDEQAChecker.h"
40 ClassImp(AliACORDEQAChecker)
42 //__________________________________________________________________
44 const Double_t AliACORDEQAChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray * list)
48 // Super-basic check on the QA histograms on the input list:
49 // look whether they are empty!
53 if (list->GetEntries() == 0){
54 test = 1. ; // nothing to check
60 while ( (hdata = dynamic_cast<TH1 *>(next())) ) {
63 if(hdata->GetEntries()>0)rv=1;
64 AliInfo(Form("%s -> %f", hdata->GetName(), rv)) ;
69 AliError("Data type cannot be processed") ;
75 AliWarning("Histograms are there, but they are all empty: setting flag to kWARNING");
76 test = 0.5; //upper limit value to set kWARNING flag for a task
84 AliInfo(Form("Test Result = %f", test)) ;