1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Produces the data needed to calculate the quality assurance.
19 All data must be mergeable objects.
23 // --- ROOT system ---
24 #include <TClonesArray.h>
30 // --- Standard library ---
32 // --- AliRoot header files ---
34 #include "AliESDEvent.h"
36 #include "AliPMDQADataMakerRec.h"
37 #include "AliQAChecker.h"
38 #include "AliPMDdigit.h"
39 #include "AliPMDrecpoint1.h"
40 #include "AliPMDRawStream.h"
41 #include "AliPMDddldata.h"
42 #include "AliPMDUtility.h"
43 #include "AliESDPmdTrack.h"
44 //#include "AliPMDRecoParam.h"
46 ClassImp(AliPMDQADataMakerRec)
48 //____________________________________________________________________________
49 AliPMDQADataMakerRec::AliPMDQADataMakerRec() :
50 AliQADataMakerRec(AliQAv1::GetDetName(AliQAv1::kPMD), "PMD Quality Assurance Data Maker")
55 //____________________________________________________________________________
56 AliPMDQADataMakerRec::AliPMDQADataMakerRec(const AliPMDQADataMakerRec& qadm) :
60 SetName((const char*)qadm.GetName()) ;
61 SetTitle((const char*)qadm.GetTitle());
64 //__________________________________________________________________
65 AliPMDQADataMakerRec& AliPMDQADataMakerRec::operator = (const AliPMDQADataMakerRec& qadm )
68 this->~AliPMDQADataMakerRec();
69 new(this) AliPMDQADataMakerRec(qadm);
74 //____________________________________________________________________________
75 void AliPMDQADataMakerRec::InitRaws()
77 // create Raws histograms in Raws subdir
79 const Bool_t expert = kTRUE ;
80 const Bool_t saveCorr = kTRUE ;
81 const Bool_t image = kTRUE ;
84 TH1I * h0 = new TH1I("hPreEdepM0","ADC Distribution PRE - Module 0;Amplitude [ADC counts];Counts", 100, 0, 2000);
86 Add2RawsList(h0, 0, !expert, image, !saveCorr);
88 TH1I * h1 = new TH1I("hPreEdepM1","ADC Distribution PRE - Module 1;Amplitude [ADC counts];Counts", 100, 0, 2000);
90 Add2RawsList(h1, 1, !expert, image, !saveCorr);
92 TH1I * h2 = new TH1I("hPreEdepM2","ADC Distribution PRE - Module 2;Amplitude [ADC counts];Counts", 100, 0, 2000);
94 Add2RawsList(h2, 2, !expert, image, !saveCorr);
96 TH1I * h3 = new TH1I("hPreEdepM3","ADC Distribution PRE - Module 3;Amplitude [ADC counts];Counts", 100, 0, 2000);
98 Add2RawsList(h3, 3, !expert, image, !saveCorr);
100 TH1I * h4 = new TH1I("hPreEdepM4","ADC Distribution PRE - Module 4;Amplitude [ADC counts];Counts", 100, 0, 2000);
102 Add2RawsList(h4, 4, !expert, image, !saveCorr);
104 TH1I * h5 = new TH1I("hPreEdepM5","ADC Distribution PRE - Module 5;Amplitude [ADC counts];Counts", 100, 0, 2000);
106 Add2RawsList(h5, 5, !expert, image, !saveCorr);
108 TH1I * h6 = new TH1I("hPreEdepM6","ADC Distribution PRE - Module 6;Amplitude [ADC counts];Counts", 100, 0, 2000);
110 Add2RawsList(h6, 6, !expert, image, !saveCorr);
112 TH1I * h7 = new TH1I("hPreEdepM7","ADC Distribution PRE - Module 7;Amplitude [ADC counts];Counts", 100, 0, 2000);
114 Add2RawsList(h7, 7, !expert, image, !saveCorr);
116 TH1I * h8 = new TH1I("hPreEdepM8","ADC Distribution PRE - Module 8;Amplitude [ADC counts];Counts", 100, 0, 2000);
118 Add2RawsList(h8, 8, !expert, image, !saveCorr);
120 TH1I * h9 = new TH1I("hPreEdepM9","ADC Distribution PRE - Module 9;Amplitude [ADC counts];Counts", 100, 0, 2000);
122 Add2RawsList(h9, 9, !expert, image, !saveCorr);
124 TH1I * h10 = new TH1I("hPreEdepM10","ADC Distribution PRE - Module 10;Amplitude [ADC counts];Counts", 100, 0, 2000);
126 Add2RawsList(h10, 10, !expert, image, !saveCorr);
128 TH1I * h11 = new TH1I("hPreEdepM11","ADC Distribution PRE - Module 11;Amplitude [ADC counts];Counts", 100, 0, 2000);
130 Add2RawsList(h11, 11, !expert, image, !saveCorr);
132 TH1I * h12 = new TH1I("hPreEdepM12","ADC Distribution PRE - Module 12;Amplitude [ADC counts];Counts", 100, 0, 2000);
134 Add2RawsList(h12, 12, !expert, image, !saveCorr);
136 TH1I * h13 = new TH1I("hPreEdepM13","ADC Distribution PRE - Module 13;Amplitude [ADC counts];Counts", 100, 0, 2000);
138 Add2RawsList(h13, 13, !expert, image, !saveCorr);
140 TH1I * h14 = new TH1I("hPreEdepM14","ADC Distribution PRE - Module 14;Amplitude [ADC counts];Counts", 100, 0, 2000);
142 Add2RawsList(h14, 14, !expert, image, !saveCorr);
144 TH1I * h15 = new TH1I("hPreEdepM15","ADC Distribution PRE - Module 15;Amplitude [ADC counts];Counts", 100, 0, 2000);
146 Add2RawsList(h15, 15, !expert, image, !saveCorr);
148 TH1I * h16 = new TH1I("hPreEdepM16","ADC Distribution PRE - Module 16;Amplitude [ADC counts];Counts", 100, 0, 2000);
150 Add2RawsList(h16, 16, !expert, image, !saveCorr);
152 TH1I * h17 = new TH1I("hPreEdepM17","ADC Distribution PRE - Module 17;Amplitude [ADC counts];Counts", 100, 0, 2000);
154 Add2RawsList(h17, 17, !expert, image, !saveCorr);
156 TH1I * h18 = new TH1I("hPreEdepM18","ADC Distribution PRE - Module 18;Amplitude [ADC counts];Counts", 100, 0, 2000);
158 Add2RawsList(h18, 18, !expert, image, !saveCorr);
160 TH1I * h19 = new TH1I("hPreEdepM19","ADC Distribution PRE - Module 19;Amplitude [ADC counts];Counts", 100, 0, 2000);
162 Add2RawsList(h19, 19, !expert, image, !saveCorr);
164 TH1I * h20 = new TH1I("hPreEdepM20","ADC Distribution PRE - Module 20;Amplitude [ADC counts];Counts", 100, 0, 2000);
166 Add2RawsList(h20, 20, !expert, image, !saveCorr);
168 TH1I * h21 = new TH1I("hPreEdepM21","ADC Distribution PRE - Module 21;Amplitude [ADC counts];Counts", 100, 0, 2000);
170 Add2RawsList(h21, 21, !expert, image, !saveCorr);
172 TH1I * h22 = new TH1I("hPreEdepM22","ADC Distribution PRE - Module 22;Amplitude [ADC counts];Counts", 100, 0, 2000);
174 Add2RawsList(h22, 22, !expert, image, !saveCorr);
176 TH1I * h23 = new TH1I("hPreEdepM23","ADC Distribution PRE - Module 23;Amplitude [ADC counts];Counts", 100, 0, 2000);
178 Add2RawsList(h23, 23, !expert, image, !saveCorr);
182 TH1I * h24 = new TH1I("hCpvEdepM24","ADC Distribution CPV - Module 24;Amplitude [ADC counts];Counts", 100, 0, 2000);
184 Add2RawsList(h24, 24, !expert, image, !saveCorr);
186 TH1I * h25 = new TH1I("hCpvEdepM25","ADC Distribution CPV - Module 25;Amplitude [ADC counts];Counts", 100, 0, 2000);
188 Add2RawsList(h25, 25, !expert, image, !saveCorr);
190 TH1I * h26 = new TH1I("hCpvEdepM26","ADC Distribution CPV - Module 26;Amplitude [ADC counts];Counts", 100, 0, 2000);
192 Add2RawsList(h26, 26, !expert, image, !saveCorr);
194 TH1I * h27 = new TH1I("hCpvEdepM27","ADC Distribution CPV - Module 27;Amplitude [ADC counts];Counts", 100, 0, 2000);
196 Add2RawsList(h27, 27, !expert, image, !saveCorr);
198 TH1I * h28 = new TH1I("hCpvEdepM28","ADC Distribution CPV - Module 28;Amplitude [ADC counts];Counts", 100, 0, 2000);
200 Add2RawsList(h28, 28, !expert, image, !saveCorr);
202 TH1I * h29 = new TH1I("hCpvEdepM29","ADC Distribution CPV - Module 29;Amplitude [ADC counts];Counts", 100, 0, 2000);
204 Add2RawsList(h29, 29, !expert, image, !saveCorr);
206 TH1I * h30 = new TH1I("hCpvEdepM30","ADC Distribution CPV - Module 30;Amplitude [ADC counts];Counts", 100, 0, 2000);
208 Add2RawsList(h30, 30, !expert, image, !saveCorr);
210 TH1I * h31 = new TH1I("hCpvEdepM31","ADC Distribution CPV - Module 31;Amplitude [ADC counts];Counts", 100, 0, 2000);
212 Add2RawsList(h31, 31, !expert, image, !saveCorr);
214 TH1I * h32 = new TH1I("hCpvEdepM32","ADC Distribution CPV - Module 32;Amplitude [ADC counts];Counts", 100, 0, 2000);
216 Add2RawsList(h32, 32, !expert, image, !saveCorr);
218 TH1I * h33 = new TH1I("hCpvEdepM33","ADC Distribution CPV - Module 33;Amplitude [ADC counts];Counts", 100, 0, 2000);
220 Add2RawsList(h33, 33, !expert, image, !saveCorr);
222 TH1I * h34 = new TH1I("hCpvEdepM34","ADC Distribution CPV - Module 34;Amplitude [ADC counts];Counts", 100, 0, 2000);
224 Add2RawsList(h34, 34, !expert, image, !saveCorr);
226 TH1I * h35 = new TH1I("hCpvEdepM35","ADC Distribution CPV - Module 35;Amplitude [ADC counts];Counts", 100, 0, 2000);
228 Add2RawsList(h35, 35, !expert, image, !saveCorr);
230 TH1I * h36 = new TH1I("hCpvEdepM36","ADC Distribution CPV - Module 36;Amplitude [ADC counts];Counts", 100, 0, 2000);
232 Add2RawsList(h36, 36, !expert, image, !saveCorr);
234 TH1I * h37 = new TH1I("hCpvEdepM37","ADC Distribution CPV - Module 37;Amplitude [ADC counts];Counts", 100, 0, 2000);
236 Add2RawsList(h37, 37, !expert, image, !saveCorr);
238 TH1I * h38 = new TH1I("hCpvEdepM38","ADC Distribution CPV - Module 38;Amplitude [ADC counts];Counts", 100, 0, 2000);
240 Add2RawsList(h38, 38, !expert, image, !saveCorr);
242 TH1I * h39 = new TH1I("hCpvEdepM39","ADC Distribution CPV - Module 39;Amplitude [ADC counts];Counts", 100, 0, 2000);
244 Add2RawsList(h39, 39, !expert, image, !saveCorr);
246 TH1I * h40 = new TH1I("hCpvEdepM40","ADC Distribution CPV - Module 40;Amplitude [ADC counts];Counts", 100, 0, 2000);
248 Add2RawsList(h40, 40, !expert, image, !saveCorr);
250 TH1I * h41 = new TH1I("hCpvEdepM41","ADC Distribution CPV - Module 41;Amplitude [ADC counts];Counts", 100, 0, 2000);
252 Add2RawsList(h41, 41, !expert, image, !saveCorr);
254 TH1I * h42 = new TH1I("hCpvEdepM42","ADC Distribution CPV - Module 42;Amplitude [ADC counts];Counts", 100, 0, 2000);
256 Add2RawsList(h42, 42, !expert, image, !saveCorr);
258 TH1I * h43 = new TH1I("hCpvEdepM43","ADC Distribution CPV - Module 43;Amplitude [ADC counts];Counts", 100, 0, 2000);
260 Add2RawsList(h43, 43, !expert, image, !saveCorr);
262 TH1I * h44 = new TH1I("hCpvEdepM44","ADC Distribution CPV - Module 44;Amplitude [ADC counts];Counts", 100, 0, 2000);
264 Add2RawsList(h44, 44, !expert, image, !saveCorr);
266 TH1I * h45 = new TH1I("hCpvEdepM45","ADC Distribution CPV - Module 45;Amplitude [ADC counts];Counts", 100, 0, 2000);
268 Add2RawsList(h45, 45, !expert, image, !saveCorr);
270 TH1I * h46 = new TH1I("hCpvEdepM46","ADC Distribution CPV - Module 46;Amplitude [ADC counts];Counts", 100, 0, 2000);
272 Add2RawsList(h46, 46, !expert, image, !saveCorr);
274 TH1I * h47 = new TH1I("hCpvEdepM47","ADC Distribution CPV - Module 47;Amplitude [ADC counts];Counts", 100, 0, 2000);
276 Add2RawsList(h47, 47, !expert, image, !saveCorr);
279 // Y vs. X for PRE and CPV planes
281 TH2F * h48 = new TH2F("hPreXY","PRE plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.);
282 Add2RawsList(h48, 48, !expert, !image, saveCorr);//Ajay
283 //Add2RawsList(h48, 48);//Ajay
284 TH2F * h49 = new TH2F("hCpvXY","CPV plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.);
285 Add2RawsList(h49, 49, !expert, !image, saveCorr);//Ajay
286 //Add2RawsList(h49, 49);//Ajay
290 //____________________________________________________________________________
291 void AliPMDQADataMakerRec::InitDigits()
293 // create Digits histograms in Digits subdir
294 const Bool_t expert = kTRUE ;
295 const Bool_t image = kTRUE ;
297 TH1F *h0 = new TH1F("hPreDigitsEdep","Digits energy distribution in PRE(PMD);Amplitude [ADC counts];Counts", 100, 0., 2000.);
299 Add2DigitsList(h0, 0, !expert, image);
301 TH1F *h1 = new TH1F("hCpvDigitsEdep","Digits energy distribution in CPV(PMD);Amplitude [ADC counts];Counts", 100, 0., 2000.);
303 Add2DigitsList(h1, 1, !expert, image);
305 TH1I *h2 = new TH1I("hPreDigitsMult","Digits multiplicity distribution in PRE(PMD);# of Digits;Entries", 500, 0, 1000) ;
307 Add2DigitsList(h2, 2, !expert, image);
309 TH1I *h3 = new TH1I("hCpvDigitsMult","Digits multiplicity distribution in CPV(PMD);# of Digits;Entries", 500, 0, 1000);
311 Add2DigitsList(h3, 3, !expert, image);
314 //____________________________________________________________________________
315 void AliPMDQADataMakerRec::InitRecPoints()
317 // create Reconstructed Points histograms in RecPoints subdir
320 TH2F * h0 = new TH2F("hPreXY","RecPoints Y vs X PRE(PMD)", 100,-100.,100.,100,-100.,100.);
321 Add2RecPointsList(h0,0);
323 TH2F * h1 = new TH2F("hCpvXY","RecPoints Y vs X CPV(PMD)", 100,-100.,100.,100,-100.,100.);
324 Add2RecPointsList(h1,1);
327 // Ncell distribution in a cluster
331 const Bool_t expert = kTRUE ;
332 const Bool_t image = kTRUE ;
334 TH1F * h0 = new TH1F("hPreDdl0Ncell","PRE: Ddl0 Ncell in a cluster;# of cells;Counts",50,0.,50.);
336 Add2RecPointsList(h0, 0, !expert, image);
339 TH1F * h1 = new TH1F("hPreDdl1Ncell","PRE: Ddl1 Ncell in a cluste;# of cells;Countsr",50,0.,50.);
341 Add2RecPointsList(h1, 1, !expert, image);
344 TH1F * h2 = new TH1F("hPreDdl2Ncell","PRE: Ddl2 Ncell in a cluster;# of cells;Counts",50,0.,50.);
346 Add2RecPointsList(h2, 2, !expert, image);
349 TH1F * h3 = new TH1F("hPreDdl3Ncell","PRE: Ddl3 Ncell in a cluster;# of cells;Counts",50,0.,50.);
351 Add2RecPointsList(h3, 3, !expert, image);
355 TH1F * h4 = new TH1F("hCpvDdl4Ncell","CPV: Ddl4 Ncell in a cluster;# of cells;Counts",50,0.,50.);
357 Add2RecPointsList(h4, 4, !expert, image);
359 TH1F * h5 = new TH1F("hCpvDdl5Ncell","CPV: Ddl5 Ncell in a cluster;# of cells;Counts",50,0.,50.);
361 Add2RecPointsList(h5, 5, !expert, image);
365 TH2I *h6 = new TH2I("hPre10","Cluster - DDL1 vs DDL0;DDL0;DDL1", 100,0,200,100,0,200);
366 Add2RecPointsList(h6,6, !expert, image);
368 TH2I *h7 = new TH2I("hPre32","Cluster - DDL3 vs DDL2;DDL2;DDL3", 100,0,200,100,0,200);
369 Add2RecPointsList(h7,7, !expert, image);
371 TH2I *h8 = new TH2I("hCpv54","Cluster - DDL5 vs DDL4;DDL4;DDL5", 100,0,200,100,0,200);
372 Add2RecPointsList(h8,8, !expert, image);
378 //____________________________________________________________________________
380 void AliPMDQADataMakerRec::InitESDs()
382 //Create histograms to controll ESD
384 const Bool_t expert = kTRUE ;
385 const Bool_t image = kTRUE ;
387 TH1F *h0 = new TH1F("hPreClADC","Cluster ADC of PRE plane;# of clusters;Counts",500,0.,10000.);
389 Add2ESDsList(h0, 0, !expert, image) ;
391 TH1F *h1 = new TH1F("hCpvClADC","Cluster ADC of CPV plane;# of clusters;Counts",500,0.,10000.);
393 Add2ESDsList(h1, 1, !expert, image) ;
395 TH2I *h2 = new TH2I("hPmdClMult","Cluster Multiplicity: PRE vs. CPVplane;CPV multiplicity;PRE Multiplicity",100,0,1000,100,0,1000);
397 Add2ESDsList(h2, 2, !expert, image) ;
400 TH1I * h3 = new TH1I("hCpvClMult","Cluster Multiplicity of CPV plane",100,0.,1000.);
402 Add2ESDsList(h3, 3, !expert, image) ;
407 //____________________________________________________________________________
408 void AliPMDQADataMakerRec::MakeRaws(AliRawReader* rawReader)
410 //Fill prepared histograms with Raw digit properties
412 TObjArray *pmdddlcont = 0x0;
413 pmdddlcont = new TObjArray();
414 AliPMDRawStream stream(rawReader);
416 AliPMDddldata *pmdddl = 0x0;
425 while ((iddl = stream.DdlData(pmdddlcont)) >=0)
427 Int_t ientries = pmdddlcont->GetEntries();
428 //printf(" ======= DDLNO = %d ientries = %d \n", iddl, ientries);
430 for (Int_t ient = 0; ient < ientries; ient++)
432 //AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont->UncheckedAt(ient);
433 pmdddl = (AliPMDddldata*)pmdddlcont->UncheckedAt(ient);
435 Int_t det = pmdddl->GetDetector();
436 Int_t smn = pmdddl->GetSMN();
437 Int_t mcm = pmdddl->GetMCM();
438 //Int_t chno = pmdddl->GetChannel();
439 Int_t row = pmdddl->GetRow();
440 Int_t col = pmdddl->GetColumn();
441 Int_t sig = pmdddl->GetSignal();
443 if (mcm == 0 || smn == -1) continue;
447 GetRawsData(smn)->Fill(sig);
453 else if(smn >= 12 && smn < 24)
458 cc.RectGeomCellPos(smn,xpad,ypad,xx,yy);
459 GetRawsData(48)->Fill(xx,yy);
463 GetRawsData(24+smn)->Fill(sig);
469 else if(smn >= 12 && smn < 24)
475 cc.RectGeomCellPos(smn,xpad,ypad,xx,yy);
476 GetRawsData(49)->Fill(xx,yy);
482 pmdddlcont->Delete();
489 //____________________________________________________________________________
490 void AliPMDQADataMakerRec::MakeDigits()
492 // makes data from Digits
494 Int_t cpvmul = 0, premul = 0;
496 TIter next(fDigitsArray) ;
497 AliPMDdigit * digit ;
498 while ( (digit = dynamic_cast<AliPMDdigit *>(next())) )
500 if(digit->GetDetector() == 0)
502 GetDigitsData(0)->Fill( digit->GetADC()) ;
505 if(digit->GetDetector() == 1)
507 GetDigitsData(1)->Fill( digit->GetADC());
512 if (premul > 0) GetDigitsData(2)->Fill(premul);
513 if (cpvmul > 0) GetDigitsData(3)->Fill(cpvmul);
518 //____________________________________________________________________________
519 void AliPMDQADataMakerRec::MakeDigits(TTree * digitTree)
521 // makes data from Digit Tree
524 fDigitsArray->Clear() ;
526 fDigitsArray = new TClonesArray("AliPMDdigit", 1000) ;
528 TBranch * branch = digitTree->GetBranch("PMDDigit") ;
529 branch->SetAddress(&fDigitsArray) ;
533 AliWarning("PMD branch in Digit Tree not found") ;
537 for (Int_t ient = 0; ient < branch->GetEntries(); ient++)
539 branch->GetEntry(ient) ;
546 //____________________________________________________________________________
547 void AliPMDQADataMakerRec::MakeRecPoints(TTree * clustersTree)
549 // makes data from RecPoints
551 Int_t multDdl0 = 0, multDdl1 = 0, multDdl2 = 0;
552 Int_t multDdl3 = 0, multDdl4 = 0, multDdl5 = 0;
554 AliPMDrecpoint1 * recpoint;
557 fRecPointsArray->Clear() ;
559 fRecPointsArray = new TClonesArray("AliPMDrecpoint1", 1000) ;
561 TBranch * branch = clustersTree->GetBranch("PMDRecpoint") ;
562 branch->SetAddress(&fRecPointsArray) ;
566 AliWarning("PMD branch in Recpoints Tree not found") ;
570 for (Int_t imod = 0; imod < branch->GetEntries(); imod++)
572 branch->GetEntry(imod) ;
574 TIter next(fRecPointsArray) ;
576 while ( (recpoint = dynamic_cast<AliPMDrecpoint1 *>(next())) )
578 //Float_t xpos = recpoint->GetClusX();
579 //Float_t ypos = recpoint->GetClusY();
580 //Int_t smn = recpoint->GetSMNumber();
582 if(recpoint->GetDetector() == 0)
584 if(recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6)
586 GetRecPointsData(0)->Fill(recpoint->GetClusCells());
589 if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 12)
591 GetRecPointsData(1)->Fill(recpoint->GetClusCells());
594 if(recpoint->GetSMNumber() >= 12 && recpoint->GetSMNumber() < 18)
596 GetRecPointsData(2)->Fill(recpoint->GetClusCells());
599 if(recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24)
601 GetRecPointsData(3)->Fill(recpoint->GetClusCells());
606 if(recpoint->GetDetector() == 1)
608 if((recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6) ||
609 (recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24))
611 GetRecPointsData(4)->Fill(recpoint->GetClusCells());
614 if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 18 )
616 GetRecPointsData(5)->Fill(recpoint->GetClusCells());
624 GetRecPointsData(6)->Fill(multDdl0,multDdl1);
625 GetRecPointsData(7)->Fill(multDdl2,multDdl3);
626 GetRecPointsData(8)->Fill(multDdl4,multDdl5);
629 //____________________________________________________________________________
631 void AliPMDQADataMakerRec::MakeESDs(AliESDEvent * esd)
633 // make QA data from ESDs
635 Int_t premul = 0, cpvmul = 0;
637 for (Int_t icl = 0; icl < esd->GetNumberOfPmdTracks(); icl++)
639 AliESDPmdTrack *pmdtr = esd->GetPmdTrack(icl);
641 //Int_t det = pmdtr->GetDetector();
642 //Float_t clsX = pmdtr->GetClusterX();
643 //Float_t clsY = pmdtr->GetClusterY();
644 //Float_t clsZ = pmdtr->GetClusterZ();
645 //Float_t ncell = pmdtr->GetClusterCells();
646 Float_t adc = pmdtr->GetClusterADC();
647 //Float_t pid = pmdtr->GetClusterPID();
649 if (pmdtr->GetDetector() == 0)
651 GetESDsData(0)->Fill(adc);
654 if (pmdtr->GetDetector() == 1)
656 GetESDsData(1)->Fill(adc) ;
661 GetESDsData(2)->Fill(cpvmul,premul) ;
662 //GetESDsData(3)->Fill(cpvmul) ;
665 //____________________________________________________________________________
667 void AliPMDQADataMakerRec::StartOfDetectorCycle()
669 //Detector specific actions at start of cycle
672 //____________________________________________________________________________
673 void AliPMDQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list)
675 //Detector specific actions at end of cycle
676 // do the QA checking
677 AliQAChecker::Instance()->Run(AliQAv1::kPMD, task, list) ;