1 /**************************************************************************
2 * Copyright(c) 2007-2009, 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 **************************************************************************/
18 // *****************************************
19 // Checks the quality assurance
20 // by comparing with reference data
21 // P. Cerello Apr 2008
24 // --- ROOT system ---
26 // --- AliRoot header files ---
27 #include "AliITSQASPDChecker.h"
29 ClassImp(AliITSQASPDChecker)
31 //__________________________________________________________________
32 AliITSQASPDChecker& AliITSQASPDChecker::operator = (const AliITSQASPDChecker& qac )
35 this->~AliITSQASPDChecker();
36 new(this) AliITSQASPDChecker(qac);
40 //__________________________________________________________________
41 const Double_t AliITSQASPDChecker::Check()
48 if (list->GetEntries() == 0){
49 test = 1. ; // nothing to check
55 while ( (hdata = dynamic_cast<TH1 *>(next())) ) {
58 if(hdata->GetEntries()>0)rv=1;
59 AliInfo(Form("%s -> %f", hdata->GetName(), rv)) ;
64 AliError("Data type cannot be processed") ;
70 AliWarning("Histograms are there, but they are all empty: setting flag to kWARNING");
71 test = 0.5; //upper limit value to set kWARNING flag for a task
79 AliInfo(Form("Test Result = %f", test)) ;