From 9c958a4140e3f7f27d6bbb8210247f15a2c1fd02 Mon Sep 17 00:00:00 2001 From: schutz Date: Fri, 15 Aug 2008 11:45:32 +0000 Subject: [PATCH] Correlation QA Checker --- STEER/AliCorrQAChecker.cxx | 67 ++++++++++++++++++++++++++++++++++++++ STEER/AliCorrQAChecker.h | 42 ++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 STEER/AliCorrQAChecker.cxx create mode 100644 STEER/AliCorrQAChecker.h diff --git a/STEER/AliCorrQAChecker.cxx b/STEER/AliCorrQAChecker.cxx new file mode 100644 index 00000000000..09eb5d47e57 --- /dev/null +++ b/STEER/AliCorrQAChecker.cxx @@ -0,0 +1,67 @@ +/************************************************************************** + * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * * + * Author: The ALICE Off-line Project. * + * Contributors are mentioned in the code where appropriate. * + * * + * Permission to use, copy, modify and distribute this software and its * + * documentation strictly for non-commercial purposes is hereby granted * + * without fee, provided that the above copyright notice appears in all * + * copies and that both the copyright notice and this permission notice * + * appear in the supporting documentation. The authors make no claims * + * about the suitability of this software for any purpose. It is * + * provided "as is" without express or implied warranty. * + **************************************************************************/ + + +/* $Id: $ */ + +/* + Checks the quality assurance. + By comparing with reference data + Y. Schutz CERN July 2007 +*/ + +// --- ROOT system --- +#include +#include +#include +#include +#include +#include +#include + +// --- Standard library --- + +// --- AliRoot header files --- +#include "AliLog.h" +#include "AliQA.h" +#include "AliQAChecker.h" +#include "AliCorrQAChecker.h" + +ClassImp(AliCorrQAChecker) + +//__________________________________________________________________ +const Double_t AliCorrQAChecker::Check(AliQA::ALITASK_t index, TNtupleD * nData) +{ + // check the QA of correlated data stored in a ntuple + if ( index != AliQA::kRAW ) { + AliWarning("Checker not implemented") ; + return 1.0 ; + } + Double_t test = 0.0 ; +// if (!fRefSubDir) { +// test = 1. ; // no reference data +// } else { + if ( ! nData ) { + AliError(Form("nRawCorr not found in %s", fDataSubDir->GetName())) ; + } else { + TObjArray * bList = nData->GetListOfBranches() ; + for (Int_t b = 0 ; b < bList->GetEntries() ; b++) { + AliInfo(Form("Ntuple parameter name %d : %s", b, bList->At(b)->GetName())) ; + } + } + // } + return test ; +} + diff --git a/STEER/AliCorrQAChecker.h b/STEER/AliCorrQAChecker.h new file mode 100644 index 00000000000..030afd8bf0b --- /dev/null +++ b/STEER/AliCorrQAChecker.h @@ -0,0 +1,42 @@ +#ifndef ALICORRQACHECKER_H +#define ALICORRQACHECKER_H +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + + +/* $Id: AliCorrQAChecker.h 27115 2008-07-04 15:12:14Z hristov $ */ + +/* + Checks the quality assurance. + By comparing with reference data + Y. Schutz CERN July 2007 +*/ + + +// --- ROOT system --- +class TFile ; +class TH1F ; +class TH1I ; + +// --- Standard library --- + +// --- AliRoot header files --- +#include "AliQACheckerBase.h" +class AliCorrLoader ; + +class AliCorrQAChecker: public AliQACheckerBase { + +public: + AliCorrQAChecker() : AliQACheckerBase("Corr","Corr Quality Assurance Data Maker") {;} // ctor + AliCorrQAChecker(const AliCorrQAChecker& qac) : AliQACheckerBase(qac.GetName(), qac.GetTitle()) {;} // cpy ctor + virtual ~AliCorrQAChecker() {;} // dtor + + virtual const Double_t Check(AliQA::ALITASK_t index, TNtupleD * nData) ; + +private: + + ClassDef(AliCorrQAChecker,1) // description + +}; + +#endif // AliCORRQAChecker_H -- 2.43.0