1 /**************************************************************************
2 * Copyright(c) 2007-2009, 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 // *************************************************************
19 // Checks the quality assurance
20 // by comparing with reference data
22 // -------------------------------------------------------------
23 // W. Ferrarese + P. Cerello Feb 2008
24 // M.Siciliano Aug 2008 QA RecPoints and HLT mode
27 // --- ROOT system ---
28 #include <TProfile2D.h>
34 #include <TDirectory.h>
36 // --- Standard library ---
38 // --- AliRoot header files ---
39 #include "AliITSQASDDDataMakerRec.h"
42 #include "AliQAChecker.h"
43 #include "AliRawReader.h"
44 #include "AliITSRawStream.h"
45 #include "AliITSRawStreamSDD.h"
46 #include "AliITSRawStreamSDDCompressed.h"
47 #include "AliITSDetTypeRec.h"
48 #include "AliITSRecPoint.h"
49 #include "AliITSgeomTGeo.h"
50 #include "AliITSHLTforSDD.h"
51 #include "AliCDBManager.h"
52 #include "AliCDBStorage.h"
53 #include "AliCDBEntry.h"
56 ClassImp(AliITSQASDDDataMakerRec)
58 //____________________________________________________________________________
59 AliITSQASDDDataMakerRec::AliITSQASDDDataMakerRec(AliITSQADataMakerRec *aliITSQADataMakerRec, Bool_t kMode, Short_t ldc) :
61 fAliITSQADataMakerRec(aliITSQADataMakerRec),
71 //ctor used to discriminate OnLine-Offline analysis
72 if(fLDC < 0 || fLDC > 4) {
73 AliError("Error: LDC number out of range; return\n");
75 if(!fkOnline){AliInfo("Offline mode: HLT set from AliITSDetTypeRec for SDD\n");}
78 AliInfo("Online mode: HLT set from environment for SDD\n");
79 SetHLTModeFromEnvironment();
84 //____________________________________________________________________________
85 AliITSQASDDDataMakerRec::AliITSQASDDDataMakerRec(const AliITSQASDDDataMakerRec& qadm) :
87 fAliITSQADataMakerRec(qadm.fAliITSQADataMakerRec),
88 fkOnline(qadm.fkOnline),
90 fSDDhTask(qadm.fSDDhTask),
91 fGenOffset(qadm.fGenOffset),
94 fHLTMode(qadm.fHLTMode),
95 fHLTSDD( qadm.fHLTSDD)
98 fAliITSQADataMakerRec->SetName((const char*)qadm.fAliITSQADataMakerRec->GetName()) ;
99 fAliITSQADataMakerRec->SetTitle((const char*)qadm.fAliITSQADataMakerRec->GetTitle());
103 //____________________________________________________________________________
104 AliITSQASDDDataMakerRec::~AliITSQASDDDataMakerRec(){
106 // if(fDDLModuleMap) delete fDDLModuleMap;
108 //__________________________________________________________________
109 AliITSQASDDDataMakerRec& AliITSQASDDDataMakerRec::operator = (const AliITSQASDDDataMakerRec& qac )
112 this->~AliITSQASDDDataMakerRec();
113 new(this) AliITSQASDDDataMakerRec(qac);
117 //____________________________________________________________________________
118 void AliITSQASDDDataMakerRec::StartOfDetectorCycle()
120 //Detector specific actions at start of cycle
121 AliDebug(1,"AliITSQADM::Start of SDD Cycle\n");
124 //____________________________________________________________________________
125 void AliITSQASDDDataMakerRec::EndOfDetectorCycle(AliQA::TASKINDEX_t /*task*/, TObjArray* /*list*/)
127 // launch the QA checking
128 AliDebug(1,"AliITSDM instantiates checker with Run(AliQA::kITS, task, list)\n");
131 //____________________________________________________________________________
132 void AliITSQASDDDataMakerRec::InitRaws()
134 // Initialization for RAW data - SDD -
135 fGenOffset = (fAliITSQADataMakerRec->fRawsQAList)->GetEntries();
137 AliCDBEntry *ddlMapSDD = AliCDBManager::Instance()->Get("ITS/Calib/DDLMapSDD");
138 Bool_t cacheStatus = AliCDBManager::Instance()->GetCacheFlag();
141 AliError("Calibration object retrieval failed! SDD will not be processed");
142 fDDLModuleMap = NULL;
145 fDDLModuleMap = (AliITSDDLModuleMapSDD*)ddlMapSDD->GetObject();
146 if(!cacheStatus)ddlMapSDD->SetObject(NULL);
147 ddlMapSDD->SetOwner(kTRUE);
153 if(fkOnline==kFALSE){
154 AliInfo("Offline mode: HLTforSDDobject used \n");
155 AliCDBEntry *hltforSDD = AliCDBManager::Instance()->Get("ITS/Calib/HLTforSDD");
157 AliError("Calibration object retrieval failed! SDD will not be processed");
161 fHLTSDD = (AliITSHLTforSDD*)hltforSDD->GetObject();
162 if(!cacheStatus)hltforSDD->SetObject(NULL);
163 hltforSDD->SetOwner(kTRUE);
170 Int_t LAY = -1; //, LAD = -1;
175 if(fLDC == 1 || fLDC == 2) LAY = 2;
176 if(fLDC == 3 || fLDC == 4) LAY = 3;
179 AliInfo("Book Online Histograms for SDD\n");
182 AliInfo("Book Offline Histograms for SDD\n ");
184 TH1D *h0 = new TH1D("SDDModPattern","HW Modules pattern",fgknSDDmodules,239.5,499.5);
185 h0->GetXaxis()->SetTitle("Module Number");
186 h0->GetYaxis()->SetTitle("Counts");
187 fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h0)),0+fGenOffset,kTRUE,kFALSE);
190 if(fLDC==0 || fLDC==1 || fLDC==2){
191 TH1D *h1 = new TH1D("SDDLadPatternL3","Ladder pattern L3",14,0.5,14.5);
192 h1->GetXaxis()->SetTitle("Ladder Number on Lay3");
193 h1->GetYaxis()->SetTitle("Counts");
194 fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h1)),1+fGenOffset, kTRUE,kFALSE);
198 if(fLDC==0 || fLDC==3 || fLDC==4){
199 TH1D *h2 = new TH1D("SDDLadPatternL4","Ladder pattern L4",22,0.5,22.5);
200 h2->GetXaxis()->SetTitle("Ladder Number on Lay4");
201 h2->GetYaxis()->SetTitle("Counts");
202 fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h2)),2+fGenOffset, kTRUE,kFALSE);
206 if(fLDC==0 || fLDC==1 || fLDC==2){
207 for(Int_t i=1; i<=fgkLADDonLAY3; i++) {
208 sprintf(hname0,"SDDModPattern_L3_%d",i);
209 TH1D *h3 = new TH1D(hname0,hname0,6,0.5,6.5);
210 h3->GetXaxis()->SetTitle("Module Number");
211 h3->GetYaxis()->SetTitle("Counts");
212 fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h3)),i-1+3+fGenOffset, kTRUE, kFALSE);
217 if(fLDC==0 || fLDC==3 || fLDC==4){
218 for(Int_t i=1; i<=fgkLADDonLAY4; i++) {
219 sprintf(hname0,"SDDModPattern_L4_%d",i);
220 TH1D *h4 = new TH1D(hname0,hname0,8,0.5,8.5);
221 h4->GetXaxis()->SetTitle("Module Number");
222 h4->GetYaxis()->SetTitle("Counts");
223 fAliITSQADataMakerRec->Add2RawsList((new TH1D(*h4)),i-1+17+fGenOffset, kTRUE,kFALSE);
229 //zPhi distribution using ladder and modules numbers
230 TH2D *hphil3 = new TH2D("SDDphizL3","SDD #varphiz Layer3 ",6,0.5,6.5,14,0.5,14.5);
231 hphil3->GetXaxis()->SetTitle("z[#Module L3 ]");
232 hphil3->GetYaxis()->SetTitle("#varphi[#Ladder L3]");
233 fAliITSQADataMakerRec->Add2RawsList((new TH2D(*hphil3)),39+fGenOffset, kFALSE,kTRUE);
237 TH2D *hphil4 = new TH2D("SDDphizL4","SDD #varphiz Layer4 ",8,0.5,8.5,22,0.5,22.5);
238 hphil4->GetXaxis()->SetTitle("z[#Module L4]");
239 hphil4->GetYaxis()->SetTitle("#varphi[#Ladder L4]");
240 fAliITSQADataMakerRec->Add2RawsList((new TH2D(*hphil4)),40+fGenOffset, kFALSE,kTRUE);
245 Int_t indexlast1 = 0;
246 Int_t indexlast2 = 0;
252 indexlast1 = fSDDhTask;
253 // cout<<"Last of the offline "<<fSDDhTask<<endl;
256 for(Int_t i=0; i<3; i++) hname[i]= new char[50];
257 for(Int_t moduleSDD =0; moduleSDD<fgknSDDmodules; moduleSDD++){
258 for(Int_t iside=0;iside<fgknSide;iside++){
259 AliITSgeomTGeo::GetModuleId(moduleSDD+fgkmodoffset, lay, lad, det);
260 sprintf(hname[0],"SDDchargeMapFSE_L%d_%d_%d_%d",lay,lad,det,iside);
261 sprintf(hname[1],"SDDChargeMapForSingleEvent_L%d_%d_%d_%d",lay,lad,det,iside);
262 sprintf(hname[2],"SDDhmonoDMap_L%d_%d_%d_%d",lay,lad,det,iside);
263 TProfile2D *fModuleChargeMapFSE = new TProfile2D(hname[0],hname[1],256/fTimeBinSize,-0.5,255.5,256,-0.5,255.5);
264 fModuleChargeMapFSE->GetXaxis()->SetTitle("Time Bin");
265 fModuleChargeMapFSE->GetYaxis()->SetTitle("Anode");
266 fAliITSQADataMakerRec->Add2RawsList((new TProfile2D(*fModuleChargeMapFSE)),indexlast1 + index1 + fGenOffset,kTRUE,kFALSE);
267 delete fModuleChargeMapFSE;
271 indexlast2 = indexlast1 + index1;
275 for(Int_t moduleSDD =0; moduleSDD<fgknSDDmodules; moduleSDD++){
276 for(Int_t iside=0;iside<fgknSide;iside++){
277 AliITSgeomTGeo::GetModuleId(moduleSDD+fgkmodoffset, lay, lad, det);
278 sprintf(hname[0],"SDDchargeMap_L%d_%d_%d_%d",lay,lad,det,iside);
279 sprintf(hname[1],"SDDChargeMap_L%d_%d_%d_%d",lay,lad,det,iside);
280 TProfile2D *fModuleChargeMap = new TProfile2D(hname[0],hname[1],256/fTimeBinSize,-0.5,255.5,256,-0.5,255.5);
281 fModuleChargeMap->GetXaxis()->SetTitle("Time Bin");
282 fModuleChargeMap->GetYaxis()->SetTitle("Anode");
283 fAliITSQADataMakerRec->Add2RawsList((new TProfile2D(*fModuleChargeMap)),indexlast1 + index1 + fGenOffset,kTRUE,kFALSE);
284 delete fModuleChargeMap;
288 indexlast2 = indexlast1 + index1;
294 AliDebug(1,Form("%d SDD Raws histograms booked\n",fSDDhTask));
298 //____________________________________________________________________________
299 void AliITSQASDDDataMakerRec::MakeRaws(AliRawReader* rawReader)
301 // Fill QA for RAW - SDD -
303 AliError("SDD DDL module map not available - skipping SDD QA");
306 if(rawReader->GetType() != 7) return; // skips non physical triggers
307 AliDebug(1,"entering MakeRaws\n");
308 rawReader->SelectEquipment(17,fgkeqOffset,fgkeqOffset + fgkDDLidRange);
311 AliITSRawStream *stream;
315 if(GetHLTMode()==kTRUE)
317 AliInfo("Online mode: HLT C compressed mode used for SDD\n");
318 stream = new AliITSRawStreamSDDCompressed(rawReader); }
320 AliInfo("Online mode: HLT A mode used for SDD\n");
321 stream = new AliITSRawStreamSDD(rawReader);}
325 if(fHLTSDD->IsHLTmodeC()==kTRUE){
326 AliInfo("Offline mode: HLT C compressed mode used for SDD\n");
327 stream = new AliITSRawStreamSDDCompressed(rawReader);
330 AliInfo("Offline mode: HLT A mode used for SDD\n");
331 stream = new AliITSRawStreamSDD(rawReader);
339 // AliITSRawStreamSDD s(rawReader);
340 stream->SetDDLModuleMap(fDDLModuleMap);
346 for(Int_t moduleSDD =0; moduleSDD<fgknSDDmodules; moduleSDD++){
347 for(Int_t iside=0;iside<fgknSide;iside++) {
348 if(fSDDhTask > 41 + index) fAliITSQADataMakerRec->GetRawsData(41 + index +fGenOffset)->Reset();
358 Int_t coord1, coord2, signal, moduleSDD, ioffset, iorder, activeModule, index1;
360 while(stream->Next()) {
361 ildcID = rawReader->GetLDCId();
362 iddl = rawReader->GetDDLID() - fgkDDLIDshift;
363 isddmod = fDDLModuleMap->GetModuleNumber(iddl,stream->GetCarlosId());
364 // cout<<"isddmod "<<isddmod<<endl;
366 AliDebug(1,Form("Found module with iddl: %d, stream->GetCarlosId: %d \n",iddl,stream->GetCarlosId() ));
369 if(stream->IsCompletedModule()) {
370 AliDebug(1,Form("IsCompletedModule == KTRUE\n"));
374 coord1 = stream->GetCoord1();
375 coord2 = stream->GetCoord2();
376 signal = stream->GetSignal();
378 moduleSDD = isddmod - fgkmodoffset;
380 if(moduleSDD <fgkmodoffset|| moduleSDD>fgknSDDmodules+fgkmodoffset-1) {
381 AliDebug(1,Form( "Module SDD = %d, resetting it to 1 \n",isddmod));
385 fAliITSQADataMakerRec->GetRawsData(0 +fGenOffset)->Fill(isddmod);
387 AliITSgeomTGeo::GetModuleId(isddmod, lay, lad, det);
394 fAliITSQADataMakerRec->GetRawsData(iorder +fGenOffset)->Fill(lad);
395 fAliITSQADataMakerRec->GetRawsData(ioffset+lad-1 +fGenOffset)->Fill(det); //-1 because ladder# starts from 1
397 if(lay==3) fAliITSQADataMakerRec->GetRawsData(39+fGenOffset)->Fill(det,lad);
399 fAliITSQADataMakerRec->GetRawsData(40+fGenOffset)->Fill(det,lad);}
401 Short_t iside = stream->GetChannel();
402 activeModule = moduleSDD;
403 index1 = activeModule * 2 + iside;
406 AliDebug(1,Form("Wrong index number %d - patched to 0\n",index1));
411 if(fSDDhTask > 40 + index1) {
412 ((TProfile2D *)(fAliITSQADataMakerRec->GetRawsData(41 + index1 +fGenOffset)))->Fill(coord2, coord1, signal);
413 ((TProfile2D *)(fAliITSQADataMakerRec->GetRawsData(41 + index1 + 260*2 +fGenOffset)))->Fill(coord2, coord1, signal);
417 if(!(cnt%10000)) AliDebug(1,Form(" %d raw digits read",cnt));
419 AliDebug(1,Form("Event completed, %d raw digits read",cnt));
424 //____________________________________________________________________________
425 void AliITSQASDDDataMakerRec::InitRecPoints()
427 // Initialization for RECPOINTS - SDD -
429 fGenOffset = (fAliITSQADataMakerRec->fRecPointsQAList)->GetEntries();
436 // cout<<"konline"<<endl;
444 TH1F *h0 = new TH1F("SDDLay3TotCh","Layer 3 total charge",1000/nOnline,-0.5, 499.5); //position number 0
445 h0->GetXaxis()->SetTitle("ADC value");
446 h0->GetYaxis()->SetTitle("Entries");
447 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h0)), 0 +fGenOffset,kFALSE);
451 TH1F *h1 = new TH1F("SDDLay4TotCh","Layer 4 total charge",1000/nOnline,-0.5, 499.5);//position number 1
452 h1->GetXaxis()->SetTitle("ADC value");
453 h1->GetYaxis()->SetTitle("Entries");
454 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h1)), 1 +fGenOffset,kFALSE);
459 TH2F *h2 = new TH2F("SDDGlobalCoordDistribYX","YX Global Coord Distrib",5600/nOnline2,-28,28,5600/nOnline2,-28,28);//position number 2
460 h2->GetYaxis()->SetTitle("Y[cm]");
461 h2->GetXaxis()->SetTitle("X[cm]");
462 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h2)),2+fGenOffset,kTRUE);
466 TH2F *h3 = new TH2F("SDDGlobalCoordDistribRZ","RZ Global Coord Distrib",6400/nOnline3,-32,32,1400/nOnline4,12,26);//position number 3
467 h3->GetYaxis()->SetTitle("R[cm]");
468 h3->GetXaxis()->SetTitle("Z[cm]");
469 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h3)),3+fGenOffset,kTRUE);
473 TH2F *h4 = new TH2F("SDDGlobalCoordDistribL3PHIZ","#varphi Z Global Coord Distrib L3",6400/nOnline3,-32,32,360/nOnline,-TMath::Pi(),TMath::Pi());//position number 4
474 h4->GetYaxis()->SetTitle("#phi[rad]");
475 h4->GetXaxis()->SetTitle("Z[cm]");
476 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h4)),4+fGenOffset,kFALSE);
480 TH2F *h5 = new TH2F("SDDGlobalCoordDistribL4PHIZ","#varphi Z Global Coord Distrib L4",6400/nOnline3,-32,32,360/nOnline,-TMath::Pi(),TMath::Pi());//position number 5
481 h5->GetYaxis()->SetTitle("#phi[rad]");
482 h5->GetXaxis()->SetTitle("Z[cm]");
483 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h5)),5+fGenOffset,kFALSE);
487 TH1F *h6 = new TH1F("SDDModPatternRP","Modules pattern RP",fgknSDDmodules,239.5,499.5); //position number 6
488 h6->GetXaxis()->SetTitle("Module number"); //spd offset = 240
489 h6->GetYaxis()->SetTitle("Entries");
490 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h6)),6 +fGenOffset,kTRUE);
493 TH1F *h7 = new TH1F("SDDLadPatternL3RP","Ladder pattern L3 RP",14,0.5,14.5); //position number 7
494 h7->GetXaxis()->SetTitle("Ladder #, Layer 3");
495 h7->GetYaxis()->SetTitle("Entries");
496 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h7)),7 +fGenOffset,kTRUE);
499 TH1F *h8 = new TH1F("SDDLadPatternL4RP","Ladder pattern L4 RP",22,0.5,22.5); //position number 8
500 h8->GetXaxis()->SetTitle("Ladder #, Layer 4");
501 h8->GetYaxis()->SetTitle("Entries");
502 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h8)),8 +fGenOffset,kTRUE);
505 TH2F *h9 = new TH2F("SDDLocalCoordDistrib","Local Coord Distrib",1000/nOnline,-4,4,1000/nOnline,-4,4);//position number 9
506 h9->GetXaxis()->SetTitle("X local coord, drift, cm");
507 h9->GetYaxis()->SetTitle("Z local coord, anode, cm");
508 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h9)),9 +fGenOffset,kTRUE);
513 TH1F *h10 = new TH1F("SDDrdistrib_Layer3" ,"SDD r distribution Layer3" ,100,14.,18.);//position number 10 (L3)
514 h10->GetXaxis()->SetTitle("r[cm]");
515 h10->GetXaxis()->CenterTitle();
516 h10->GetYaxis()->SetTitle("Entries");
517 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h10)),10 +fGenOffset,kTRUE);
521 TH1F *h11 = new TH1F("SDDrdistrib_Layer4" ,"SDD r distribution Layer4" ,100,22.,26.);// and position number 11 (L4)
522 h11->GetXaxis()->SetTitle("r[cm]");
523 h11->GetXaxis()->CenterTitle();
524 h11->GetYaxis()->SetTitle("Entries");
525 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h11)),11 +fGenOffset,kTRUE);
528 for(Int_t iLay=0; iLay<=1; iLay++){
529 sprintf(hisnam,"SDDphidistrib_Layer%d",iLay+3);
530 TH1F *h12 = new TH1F(hisnam,hisnam,180,-TMath::Pi(),TMath::Pi());//position number 12 (L3) and position number 13 (L4)
531 h12->GetXaxis()->SetTitle("#varphi[rad]");
532 h12->GetXaxis()->CenterTitle();
533 h12->GetYaxis()->SetTitle("Entries");
534 fAliITSQADataMakerRec->Add2RecPointsList((new TH1F(*h12)),iLay+12+fGenOffset,kTRUE);
541 TH2F *h14 = new TH2F("SDDGlobalCoordDistribYXFSE","YX Global Coord Distrib FSE",5600/nOnline2,-28,28,5600/nOnline2,-28,28);//position number 14
542 h14->GetYaxis()->SetTitle("Y[cm]");
543 h14->GetXaxis()->SetTitle("X[cm]");
544 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h14)),14+fGenOffset,kTRUE);
548 TH2F *h15 = new TH2F("SDDGlobalCoordDistribRZFSE","RZ Global Coord Distrib FSE",Int_t(6400/nOnline3),-32,32,1400/nOnline4,12,26);//position number 15
549 h15->GetYaxis()->SetTitle("R[cm]");
550 h15->GetXaxis()->SetTitle("Z[cm]");
551 fAliITSQADataMakerRec->Add2RecPointsList((new TH2F(*h15)),15+fGenOffset,kTRUE);
559 AliDebug(1,Form("%d SDD Recs histograms booked\n",fSDDhTask));
564 //____________________________________________________________________________
565 void AliITSQASDDDataMakerRec::MakeRecPoints(TTree * clustersTree)
568 // Fill QA for RecPoints - SDD -
570 TBranch *branchRecP = clustersTree->GetBranch("ITSRecPoints");
572 AliError("can't get the branch with the ITS clusters !");
576 static TClonesArray statRecpoints("AliITSRecPoint") ;
577 TClonesArray *recpoints = &statRecpoints;
578 branchRecP->SetAddress(&recpoints);
580 Float_t cluglo[3]={0.,0.,0.};
583 for(Int_t i=14;i<16;i++)
585 fAliITSQADataMakerRec->GetRecPointsData(i+fGenOffset)->Reset();
588 for(Int_t module=0; module<clustersTree->GetEntries();module++){
589 branchRecP->GetEvent(module);
590 npoints += recpoints->GetEntries();
591 AliITSgeomTGeo::GetModuleId(module, lay, lad, det);
592 //printf("modnumb %d, lay %d, lad %d, det %d \n",module, lay, lad, det);
593 for(Int_t j=0;j<recpoints->GetEntries();j++){
594 AliITSRecPoint *recp = (AliITSRecPoint*)recpoints->At(j);
595 fAliITSQADataMakerRec->GetRecPointsData(6 +fGenOffset)->Fill(module);//modpatternrp
596 recp->GetGlobalXYZ(cluglo);
597 Float_t rad=TMath::Sqrt(cluglo[0]*cluglo[0]+cluglo[1]*cluglo[1]);
598 Float_t phi=TMath::ATan2(cluglo[1],cluglo[0]);
599 fAliITSQADataMakerRec->GetRecPointsData(9 +fGenOffset)->Fill(recp->GetDetLocalX(),recp->GetDetLocalZ());//local distribution
600 fAliITSQADataMakerRec->GetRecPointsData(2 +fGenOffset)->Fill(cluglo[0],cluglo[1]);//global distribution YX
601 fAliITSQADataMakerRec->GetRecPointsData(3 +fGenOffset)->Fill(cluglo[2],rad);//global distribution rz
604 fAliITSQADataMakerRec->GetRecPointsData(14 +fGenOffset)->Fill(cluglo[0],cluglo[1]);//global distribution YX FSE
605 fAliITSQADataMakerRec->GetRecPointsData(15 +fGenOffset)->Fill(cluglo[2],rad);//global distribution rz FSE
607 if(recp->GetLayer() ==2) {
608 fAliITSQADataMakerRec->GetRecPointsData(0 +fGenOffset)->Fill(recp->GetQ()) ;//total charge of layer 3
609 fAliITSQADataMakerRec->GetRecPointsData(7 +fGenOffset)->Fill(lad);//lad pattern layer 3
610 fAliITSQADataMakerRec->GetRecPointsData(10 +fGenOffset)->Fill(rad);//r distribution layer 3
611 fAliITSQADataMakerRec->GetRecPointsData(12 +fGenOffset)->Fill(phi);// phi distribution layer 3
612 fAliITSQADataMakerRec->GetRecPointsData(4 +fGenOffset)->Fill(cluglo[2],phi);// phi distribution layer 3
614 else if(recp->GetLayer() ==3) {
615 fAliITSQADataMakerRec->GetRecPointsData(1 +fGenOffset)->Fill(recp->GetQ()) ;//total charge layer 4
616 fAliITSQADataMakerRec->GetRecPointsData(8 +fGenOffset)->Fill(lad);//ladpatternlayer4
617 fAliITSQADataMakerRec->GetRecPointsData(11 +fGenOffset)->Fill(rad);//r distribution
618 fAliITSQADataMakerRec->GetRecPointsData(13 +fGenOffset)->Fill(phi);//phi distribution
619 fAliITSQADataMakerRec->GetRecPointsData(5 +fGenOffset)->Fill(cluglo[2],phi);// phi distribution layer 4
623 statRecpoints.Clear();
627 //_______________________________________________________________
629 void AliITSQASDDDataMakerRec::SetHLTModeFromEnvironment()
632 Int_t hltmode= ::atoi(gSystem->Getenv("HLT_MODE"));
636 AliInfo("Online mode: HLT mode A selected from environment for SDD\n");
642 AliInfo("Online mode: HLT mode C compressed selected from environment for SDD\n");