]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correlation QA Checker
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 11:45:32 +0000 (11:45 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 11:45:32 +0000 (11:45 +0000)
STEER/AliCorrQAChecker.cxx [new file with mode: 0644]
STEER/AliCorrQAChecker.h [new file with mode: 0644]

diff --git a/STEER/AliCorrQAChecker.cxx b/STEER/AliCorrQAChecker.cxx
new file mode 100644 (file)
index 0000000..09eb5d4
--- /dev/null
@@ -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 <TClass.h>
+#include <TH1F.h> 
+#include <TH1I.h> 
+#include <TIterator.h> 
+#include <TKey.h> 
+#include <TFile.h> 
+#include <TNtupleD.h>
+
+// --- 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 (file)
index 0000000..030afd8
--- /dev/null
@@ -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