Correlation QA Checker
[u/mrichter/AliRoot.git] / STEER / AliCorrQAChecker.cxx
CommitLineData
9c958a41 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
16
17/* $Id: $ */
18
19/*
20 Checks the quality assurance.
21 By comparing with reference data
22 Y. Schutz CERN July 2007
23*/
24
25// --- ROOT system ---
26#include <TClass.h>
27#include <TH1F.h>
28#include <TH1I.h>
29#include <TIterator.h>
30#include <TKey.h>
31#include <TFile.h>
32#include <TNtupleD.h>
33
34// --- Standard library ---
35
36// --- AliRoot header files ---
37#include "AliLog.h"
38#include "AliQA.h"
39#include "AliQAChecker.h"
40#include "AliCorrQAChecker.h"
41
42ClassImp(AliCorrQAChecker)
43
44//__________________________________________________________________
45const Double_t AliCorrQAChecker::Check(AliQA::ALITASK_t index, TNtupleD * nData)
46{
47 // check the QA of correlated data stored in a ntuple
48 if ( index != AliQA::kRAW ) {
49 AliWarning("Checker not implemented") ;
50 return 1.0 ;
51 }
52 Double_t test = 0.0 ;
53// if (!fRefSubDir) {
54// test = 1. ; // no reference data
55// } else {
56 if ( ! nData ) {
57 AliError(Form("nRawCorr not found in %s", fDataSubDir->GetName())) ;
58 } else {
59 TObjArray * bList = nData->GetListOfBranches() ;
60 for (Int_t b = 0 ; b < bList->GetEntries() ; b++) {
61 AliInfo(Form("Ntuple parameter name %d : %s", b, bList->At(b)->GetName())) ;
62 }
63 }
64 // }
65 return test ;
66}
67