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 **************************************************************************/
17 // --- ROOT system ---
21 #include <TIterator.h>
25 // --- Standard library ---
27 // --- AliRoot header files ---
30 #include "AliQAChecker.h"
31 #include "AliZDCQAChecker.h"
33 ClassImp(AliZDCQAChecker)
35 //__________________________________________________________________
36 AliZDCQAChecker& AliZDCQAChecker::operator = (const AliZDCQAChecker& qac )
39 this->~AliZDCQAChecker();
40 new(this) AliZDCQAChecker(qac);
45 //____________________________________________________________________________
46 const Double_t AliZDCQAChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray * list)
48 // Checks the QA histograms on the input list:
53 if(list->GetEntries() == 0){
54 AliWarning("The list to be checked is empty!");
55 test = 1.; // nothing to check
61 while((hdata = dynamic_cast<TH1 *>(next()))){
64 if(hdata->GetEntries()>0) rv=1;
65 AliInfo(Form("%s -> %f", hdata->GetName(), rv));
70 AliError("Data type cannot be processed");
75 AliWarning("Histograms to be checked are empty!!!");
76 test = 0.5; //upper limit value to set kWARNING flag for a task
84 AliInfo(Form("Test Result = %f", test));