A new class for global Quality Assurance
[u/mrichter/AliRoot.git] / STEER / AliGlobalQADataMaker.cxx
CommitLineData
c0af1be2 1/*
2 The class for calculating the global (not detector specific) quality assurance.
3 It reuses the following TLists from its base class
4 AliQADataMaker::fRecPointsQAList (for keeping the track residuals)
5 AliQADataMaker::fESDsQAList (for keeping global ESD QA data)
6*/
7
8#include <TH1F.h>
9
10#include "AliGlobalQADataMaker.h"
11#include "AliGeomManager.h"
12
13ClassImp(AliGlobalQADataMaker)
14
15void AliGlobalQADataMaker::InitRecPoints() {
16 //------------------------------------------------------
17 // This function fills the histograms of *track*residuals*
18 // as a part of global QA
19 //------------------------------------------------------
20 Char_t *name[]={
21 "SPD1 residuals Y","SPD1 residuals Z",
22 "SPD2 residuals Y","SPD2 residuals Z",
23 "SDD1 residuals Y","SDD1 residuals Z",
24 "SDD2 residuals Y","SDD2 residuals Z",
25 "SSD1 residuals Y","SSD1 residuals Z",
26 "SSD2 residuals Y","SSD2 residuals Z",
27
28 "TPC1 residuals Y","TPC1 residuals Z",
29 "TPC2 residuals Y","TPC2 residuals Z",
30
31 "TRD1 residuals Y","TRD1 residuals Z",
32 "TRD2 residuals Y","TRD2 residuals Z",
33 "TRD3 residuals Y","TRD3 residuals Z",
34 "TRD4 residuals Y","TRD4 residuals Z",
35 "TRD5 residuals Y","TRD5 residuals Z",
36 "TRD6 residuals Y","TRD6 residuals Z",
37
38 "TOF residuals Y","TOF residuals Z",
39
40 "PHOS1 residuals Y","PHOS1 residuals Z",
41 "PHOS2 residuals Y","PHOS2 residuals Z",
42
43 "HMPID residuals Y","HMPID residuals Z",
44
45 "MUON residuals Y","MUON residuals Z",
46
47 "EMCAL residuals Y","EMCAL residuals Z"
48 };
49
50 for (Int_t m=1; m<AliGeomManager::kLastLayer; m++) {
51 Int_t i=2*m-2;
52 TH1F *h=new TH1F(name[i],name[i],100,-5.,5.);
53 Add2RecPointsList(h,i);
54 h=new TH1F(name[i+1],name[i+1],100,-5.,5.);
55 Add2RecPointsList(h,i+1);
56 }
57}