]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
A new class for global Quality Assurance
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Dec 2007 09:34:10 +0000 (09:34 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Dec 2007 09:34:10 +0000 (09:34 +0000)
STEER/AliGlobalQADataMaker.cxx [new file with mode: 0644]
STEER/AliGlobalQADataMaker.h [new file with mode: 0644]
STEER/STEERLinkDef.h
STEER/libSTEER.pkg

diff --git a/STEER/AliGlobalQADataMaker.cxx b/STEER/AliGlobalQADataMaker.cxx
new file mode 100644 (file)
index 0000000..1cde928
--- /dev/null
@@ -0,0 +1,57 @@
+/*
+ The class for calculating the global (not detector specific) quality assurance.
+ It reuses the following TLists from its base class 
+    AliQADataMaker::fRecPointsQAList (for keeping the track residuals)
+    AliQADataMaker::fESDsQAList      (for keeping global ESD QA data)
+*/
+
+#include <TH1F.h>
+
+#include "AliGlobalQADataMaker.h"
+#include "AliGeomManager.h"
+
+ClassImp(AliGlobalQADataMaker)
+void AliGlobalQADataMaker::InitRecPoints() {
+  //------------------------------------------------------
+  // This function fills the histograms of *track*residuals*
+  // as a part of global QA
+  //------------------------------------------------------
+  Char_t *name[]={
+    "SPD1 residuals Y","SPD1 residuals Z",
+    "SPD2 residuals Y","SPD2 residuals Z",
+    "SDD1 residuals Y","SDD1 residuals Z",
+    "SDD2 residuals Y","SDD2 residuals Z",
+    "SSD1 residuals Y","SSD1 residuals Z",
+    "SSD2 residuals Y","SSD2 residuals Z",
+
+    "TPC1 residuals Y","TPC1 residuals Z",
+    "TPC2 residuals Y","TPC2 residuals Z",
+
+    "TRD1 residuals Y","TRD1 residuals Z",
+    "TRD2 residuals Y","TRD2 residuals Z",
+    "TRD3 residuals Y","TRD3 residuals Z",
+    "TRD4 residuals Y","TRD4 residuals Z",
+    "TRD5 residuals Y","TRD5 residuals Z",
+    "TRD6 residuals Y","TRD6 residuals Z",
+
+    "TOF residuals Y","TOF residuals Z",
+
+    "PHOS1 residuals Y","PHOS1 residuals Z",
+    "PHOS2 residuals Y","PHOS2 residuals Z",
+
+    "HMPID residuals Y","HMPID residuals Z",
+
+    "MUON residuals Y","MUON residuals Z",
+
+    "EMCAL residuals Y","EMCAL residuals Z"
+  };
+
+  for (Int_t m=1; m<AliGeomManager::kLastLayer; m++) {
+    Int_t i=2*m-2;
+    TH1F *h=new TH1F(name[i],name[i],100,-5.,5.);
+    Add2RecPointsList(h,i);    
+    h=new TH1F(name[i+1],name[i+1],100,-5.,5.);
+    Add2RecPointsList(h,i+1);    
+  }
+}
diff --git a/STEER/AliGlobalQADataMaker.h b/STEER/AliGlobalQADataMaker.h
new file mode 100644 (file)
index 0000000..d0eefb9
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef ALIGLOBALQADATAMAKER_H
+#define ALIGLOBALQADATAMAKER_H
+
+/*
+ The class for calculating the global (not detector specific) quality assurance.
+ It reuses the following TLists from its base class 
+    AliQADataMaker::fRecPointsQAList (for keeping the track residuals)
+    AliQADataMaker::fESDsQAList      (for keeping global ESD QA data)
+*/
+
+#include "AliQADataMaker.h"
+
+class AliESDEvent;
+
+class AliGlobalQADataMaker: public AliQADataMaker {
+public:
+  AliGlobalQADataMaker(const Char_t *name="Global", 
+                       const Char_t *title="Global QA data maker"):
+    AliQADataMaker(name,title) {;}
+  AliGlobalQADataMaker(const AliQADataMaker& qadm):
+    AliQADataMaker(qadm) {;}
+
+  void InitRecPoints();
+
+  void StartOfDetectorCycle() {;}
+
+private:   
+  AliGlobalQADataMaker &operator=(const AliGlobalQADataMaker &qadm);
+
+  ClassDef(AliGlobalQADataMaker,1)  // Global QA 
+};
+
+#endif
index e194a3bfe01ec1d351b7ae7217fa08ff7d9cda55..5e74572e9eda5d2f91953d7b17f40175b98bbe71 100644 (file)
 
 #pragma link C++ class AliQA+;
 #pragma link C++ class AliQADataMaker+;
+#pragma link C++ class AliGlobalQADataMaker+;
 #pragma link C++ class AliQADataMakerSteer+;
 #pragma link C++ class AliQAChecker+;
 #pragma link C++ class AliQACheckerBase+;
index a82b75c23ee52fe2d27936ade4fd86220147cf7a..5671cf811cfd0ef83c0d43da5ca1677420a860cc 100644 (file)
@@ -50,6 +50,7 @@ AliFstream.cxx \
 AliCTPRawData.cxx \
 AliQA.cxx \
 AliQADataMaker.cxx \
+AliGlobalQADataMaker.cxx \
 AliQADataMakerSteer.cxx \
 AliQAChecker.cxx \
 AliQACheckerBase.cxx \