]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSQASPDDataMakerRec.cxx
Changing a default argument in the standard constructor (M. Van Leeuwen)
[u/mrichter/AliRoot.git] / ITS / AliITSQASPDDataMakerRec.cxx
CommitLineData
096292ae 1/**************************************************************************
2 * Copyright(c) 2007-2009, 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 **************************************************************************/
3f905799 15/* $Id$ */
096292ae 16// *************************************************************
17// Checks the quality assurance
18// by comparing with reference data
19// contained in a DB
20// -------------------------------------------------------------
21// W. Ferrarese + P. Cerello Feb 2008
22// INFN Torino
23// M. Nicassio D. Elia INFN Bari March 2008
24// maria.nicassio@ba.infn.it
25
26
27// --- ROOT system ---
28#include <TTree.h>
29#include <TH1.h>
30#include <TH2.h>
31#include <TMath.h>
32// --- Standard library ---
33
34// --- AliRoot header files ---
35#include "AliITSQADataMakerRec.h"
36#include "AliITSQASPDDataMakerRec.h"
37#include "AliLog.h"
4e25ac79 38#include "AliQAv1.h"
096292ae 39#include "AliRawReader.h"
379510c2 40#include "AliITSRawStreamSPD.h"
41#include "AliITSRawStreamSPDErrorLog.h"
33626263 42#include "AliITSdigitSPD.h"
096292ae 43#include "AliITSRecPoint.h"
379510c2 44
096292ae 45ClassImp(AliITSQASPDDataMakerRec)
46
47//____________________________________________________________________________
379510c2 48AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode, Short_t ldc, AliITSRawStreamSPDErrorLog *aliITSRawStreamSPDErrorLog) :
096292ae 49TObject(),
50fAliITSQADataMakerRec(aliITSQADataMakerRec),
51fkOnline(kMode),
52fLDC(ldc),
7a0e5776 53fSPDhRawsTask(0),
44ed7a66 54fSPDhDigitsTask(0),
7a0e5776 55fSPDhRecPointsTask(0),
56fGenRawsOffset(0),
44ed7a66 57fGenDigitsOffset(0),
7a0e5776 58fGenRecPointsOffset(0),
379510c2 59fAdvLogger(aliITSRawStreamSPDErrorLog)
096292ae 60{
61 //ctor used to discriminate OnLine-Offline analysis
8b7e858c 62 //AliInfo(Form("AliRecoParam::kNSpecies %d\n",AliRecoParam::kNSpecies));
63 fGenRawsOffset = new Int_t[AliRecoParam::kNSpecies];
64 fGenRecPointsOffset = new Int_t[AliRecoParam::kNSpecies];
4a903927 65 fGenDigitsOffset = new Int_t[AliRecoParam::kNSpecies];
8b7e858c 66 for(Int_t i=0; i<AliRecoParam::kNSpecies;i++) {
67 fGenRawsOffset[i] = 0;
68 fGenRecPointsOffset[i] = 0;
4a903927 69 fGenDigitsOffset[i]=0;
8b7e858c 70 }
096292ae 71}
72
73//____________________________________________________________________________
74AliITSQASPDDataMakerRec::AliITSQASPDDataMakerRec(const AliITSQASPDDataMakerRec& qadm) :
75TObject(),
76fAliITSQADataMakerRec(qadm.fAliITSQADataMakerRec),
77fkOnline(qadm.fkOnline),
78fLDC(qadm.fLDC),
7a0e5776 79fSPDhRawsTask(qadm.fSPDhRawsTask),
44ed7a66 80fSPDhDigitsTask(qadm.fSPDhDigitsTask),
7a0e5776 81fSPDhRecPointsTask(qadm.fSPDhRecPointsTask),
82fGenRawsOffset(qadm.fGenRawsOffset),
44ed7a66 83fGenDigitsOffset(qadm.fGenDigitsOffset),
7a0e5776 84fGenRecPointsOffset(qadm.fGenRecPointsOffset),
379510c2 85fAdvLogger(qadm.fAdvLogger)
096292ae 86{
87 //copy ctor
88 fAliITSQADataMakerRec->SetName((const char*)qadm.fAliITSQADataMakerRec->GetName()) ;
89 fAliITSQADataMakerRec->SetTitle((const char*)qadm.fAliITSQADataMakerRec->GetTitle());
90 }
91
92//__________________________________________________________________
93AliITSQASPDDataMakerRec::~AliITSQASPDDataMakerRec(){
94 // destructor
379510c2 95// delete fAdvLogger;
096292ae 96}
97//__________________________________________________________________
98
99AliITSQASPDDataMakerRec& AliITSQASPDDataMakerRec::operator = (const AliITSQASPDDataMakerRec& qac )
100{
101 // Equal operator.
102 this->~AliITSQASPDDataMakerRec();
103 new(this) AliITSQASPDDataMakerRec(qac);
104 return *this;
105}
106
107//____________________________________________________________________________
108void AliITSQASPDDataMakerRec::StartOfDetectorCycle()
109{
110 //Detector specific actions at start of cycle
5379c4a3 111 AliDebug(AliQAv1::GetQADebugLevel(),"AliITSQADM::Start of SPD Cycle\n");
096292ae 112}
113
114//____________________________________________________________________________
4e25ac79 115void AliITSQASPDDataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t /*task*/, TObjArray* /*list*/)
096292ae 116{
117 // launch the QA checking
5379c4a3 118 AliDebug(AliQAv1::GetQADebugLevel(),"AliITSDM instantiates checker with Run(AliQAv1::kITS, task, list)\n");
096292ae 119
4e25ac79 120 //AliQAChecker::Instance()->Run( AliQAv1::kITS , task, list);
096292ae 121}
122
123//____________________________________________________________________________
eca4fa66 124Int_t AliITSQASPDDataMakerRec::InitRaws()
096292ae 125{
126 // Initialization for RAW data - SPD -
7d297381 127 const Bool_t expert = kTRUE ;
128 const Bool_t saveCorr = kTRUE ;
129 const Bool_t image = kTRUE ;
eca4fa66 130 Int_t rv = 0 ;
131// fGenRawsOffset = (fAliITSQADataMakerRec->fRawsQAList[AliRecoParam::kDefault])->GetEntries();
8bab7823 132 if(!fAdvLogger) fAdvLogger = new AliITSRawStreamSPDErrorLog();
5379c4a3 133 AliDebug(AliQAv1::GetQADebugLevel(), "Book Offline Histograms for SPD\n ");
439e7a8a 134
379510c2 135 Char_t name[50];
136 Char_t title[50];
096292ae 137
26ee9565 138 TH1F *hlayer = new TH1F("SPDLayPattern_SPD","Layer map - SPD",6,0.,6.);
379510c2 139 hlayer->GetXaxis()->SetTitle("Layer number");
140 hlayer->GetYaxis()->SetTitle("Entries");
8b7e858c 141 rv = fAliITSQADataMakerRec->Add2RawsList(hlayer, 0+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image, !saveCorr);
7a0e5776 142 fSPDhRawsTask++;
379510c2 143
144 TH1F **hmod = new TH1F*[2];
145 TH2F **hhitMap = new TH2F*[20];
146 TH1F **herrors = new TH1F*[20];
147 for (Int_t iLay=0; iLay<2; iLay++) {
26ee9565 148 sprintf(name,"SPDModPattern_SPD%d",iLay+1);
379510c2 149 sprintf(title,"Module map - SPD Layer %d",iLay+1);
150 hmod[iLay]=new TH1F(name,title,fgknSPDmodules,0,fgknSPDmodules);
151 hmod[iLay]->GetXaxis()->SetTitle("Module number");
152 hmod[iLay]->GetYaxis()->SetTitle("Entries");
8b7e858c 153 rv = fAliITSQADataMakerRec->Add2RawsList(hmod[iLay], 1+iLay+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image, !saveCorr);
7a0e5776 154 fSPDhRawsTask++;
379510c2 155 }
379510c2 156 for (Int_t iDDL=0; iDDL<20; iDDL++) {
26ee9565 157 sprintf(name,"SPDHitMap_SPD_DDL%d",iDDL+1);
379510c2 158 sprintf(title,"Hit map - SPD DDL %d",iDDL+1);
159 hhitMap[iDDL]=new TH2F(name,title,320,0,10*32,1536,0,6*256);
160 hhitMap[iDDL]->GetXaxis()->SetTitle("Column");
161 hhitMap[iDDL]->GetYaxis()->SetTitle("Row");
8b7e858c 162 rv = fAliITSQADataMakerRec->Add2RawsList(hhitMap[iDDL], 3+(2*iDDL)+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image, !saveCorr);
7a0e5776 163 fSPDhRawsTask++;
26ee9565 164 sprintf(name,"SPDErrors_SPD_DDL%d",iDDL+1);
379510c2 165 sprintf(title,"Error codes - SPD DDL %d",iDDL+1);
b467364b 166 herrors[iDDL] = new TH1F (name,title,fAdvLogger->GetNrErrorCodes(),0,fAdvLogger->GetNrErrorCodes());
379510c2 167 herrors[iDDL]->SetXTitle("Error Code");
168 herrors[iDDL]->SetYTitle("Nr of errors");
8b7e858c 169 rv = fAliITSQADataMakerRec->Add2RawsList(herrors[iDDL], 4+(2*iDDL)+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image, !saveCorr);
7a0e5776 170 fSPDhRawsTask++;
379510c2 171 }
096292ae 172
379510c2 173 TH1F** hMultSPDhits = new TH1F*[2];
174 for (Int_t iLay=0; iLay<2; iLay++) {
26ee9565 175 sprintf(name,"SPDHitsMultiplicity_SPD%d",iLay+1);
379510c2 176 sprintf(title,"Hit multiplicity - SPD Layer %d",iLay+1);
177 hMultSPDhits[iLay]=new TH1F(name,title,200,0.,200.);
178 hMultSPDhits[iLay]->GetXaxis()->SetTitle("Hit multiplicity");
179 hMultSPDhits[iLay]->GetYaxis()->SetTitle("Entries");
8b7e858c 180 rv = fAliITSQADataMakerRec->Add2RawsList(hMultSPDhits[iLay], 43+iLay+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image, !saveCorr);
7a0e5776 181 fSPDhRawsTask++;
379510c2 182 }
183
954ef57a 184 TH2F *hMultSPDhits2MultSPDhits1
26ee9565 185 = new TH2F("SPDHitMultCorrelation_SPD","Hit multiplicity correlation - SPD",200,0.,200.,200,0.,200.);
379510c2 186 hMultSPDhits2MultSPDhits1->GetXaxis()->SetTitle("Hit multiplicity (Layer 1)");
187 hMultSPDhits2MultSPDhits1->GetYaxis()->SetTitle("Hit multiplicity (Layer 2)");
8b7e858c 188 rv = fAliITSQADataMakerRec->Add2RawsList(hMultSPDhits2MultSPDhits1, 45+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image, !saveCorr);
7a0e5776 189 fSPDhRawsTask++;
8bab7823 190
191 TH1F *hFastOrFiredChips = new TH1F("SPDFastOrPattern_SPD","FastOrFiredChip map - SPD",1200,0.,1200.);
192 hFastOrFiredChips->GetXaxis()->SetTitle("Chip number");
193 hFastOrFiredChips->GetYaxis()->SetTitle("Entries");
194 rv = fAliITSQADataMakerRec->Add2RawsList(hFastOrFiredChips, 46+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image, !saveCorr);
195 fSPDhRawsTask++;
196
5379c4a3 197 AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Raws histograms booked\n",fSPDhRawsTask));
eca4fa66 198 return rv ;
096292ae 199}
200
096292ae 201//____________________________________________________________________________
eca4fa66 202Int_t AliITSQASPDDataMakerRec::MakeRaws(AliRawReader* rawReader)
096292ae 203{
204 // Fill QA for RAW - SPD -
eca4fa66 205 Int_t rv = 0 ;
eca4fa66 206
379510c2 207 rawReader->Reset();
208 AliITSRawStreamSPD *rawStreamSPD = new AliITSRawStreamSPD(rawReader);
209 rawStreamSPD->ActivateAdvancedErrorLog(kTRUE,fAdvLogger);
210
211 Int_t nDigitsL1 = 0;
212 Int_t nDigitsL2 = 0;
213 Int_t iEq;
214 Int_t iLayer;
215 Int_t iHalfStave, iChip;
8bab7823 216 Int_t chipKey;
379510c2 217 Int_t col, row;
218 UInt_t module, colM, rowM;
219 while(rawStreamSPD->Next()) {
220
221 iEq = rawReader->GetDDLID();
222 if (iEq>=0 && iEq<20) {
223 iHalfStave = rawStreamSPD->GetHalfStaveNr();
224 iChip = rawStreamSPD->GetChipAddr();
225 col = rawStreamSPD->GetChipCol();
226 row = rawStreamSPD->GetChipRow();
227
228 rawStreamSPD->OnlineToOffline(iEq, iHalfStave, iChip, col, row, module, colM, rowM);
229
230 if (iHalfStave>=0 && iHalfStave<2) iLayer=0;
231 else iLayer=1;
232
8b7e858c 233 fAliITSQADataMakerRec->GetRawsData(0+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(iLayer);
379510c2 234 if (iLayer==0) {
8b7e858c 235 fAliITSQADataMakerRec->GetRawsData(1+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(module);
379510c2 236 nDigitsL1++;
237 } else {
8b7e858c 238 fAliITSQADataMakerRec->GetRawsData(2+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(module);
379510c2 239 nDigitsL2++;
240 }
241
8b7e858c 242 fAliITSQADataMakerRec->GetRawsData((2*iEq)+3+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(colM+(module%2)*160,rowM+iHalfStave*256);
8bab7823 243
379510c2 244 }
245
246 }
8bab7823 247
8b7e858c 248 for (Int_t ieq=0; ieq<20; ieq++) {
249 for (UInt_t ierr=0; ierr<fAdvLogger->GetNrErrorCodes(); ierr++)
250 fAliITSQADataMakerRec->GetRawsData((2*ieq)+4+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(ierr,fAdvLogger->GetNrErrors(ierr,ieq));
8bab7823 251
252 for (Int_t ihs=0; ihs<6; ihs++) {
253 for (Int_t ichip=0; ichip<10; ichip++) {
254 if(rawStreamSPD->GetFastOrSignal(ieq,ihs,ichip)) {
255 chipKey = rawStreamSPD->GetOfflineChipKeyFromOnline(ieq,ihs,ichip);
256 fAliITSQADataMakerRec->GetRawsData(46+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(chipKey);
257 }
258 }
259 }
260
261
262 }
379510c2 263
264 fAdvLogger->Reset();
8b7e858c 265 fAliITSQADataMakerRec->GetRawsData(43+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL1);
266 fAliITSQADataMakerRec->GetRawsData(44+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL2);
267 fAliITSQADataMakerRec->GetRawsData(45+fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL1,nDigitsL2);
379510c2 268
269 delete rawStreamSPD;
5379c4a3 270 AliDebug(AliQAv1::GetQADebugLevel(),Form("Event completed, %d raw digits read",nDigitsL1+nDigitsL2));
eca4fa66 271 return rv ;
096292ae 272}
273
44ed7a66 274//____________________________________________________________________________
eca4fa66 275Int_t AliITSQASPDDataMakerRec::InitDigits()
44ed7a66 276{
277 // Initialization for DIGIT data - SPD -
278 const Bool_t expert = kTRUE ;
279 const Bool_t image = kTRUE ;
eca4fa66 280 Int_t rv = 0 ;
281// fGenDigitsOffset = (fAliITSQADataMakerRec->fDigitsQAList[AliRecoParam::kDefault])->GetEntries();
44ed7a66 282 //fSPDhDigitsTask must be incremented by one unit every time a histogram is ADDED to the QA List
283
284 Char_t name[50];
285 Char_t title[50];
286
287 TH1F *hlayer = new TH1F("SPDLayPattern_SPD","Layer map - SPD",6,0.,6.);
288 hlayer->GetXaxis()->SetTitle("Layer number");
289 hlayer->GetYaxis()->SetTitle("Entries");
4a903927 290 rv = fAliITSQADataMakerRec->Add2DigitsList(hlayer,fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
44ed7a66 291 fSPDhDigitsTask++;
292
293 TH1F **hmod = new TH1F*[2];
294 for (Int_t iLay=0; iLay<2; iLay++) {
295 sprintf(name,"SPDModPattern_SPD%d",iLay+1);
296 sprintf(title,"Module map - SPD Layer %d",iLay+1);
297 hmod[iLay]=new TH1F(name,title,240,0,240);
298 hmod[iLay]->GetXaxis()->SetTitle("Module number");
299 hmod[iLay]->GetYaxis()->SetTitle("Entries");
4a903927 300 rv = fAliITSQADataMakerRec->Add2DigitsList(hmod[iLay],1+iLay+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
44ed7a66 301 fSPDhDigitsTask++;
302 }
303
304 TH1F *hcolumns = new TH1F("SPDColumns_SPD","Columns - SPD",160,0.,160.);
305 hcolumns->GetXaxis()->SetTitle("Column number");
306 hcolumns->GetYaxis()->SetTitle("Entries");
4a903927 307 rv = fAliITSQADataMakerRec->Add2DigitsList(hcolumns,3+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
44ed7a66 308 fSPDhDigitsTask++;
309
310 TH1F *hrows = new TH1F("SPDRows_SPD","Rows - SPD",256,0.,256.);
311 hrows->GetXaxis()->SetTitle("Row number");
312 hrows->GetYaxis()->SetTitle("Entries");
4a903927 313 rv = fAliITSQADataMakerRec->Add2DigitsList(hrows,4+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
44ed7a66 314 fSPDhDigitsTask++;
315
316 TH1F** hMultSPDdigits = new TH1F*[2];
317 for (Int_t iLay=0; iLay<2; ++iLay) {
318 sprintf(name,"SPDDigitMultiplicity_SPD%d",iLay+1);
319 sprintf(title,"Digit multiplicity - SPD Layer %d",iLay+1);
320 hMultSPDdigits[iLay]=new TH1F(name,title,200,0.,200.);
321 hMultSPDdigits[iLay]->GetXaxis()->SetTitle("Digit multiplicity");
322 hMultSPDdigits[iLay]->GetYaxis()->SetTitle("Entries");
4a903927 323 rv = fAliITSQADataMakerRec->Add2DigitsList(hMultSPDdigits[iLay], 5+iLay+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
44ed7a66 324 fSPDhDigitsTask++;
325 }
326
327 TH2F *hMultSPDdig2MultSPDdig1
328 = new TH2F("SPDDigitMultCorrelation_SPD","Digit multiplicity correlation - SPD",200,0.,200.,200,0.,200.);
329 hMultSPDdig2MultSPDdig1->GetXaxis()->SetTitle("Digit multiplicity (Layer 1)");
330 hMultSPDdig2MultSPDdig1->GetYaxis()->SetTitle("Digit multiplicity (Layer 2)");
4a903927 331 rv = fAliITSQADataMakerRec->Add2DigitsList(hMultSPDdig2MultSPDdig1,7+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
44ed7a66 332 fSPDhDigitsTask++;
333
334 AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Digits histograms booked\n",fSPDhDigitsTask));
eca4fa66 335 return rv ;
44ed7a66 336}
337
338//____________________________________________________________________________
eca4fa66 339Int_t AliITSQASPDDataMakerRec::MakeDigits(TTree *digits)
44ed7a66 340{
341 // Fill QA for DIGIT - SPD -
eca4fa66 342 Int_t rv = 0 ;
eca4fa66 343
44ed7a66 344// AliITS *fITS = (AliITS*)gAlice->GetModule("ITS");
345// fITS->SetTreeAddress();
346// TClonesArray *iITSdigits = fITS->DigitsAddress(0); // 0->SPD
33626263 347 TBranch *branchD = digits->GetBranch("ITSDigitsSPD");
44ed7a66 348 if (!branchD) {
33626263 349 AliError("can't get the branch with the SPD ITS digits !");
eca4fa66 350 return rv;
44ed7a66 351 }
33626263 352 static TClonesArray statDigits("AliITSdigitSPD");
44ed7a66 353 TClonesArray *iITSdigits = &statDigits;
354 branchD->SetAddress(&iITSdigits);
355 Int_t nDigitsL1=0;
356 Int_t nDigitsL2=0;
357
358 for (Int_t imod=0; imod<240; ++imod){
359 digits->GetEvent(imod);
360 Int_t ndigits = iITSdigits->GetEntries();
361 if (imod<80) {
4a903927 362 fAliITSQADataMakerRec->GetDigitsData(0+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(0.5,ndigits);
363 fAliITSQADataMakerRec->GetDigitsData(1+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(imod,ndigits);
44ed7a66 364 nDigitsL1+=ndigits;
365 }
366 else {
4a903927 367 fAliITSQADataMakerRec->GetDigitsData(0+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(1,ndigits);
368 fAliITSQADataMakerRec->GetDigitsData(2+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(imod,ndigits);
44ed7a66 369 nDigitsL2+=ndigits;
370 }
371 for (Int_t idig=0; idig<ndigits; ++idig) {
372 AliITSdigit *dig=(AliITSdigit*)iITSdigits->UncheckedAt(idig);
373 Int_t col=dig->GetCoord1(); // cell number z
374 Int_t row=dig->GetCoord2(); // cell number x
4a903927 375 fAliITSQADataMakerRec->GetDigitsData(3+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(col);
376 fAliITSQADataMakerRec->GetDigitsData(4+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(row);
44ed7a66 377 }
378 }
4a903927 379 fAliITSQADataMakerRec->GetDigitsData(5+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL1);
380 fAliITSQADataMakerRec->GetDigitsData(6+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL2);
381 fAliITSQADataMakerRec->GetDigitsData(7+fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nDigitsL1,nDigitsL2);
eca4fa66 382 return rv ;
44ed7a66 383}
384
096292ae 385//____________________________________________________________________________
eca4fa66 386Int_t AliITSQASPDDataMakerRec::InitRecPoints()
096292ae 387{
388 // Initialization for RECPOINTS - SPD -
7d297381 389 const Bool_t expert = kTRUE ;
390 const Bool_t image = kTRUE ;
eca4fa66 391 Int_t rv = 0 ;
8b7e858c 392 //AliInfo(Form("fAliITSQADataMakerRec->GetEventSpecie() %d\n",fAliITSQADataMakerRec->GetEventSpecie()));
393 //AliInfo(Form("fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()] %d\n",fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()]));
eca4fa66 394// fGenRecPointsOffset = (fAliITSQADataMakerRec->fRecPointsQAList[AliRecoParam::kDefault])->GetEntries();
26ee9565 395 TH1F* hlayer= new TH1F("SPDLayPattern_SPD","Layer map - SPD",6,0.,6.);
096292ae 396 hlayer->GetXaxis()->SetTitle("Layer number");
397 hlayer->GetYaxis()->SetTitle("Entries");
8b7e858c 398 rv = fAliITSQADataMakerRec->Add2RecPointsList(hlayer, 0+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 399 fSPDhRecPointsTask++;
096292ae 400
401 TH1F** hmod = new TH1F*[2];
402 TH1F** hxl = new TH1F*[2];
403 TH1F** hzl = new TH1F*[2];
404 TH1F** hxg = new TH1F*[2];
405 TH1F** hyg = new TH1F*[2];
406 TH1F** hzg = new TH1F*[2];
407 TH1F** hr = new TH1F*[2];
408 TH1F** hphi = new TH1F*[2];
409 TH1F** hMultSPDcl = new TH1F*[2];
8bab7823 410 TH2F** hNyNz = new TH2F*[2]; // y and z cluster length
411 TH1F** hNpixels = new TH1F*[2]; // cluster size in number of pixels
412 TH1F** hType = new TH1F*[2]; // cluster type according to conventional table
413 TH2F** hPhiZ = new TH2F*[2];
096292ae 414
415 Float_t xlim[2]={4.5,8.};
416 Float_t zlim[2]={15.,15.};
417
418 Char_t name[50];
419 Char_t title[50];
420 for (Int_t iLay=0;iLay<2;iLay++) {
26ee9565 421 sprintf(name,"SPDModPattern_SPD%d",iLay+1);
096292ae 422 sprintf(title,"Module map - SPD Layer %d",iLay+1);
423 hmod[iLay]=new TH1F(name,title,fgknSPDmodules,0,fgknSPDmodules);
424 hmod[iLay]->GetXaxis()->SetTitle("Module number");
425 hmod[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 426 rv = fAliITSQADataMakerRec->Add2RecPointsList(hmod[iLay], 1+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 427 fSPDhRecPointsTask++;
096292ae 428
26ee9565 429 sprintf(name,"SPDxLoc_SPD%d",iLay+1);
096292ae 430 sprintf(title,"Local x coordinate - SPD Layer %d",iLay+1);
431 hxl[iLay]=new TH1F(name,title,100,-4.,4.);
432 hxl[iLay]->GetXaxis()->SetTitle("Local x [cm]");
433 hxl[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 434 rv = fAliITSQADataMakerRec->Add2RecPointsList(hxl[iLay], 2+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 435 fSPDhRecPointsTask++;
096292ae 436
26ee9565 437 sprintf(name,"SPDzLoc_SPD%d",iLay+1);
096292ae 438 sprintf(title,"Local z coordinate - SPD Layer %d",iLay+1);
439 hzl[iLay]=new TH1F(name,title,100,-4.,4.);
440 hzl[iLay]->GetXaxis()->SetTitle("Local z [cm]");
441 hzl[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 442 rv = fAliITSQADataMakerRec->Add2RecPointsList(hzl[iLay], 3+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 443 fSPDhRecPointsTask++;
096292ae 444
26ee9565 445 sprintf(name,"SPDxGlob_SPD%d",iLay+1);
096292ae 446 sprintf(title,"Global x coordinate - SPD Layer %d",iLay+1);
447 hxg[iLay]=new TH1F(name,title,100,-xlim[iLay],xlim[iLay]);
448 hxg[iLay]->GetXaxis()->SetTitle("Global x [cm]");
449 hxg[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 450 rv = fAliITSQADataMakerRec->Add2RecPointsList(hxg[iLay],4+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 451 fSPDhRecPointsTask++;
096292ae 452
26ee9565 453 sprintf(name,"SPDyGlob_SPD%d",iLay+1);
096292ae 454 sprintf(title,"Global y coordinate - SPD Layer %d",iLay+1);
455 hyg[iLay]=new TH1F(name,title,100,-xlim[iLay],xlim[iLay]);
456 hyg[iLay]->GetXaxis()->SetTitle("Global y [cm]");
457 hyg[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 458 rv = fAliITSQADataMakerRec->Add2RecPointsList(hyg[iLay], 5+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 459 fSPDhRecPointsTask++;
096292ae 460
26ee9565 461 sprintf(name,"SPDzGlob_SPD%d",iLay+1);
096292ae 462 sprintf(title,"Global z coordinate - SPD Layer %d",iLay+1);
463 hzg[iLay]=new TH1F(name,title,150,-zlim[iLay],zlim[iLay]);
464 hzg[iLay]->GetXaxis()->SetTitle("Global z [cm]");
465 hzg[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 466 rv = fAliITSQADataMakerRec->Add2RecPointsList(hzg[iLay], 6+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 467 fSPDhRecPointsTask++;
096292ae 468
26ee9565 469 sprintf(name,"SPDr_SPD%d",iLay+1);
096292ae 470 sprintf(title,"Radius - SPD Layer %d",iLay+1);
471 hr[iLay]=new TH1F(name,title,100,0.,10.);
472 hr[iLay]->GetXaxis()->SetTitle("r [cm]");
473 hr[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 474 rv = fAliITSQADataMakerRec->Add2RecPointsList(hr[iLay], 7+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 475 fSPDhRecPointsTask++;
096292ae 476
26ee9565 477 sprintf(name,"SPDphi_SPD%d",iLay+1);
096292ae 478 sprintf(title,"#varphi - SPD Layer %d",iLay+1);
439e7a8a 479 hphi[iLay]=new TH1F(name,title,1000,0.,2*TMath::Pi());
096292ae 480 hphi[iLay]->GetXaxis()->SetTitle("#varphi [rad]");
481 hphi[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 482 rv = fAliITSQADataMakerRec->Add2RecPointsList(hphi[iLay], 8+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 483 fSPDhRecPointsTask++;
096292ae 484
26ee9565 485 sprintf(name,"SPDSizeYvsZ_SPD%d",iLay+1);
096292ae 486 sprintf(title,"Cluster dimension - SPD Layer %d",iLay+1);
487 hNyNz[iLay]=new TH2F(name,title,100,0.,100.,100,0.,100.);
488 hNyNz[iLay]->GetXaxis()->SetTitle("z length");
489 hNyNz[iLay]->GetYaxis()->SetTitle("y length");
8bab7823 490 rv = fAliITSQADataMakerRec->Add2RecPointsList(hNyNz[iLay], 9+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
491 fSPDhRecPointsTask++;
492
493 sprintf(name,"SPDSizeTot_SPD%d",iLay+1);
494 sprintf(title,"Cluster size - SPD Layer %d",iLay+1);
495 hNpixels[iLay]=new TH1F(name,title,100,0.,100.);
496 hNpixels[iLay]->GetXaxis()->SetTitle("Cluster size");
497 hNpixels[iLay]->GetYaxis()->SetTitle("Entries");
498 rv = fAliITSQADataMakerRec->Add2RecPointsList(hNpixels[iLay], 10+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
499 fSPDhRecPointsTask++;
500
501 sprintf(name,"SPDType_SPD%d",iLay+1);
502 sprintf(title,"Cluster type - SPD Layer %d",iLay+1);
503 hType[iLay]=new TH1F(name,title,20,0.,20.);
504 hType[iLay]->GetXaxis()->SetTitle("Cluster type");
505 hType[iLay]->GetYaxis()->SetTitle("Entries");
506 rv = fAliITSQADataMakerRec->Add2RecPointsList(hType[iLay], 11+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
7a0e5776 507 fSPDhRecPointsTask++;
096292ae 508
26ee9565 509 sprintf(name,"SPDphi_z_SPD%d",iLay+1);
096292ae 510 sprintf(title,"#varphi vs z - SPD Layer %d",iLay+1);
439e7a8a 511 hPhiZ[iLay]=new TH2F(name,title,150,-zlim[iLay],zlim[iLay],200,0.,2*TMath::Pi());
096292ae 512 hPhiZ[iLay]->GetXaxis()->SetTitle("Global z [cm]");
513 hPhiZ[iLay]->GetYaxis()->SetTitle("#varphi [rad]");
8bab7823 514 rv = fAliITSQADataMakerRec->Add2RecPointsList(hPhiZ[iLay], 12+(12*iLay)+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
7a0e5776 515 fSPDhRecPointsTask++;
096292ae 516
517 }
518
26ee9565 519 TH2F *hrPhi=new TH2F("SPDr_phi_SPD","#varphi vs r - SPD",100,0.,10.,100,0.,2*TMath::Pi());
096292ae 520 hrPhi->GetXaxis()->SetTitle("r [cm]");
521 hrPhi->GetYaxis()->SetTitle("#varphi [rad]");
8bab7823 522 rv = fAliITSQADataMakerRec->Add2RecPointsList(hrPhi, 25+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], expert, !image);
7a0e5776 523 fSPDhRecPointsTask++;
096292ae 524
26ee9565 525 TH2F *hxy=new TH2F("SPDx_y_SPD","Global y vs x - SPD",200,-10.,10.,200,-10.,10.);
096292ae 526 hxy->GetXaxis()->SetTitle("Global x [cm]");
527 hxy->GetYaxis()->SetTitle("Global y [cm]");
8bab7823 528 rv = fAliITSQADataMakerRec->Add2RecPointsList(hxy, 26+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
7a0e5776 529 fSPDhRecPointsTask++;
096292ae 530
531 for (Int_t iLay=0;iLay<2;iLay++) {
26ee9565 532 sprintf(name,"SPDMultiplicity_SPD%d",iLay+1);
096292ae 533 sprintf(title,"Cluster multiplicity - SPD Layer %d",iLay+1);
534 hMultSPDcl[iLay]=new TH1F(name,title,200,0.,200.);
535 hMultSPDcl[iLay]->GetXaxis()->SetTitle("Cluster multiplicity");
536 hMultSPDcl[iLay]->GetYaxis()->SetTitle("Entries");
8bab7823 537 rv = fAliITSQADataMakerRec->Add2RecPointsList(hMultSPDcl[iLay], 27+iLay+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
7a0e5776 538 fSPDhRecPointsTask++;
096292ae 539 }
540
541 TH2F *hMultSPDcl2MultSPDcl1 =
26ee9565 542 new TH2F("SPDMultCorrelation_SPD","Cluster multiplicity correlation - SPD",200,0.,200.,200,0.,200.);
096292ae 543 hMultSPDcl2MultSPDcl1->GetXaxis()->SetTitle("Clusters multiplicity (Layer 1)");
544 hMultSPDcl2MultSPDcl1->GetYaxis()->SetTitle("Clusters multiplicity (Layer 2)");
8bab7823 545 rv = fAliITSQADataMakerRec->Add2RecPointsList(hMultSPDcl2MultSPDcl1, 29+fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()], !expert, image);
7a0e5776 546 fSPDhRecPointsTask++;
096292ae 547
5379c4a3 548 AliDebug(AliQAv1::GetQADebugLevel(),Form("%d SPD Recs histograms booked\n",fSPDhRecPointsTask));
096292ae 549
eca4fa66 550 return rv ;
096292ae 551}
552
553//____________________________________________________________________________
eca4fa66 554Int_t AliITSQASPDDataMakerRec::MakeRecPoints(TTree * clusterTree)
096292ae 555{
556 // Fill QA for RecPoints - SPD -
eca4fa66 557 Int_t rv = 0 ;
3647765c 558 static TClonesArray statITSCluster("AliITSRecPoint");
559 TClonesArray *ITSCluster = &statITSCluster;
560 TBranch* itsClusterBranch=clusterTree->GetBranch("ITSRecPoints");
561 if (!itsClusterBranch) {
562 AliError("can't get the branch with the ITS clusters !");
eca4fa66 563 return rv;
3647765c 564 }
eca4fa66 565
8b7e858c 566 //AliInfo(Form("fAliITSQADataMakerRec->GetEventSpecie() %d\n",fAliITSQADataMakerRec->GetEventSpecie()));
567 //AliInfo(Form("fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()] %d\n",fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()]));
3647765c 568 itsClusterBranch->SetAddress(&ITSCluster);
569 Int_t nItsMods = (Int_t)clusterTree->GetEntries();
570
571 Float_t cluGlo[3] = {0.,0.,0.};
572 Int_t nClusters[2] = {0,0};
573
574 for (Int_t iIts=0; iIts < nItsMods; iIts++) {
575
576 if (!clusterTree->GetEvent(iIts)) continue;
577 Int_t nCluster = ITSCluster->GetEntriesFast();
578 // loop over clusters
579 while(nCluster--) {
580 AliITSRecPoint* cluster = (AliITSRecPoint*)ITSCluster->UncheckedAt(nCluster);
581
582 if (cluster->GetLayer()>1) continue;
583 Int_t lay=cluster->GetLayer();
8b7e858c 584 fAliITSQADataMakerRec->GetRecPointsData(0 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(lay);
3647765c 585 cluster->GetGlobalXYZ(cluGlo);
586 Float_t rad=TMath::Sqrt(cluGlo[0]*cluGlo[0]+cluGlo[1]*cluGlo[1]);
096292ae 587 Float_t phi= TMath::Pi() + TMath::ATan2(-cluGlo[1],-cluGlo[0]);
588 if (lay==0) {
8b7e858c 589 fAliITSQADataMakerRec->GetRecPointsData(1 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(iIts);
590 fAliITSQADataMakerRec->GetRecPointsData(2 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetDetLocalX());
591 fAliITSQADataMakerRec->GetRecPointsData(3 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetDetLocalZ());
592 fAliITSQADataMakerRec->GetRecPointsData(4 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[0]);
593 fAliITSQADataMakerRec->GetRecPointsData(5 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[1]);
594 fAliITSQADataMakerRec->GetRecPointsData(6 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[2]);
595 fAliITSQADataMakerRec->GetRecPointsData(7 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(rad);
596 fAliITSQADataMakerRec->GetRecPointsData(8 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(phi);
597 fAliITSQADataMakerRec->GetRecPointsData(9 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetNz(),cluster->GetNy());
8bab7823 598 fAliITSQADataMakerRec->GetRecPointsData(10 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetNpixels());
599 fAliITSQADataMakerRec->GetRecPointsData(11 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetSPDclusterType());
600 fAliITSQADataMakerRec->GetRecPointsData(12 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[2],phi);
096292ae 601 } else {
8bab7823 602 fAliITSQADataMakerRec->GetRecPointsData(13 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(iIts);
603 fAliITSQADataMakerRec->GetRecPointsData(14 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetDetLocalX());
604 fAliITSQADataMakerRec->GetRecPointsData(15 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetDetLocalZ());
605 fAliITSQADataMakerRec->GetRecPointsData(16 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[0]);
606 fAliITSQADataMakerRec->GetRecPointsData(17 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[1]);
607 fAliITSQADataMakerRec->GetRecPointsData(18 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[2]);
608 fAliITSQADataMakerRec->GetRecPointsData(19 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(rad);
609 fAliITSQADataMakerRec->GetRecPointsData(20 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(phi);
610 fAliITSQADataMakerRec->GetRecPointsData(21 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetNz(),cluster->GetNy());
611 fAliITSQADataMakerRec->GetRecPointsData(22 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetNpixels());
612 fAliITSQADataMakerRec->GetRecPointsData(23 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluster->GetSPDclusterType());
613 fAliITSQADataMakerRec->GetRecPointsData(24 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[2],phi);
096292ae 614 }
8bab7823 615 fAliITSQADataMakerRec->GetRecPointsData(25 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(rad,phi);
616 fAliITSQADataMakerRec->GetRecPointsData(26 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(cluGlo[0],cluGlo[1]);
3647765c 617
096292ae 618 nClusters[lay]++;
3647765c 619 } // end of cluster loop
620 } // end of its "subdetector" loop
621
622 for (Int_t iLay=0; iLay<2; iLay++)
8bab7823 623 fAliITSQADataMakerRec->GetRecPointsData(27 +iLay +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nClusters[iLay]);
3647765c 624
8bab7823 625 fAliITSQADataMakerRec->GetRecPointsData(29 +fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()])->Fill(nClusters[0],nClusters[1]);
3647765c 626
627 statITSCluster.Clear();
eca4fa66 628 return rv ;
096292ae 629}
7a0e5776 630
631
632
633//_______________________________________________________________
634
4e25ac79 635Int_t AliITSQASPDDataMakerRec::GetOffset(AliQAv1::TASKINDEX_t task) {
7a0e5776 636 // Returns offset number according to the specified task
637 Int_t offset=0;
4e25ac79 638 if( task == AliQAv1::kRAWS ) {
8b7e858c 639 offset=fGenRawsOffset[fAliITSQADataMakerRec->GetEventSpecie()];
7a0e5776 640 }
eca4fa66 641 else if( task == AliQAv1::kDIGITSR ) {
4a903927 642 offset=fGenDigitsOffset[fAliITSQADataMakerRec->GetEventSpecie()];
eca4fa66 643 }
4e25ac79 644 else if( task == AliQAv1::kRECPOINTS ) {
8b7e858c 645 offset=fGenRecPointsOffset[fAliITSQADataMakerRec->GetEventSpecie()];
7a0e5776 646 }
7a0e5776 647
648 return offset;
649}
650
651//_______________________________________________________________
652
8b7e858c 653void AliITSQASPDDataMakerRec::SetOffset(AliQAv1::TASKINDEX_t task, Int_t offset, Int_t specie) {
eca4fa66 654 // Returns offset number according to the specified task
655 if( task == AliQAv1::kRAWS ) {
8b7e858c 656 fGenRawsOffset[specie]=offset;
eca4fa66 657 }
658 else if( task == AliQAv1::kDIGITSR ) {
4a903927 659 fGenDigitsOffset[specie]=offset;
eca4fa66 660 }
661 else if( task == AliQAv1::kRECPOINTS ) {
8b7e858c 662 fGenRecPointsOffset[specie]=offset;
eca4fa66 663 }
664}
665
666//_______________________________________________________________
667
4e25ac79 668Int_t AliITSQASPDDataMakerRec::GetTaskHisto(AliQAv1::TASKINDEX_t task) {
7a0e5776 669 // Returns the number of histograms associated to the specified task
eca4fa66 670
7a0e5776 671 Int_t histotot=0;
672
4e25ac79 673 if( task == AliQAv1::kRAWS ) {
7a0e5776 674 histotot=fSPDhRawsTask;
675 }
eca4fa66 676 else if( task == AliQAv1::kDIGITSR ) {
677 histotot=fSPDhDigitsTask;
678 }
4e25ac79 679 else if( task == AliQAv1::kRECPOINTS ){
7a0e5776 680 histotot=fSPDhRecPointsTask;
681 }
4a903927 682
a1287af5 683 return histotot;
7a0e5776 684}