X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PMD%2FAliPMDQADataMakerRec.cxx;h=c42092426f9c65359f8c70dc0b0d3bd0b7d7cfc9;hb=4d019bab422f7f1f1fd4c6a1c472ab41a787f9a0;hp=00f80976f1af47cf64a9323541bcd1f2ba3eb015;hpb=6252ceeb59406d4f518422dfad532f414e0a23c4;p=u%2Fmrichter%2FAliRoot.git diff --git a/PMD/AliPMDQADataMakerRec.cxx b/PMD/AliPMDQADataMakerRec.cxx index 00f80976f1a..c42092426f9 100644 --- a/PMD/AliPMDQADataMakerRec.cxx +++ b/PMD/AliPMDQADataMakerRec.cxx @@ -22,7 +22,8 @@ // --- ROOT system --- #include -#include +#include +#include #include #include #include @@ -72,219 +73,62 @@ AliPMDQADataMakerRec& AliPMDQADataMakerRec::operator = (const AliPMDQADataMakerR //____________________________________________________________________________ -void AliPMDQADataMakerRec::InitRaws() -{ +void AliPMDQADataMakerRec::InitRaws() { // create Raws histograms in Raws subdir const Bool_t expert = kTRUE ; const Bool_t saveCorr = kTRUE ; const Bool_t image = kTRUE ; - // Preshower plane - - TH1I * h0 = new TH1I("hPreEdepM0","ADC Distribution PRE - Module 0;Amplitude [ADC counts];Counts", 100, 0, 2000); - h0->Sumw2(); - Add2RawsList(h0, 0, !expert, image, !saveCorr); - - TH1I * h1 = new TH1I("hPreEdepM1","ADC Distribution PRE - Module 1;Amplitude [ADC counts];Counts", 100, 0, 2000); - h1->Sumw2(); - Add2RawsList(h1, 1, !expert, image, !saveCorr); + - TH1I * h2 = new TH1I("hPreEdepM2","ADC Distribution PRE - Module 2;Amplitude [ADC counts];Counts", 100, 0, 2000); - h2->Sumw2(); - Add2RawsList(h2, 2, !expert, image, !saveCorr); + TH1F *h0 = new TH1F("hDdl2304","Cell Wise Frequency for PRE Plane DDL 2304;DDL2304;Frequency",50000 ,0,50000.0); + TH1F *h1 = new TH1F("hDdl2305","Cell Wise Frequency for PRE Plane DDL 2305;DDL2305;Frequency",50000 ,0,50000.0); + TH1F *h2 = new TH1F("hDdl2308","Cell Wise Frequency for CPV Plane DDL 2308;DDL2308;Frequency",50000 ,0,50000.0); + TH1F *h3 = new TH1F("hDdl2309","Cell Wise Frequency for CPV Plane DDL 2309;DDL2309;Frequency",50000 ,0,50000.0); - TH1I * h3 = new TH1I("hPreEdepM3","ADC Distribution PRE - Module 3;Amplitude [ADC counts];Counts", 100, 0, 2000); - h3->Sumw2(); - Add2RawsList(h3, 3, !expert, image, !saveCorr); - - TH1I * h4 = new TH1I("hPreEdepM4","ADC Distribution PRE - Module 4;Amplitude [ADC counts];Counts", 100, 0, 2000); - h4->Sumw2(); - Add2RawsList(h4, 4, !expert, image, !saveCorr); - - TH1I * h5 = new TH1I("hPreEdepM5","ADC Distribution PRE - Module 5;Amplitude [ADC counts];Counts", 100, 0, 2000); - h5->Sumw2(); - Add2RawsList(h5, 5, !expert, image, !saveCorr); - - TH1I * h6 = new TH1I("hPreEdepM6","ADC Distribution PRE - Module 6;Amplitude [ADC counts];Counts", 100, 0, 2000); - h6->Sumw2(); - Add2RawsList(h6, 6, !expert, image, !saveCorr); - - TH1I * h7 = new TH1I("hPreEdepM7","ADC Distribution PRE - Module 7;Amplitude [ADC counts];Counts", 100, 0, 2000); - h7->Sumw2(); - Add2RawsList(h7, 7, !expert, image, !saveCorr); - - TH1I * h8 = new TH1I("hPreEdepM8","ADC Distribution PRE - Module 8;Amplitude [ADC counts];Counts", 100, 0, 2000); - h8->Sumw2(); - Add2RawsList(h8, 8, !expert, image, !saveCorr); - - TH1I * h9 = new TH1I("hPreEdepM9","ADC Distribution PRE - Module 9;Amplitude [ADC counts];Counts", 100, 0, 2000); - h9->Sumw2(); - Add2RawsList(h9, 9, !expert, image, !saveCorr); - - TH1I * h10 = new TH1I("hPreEdepM10","ADC Distribution PRE - Module 10;Amplitude [ADC counts];Counts", 100, 0, 2000); - h10->Sumw2(); - Add2RawsList(h10, 10, !expert, image, !saveCorr); - - TH1I * h11 = new TH1I("hPreEdepM11","ADC Distribution PRE - Module 11;Amplitude [ADC counts];Counts", 100, 0, 2000); - h11->Sumw2(); - Add2RawsList(h11, 11, !expert, image, !saveCorr); - - TH1I * h12 = new TH1I("hPreEdepM12","ADC Distribution PRE - Module 12;Amplitude [ADC counts];Counts", 100, 0, 2000); - h12->Sumw2(); - Add2RawsList(h12, 12, !expert, image, !saveCorr); - - TH1I * h13 = new TH1I("hPreEdepM13","ADC Distribution PRE - Module 13;Amplitude [ADC counts];Counts", 100, 0, 2000); - h13->Sumw2(); - Add2RawsList(h13, 13, !expert, image, !saveCorr); - - TH1I * h14 = new TH1I("hPreEdepM14","ADC Distribution PRE - Module 14;Amplitude [ADC counts];Counts", 100, 0, 2000); - h14->Sumw2(); - Add2RawsList(h14, 14, !expert, image, !saveCorr); - - TH1I * h15 = new TH1I("hPreEdepM15","ADC Distribution PRE - Module 15;Amplitude [ADC counts];Counts", 100, 0, 2000); - h15->Sumw2(); - Add2RawsList(h15, 15, !expert, image, !saveCorr); - - TH1I * h16 = new TH1I("hPreEdepM16","ADC Distribution PRE - Module 16;Amplitude [ADC counts];Counts", 100, 0, 2000); - h16->Sumw2(); - Add2RawsList(h16, 16, !expert, image, !saveCorr); - - TH1I * h17 = new TH1I("hPreEdepM17","ADC Distribution PRE - Module 17;Amplitude [ADC counts];Counts", 100, 0, 2000); - h17->Sumw2(); - Add2RawsList(h17, 17, !expert, image, !saveCorr); - - TH1I * h18 = new TH1I("hPreEdepM18","ADC Distribution PRE - Module 18;Amplitude [ADC counts];Counts", 100, 0, 2000); - h18->Sumw2(); - Add2RawsList(h18, 18, !expert, image, !saveCorr); - - TH1I * h19 = new TH1I("hPreEdepM19","ADC Distribution PRE - Module 19;Amplitude [ADC counts];Counts", 100, 0, 2000); - h19->Sumw2(); - Add2RawsList(h19, 19, !expert, image, !saveCorr); - - TH1I * h20 = new TH1I("hPreEdepM20","ADC Distribution PRE - Module 20;Amplitude [ADC counts];Counts", 100, 0, 2000); - h20->Sumw2(); - Add2RawsList(h20, 20, !expert, image, !saveCorr); - - TH1I * h21 = new TH1I("hPreEdepM21","ADC Distribution PRE - Module 21;Amplitude [ADC counts];Counts", 100, 0, 2000); - h21->Sumw2(); - Add2RawsList(h21, 21, !expert, image, !saveCorr); - - TH1I * h22 = new TH1I("hPreEdepM22","ADC Distribution PRE - Module 22;Amplitude [ADC counts];Counts", 100, 0, 2000); - h22->Sumw2(); - Add2RawsList(h22, 22, !expert, image, !saveCorr); - - TH1I * h23 = new TH1I("hPreEdepM23","ADC Distribution PRE - Module 23;Amplitude [ADC counts];Counts", 100, 0, 2000); - h23->Sumw2(); - Add2RawsList(h23, 23, !expert, image, !saveCorr); - - // CPV histos - - TH1I * h24 = new TH1I("hCpvEdepM24","ADC Distribution CPV - Module 24;Amplitude [ADC counts];Counts", 100, 0, 2000); - h24->Sumw2(); - Add2RawsList(h24, 24, !expert, image, !saveCorr); - - TH1I * h25 = new TH1I("hCpvEdepM25","ADC Distribution CPV - Module 25;Amplitude [ADC counts];Counts", 100, 0, 2000); - h25->Sumw2(); - Add2RawsList(h25, 25, !expert, image, !saveCorr); + for(int i = 0; i < 50; i++ ) { + h0->GetXaxis()->SetBinLabel(i*1000+300,Form("%2d",i+1)); + h1->GetXaxis()->SetBinLabel(i*1000+300,Form("%2d",i+1)); + h2->GetXaxis()->SetBinLabel(i*1000+300,Form("%2d",i+1)); + h3->GetXaxis()->SetBinLabel(i*1000+300,Form("%2d",i+1)); + } - TH1I * h26 = new TH1I("hCpvEdepM26","ADC Distribution CPV - Module 26;Amplitude [ADC counts];Counts", 100, 0, 2000); - h26->Sumw2(); - Add2RawsList(h26, 26, !expert, image, !saveCorr); - TH1I * h27 = new TH1I("hCpvEdepM27","ADC Distribution CPV - Module 27;Amplitude [ADC counts];Counts", 100, 0, 2000); - h27->Sumw2(); - Add2RawsList(h27, 27, !expert, image, !saveCorr); + Add2RawsList(h0, 0, expert, image, saveCorr); + Add2RawsList(h1, 1, expert, image, saveCorr); + Add2RawsList(h2, 2, expert, image, saveCorr); + Add2RawsList(h3, 3, expert, image, saveCorr); - TH1I * h28 = new TH1I("hCpvEdepM28","ADC Distribution CPV - Module 28;Amplitude [ADC counts];Counts", 100, 0, 2000); - h28->Sumw2(); - Add2RawsList(h28, 28, !expert, image, !saveCorr); - TH1I * h29 = new TH1I("hCpvEdepM29","ADC Distribution CPV - Module 29;Amplitude [ADC counts];Counts", 100, 0, 2000); - h29->Sumw2(); - Add2RawsList(h29, 29, !expert, image, !saveCorr); - - TH1I * h30 = new TH1I("hCpvEdepM30","ADC Distribution CPV - Module 30;Amplitude [ADC counts];Counts", 100, 0, 2000); - h30->Sumw2(); - Add2RawsList(h30, 30, !expert, image, !saveCorr); - - TH1I * h31 = new TH1I("hCpvEdepM31","ADC Distribution CPV - Module 31;Amplitude [ADC counts];Counts", 100, 0, 2000); - h31->Sumw2(); - Add2RawsList(h31, 31, !expert, image, !saveCorr); - - TH1I * h32 = new TH1I("hCpvEdepM32","ADC Distribution CPV - Module 32;Amplitude [ADC counts];Counts", 100, 0, 2000); - h32->Sumw2(); - Add2RawsList(h32, 32, !expert, image, !saveCorr); - - TH1I * h33 = new TH1I("hCpvEdepM33","ADC Distribution CPV - Module 33;Amplitude [ADC counts];Counts", 100, 0, 2000); - h33->Sumw2(); - Add2RawsList(h33, 33, !expert, image, !saveCorr); - - TH1I * h34 = new TH1I("hCpvEdepM34","ADC Distribution CPV - Module 34;Amplitude [ADC counts];Counts", 100, 0, 2000); - h34->Sumw2(); - Add2RawsList(h34, 34, !expert, image, !saveCorr); - - TH1I * h35 = new TH1I("hCpvEdepM35","ADC Distribution CPV - Module 35;Amplitude [ADC counts];Counts", 100, 0, 2000); - h35->Sumw2(); - Add2RawsList(h35, 35, !expert, image, !saveCorr); - - TH1I * h36 = new TH1I("hCpvEdepM36","ADC Distribution CPV - Module 36;Amplitude [ADC counts];Counts", 100, 0, 2000); - h36->Sumw2(); - Add2RawsList(h36, 36, !expert, image, !saveCorr); - - TH1I * h37 = new TH1I("hCpvEdepM37","ADC Distribution CPV - Module 37;Amplitude [ADC counts];Counts", 100, 0, 2000); - h37->Sumw2(); - Add2RawsList(h37, 37, !expert, image, !saveCorr); - - TH1I * h38 = new TH1I("hCpvEdepM38","ADC Distribution CPV - Module 38;Amplitude [ADC counts];Counts", 100, 0, 2000); - h38->Sumw2(); - Add2RawsList(h38, 38, !expert, image, !saveCorr); - - TH1I * h39 = new TH1I("hCpvEdepM39","ADC Distribution CPV - Module 39;Amplitude [ADC counts];Counts", 100, 0, 2000); - h39->Sumw2(); - Add2RawsList(h39, 39, !expert, image, !saveCorr); - - TH1I * h40 = new TH1I("hCpvEdepM40","ADC Distribution CPV - Module 40;Amplitude [ADC counts];Counts", 100, 0, 2000); - h40->Sumw2(); - Add2RawsList(h40, 40, !expert, image, !saveCorr); - - TH1I * h41 = new TH1I("hCpvEdepM41","ADC Distribution CPV - Module 41;Amplitude [ADC counts];Counts", 100, 0, 2000); - h41->Sumw2(); - Add2RawsList(h41, 41, !expert, image, !saveCorr); - - TH1I * h42 = new TH1I("hCpvEdepM42","ADC Distribution CPV - Module 42;Amplitude [ADC counts];Counts", 100, 0, 2000); - h42->Sumw2(); - Add2RawsList(h42, 42, !expert, image, !saveCorr); - - TH1I * h43 = new TH1I("hCpvEdepM43","ADC Distribution CPV - Module 43;Amplitude [ADC counts];Counts", 100, 0, 2000); - h43->Sumw2(); - Add2RawsList(h43, 43, !expert, image, !saveCorr); - - TH1I * h44 = new TH1I("hCpvEdepM44","ADC Distribution CPV - Module 44;Amplitude [ADC counts];Counts", 100, 0, 2000); - h44->Sumw2(); - Add2RawsList(h44, 44, !expert, image, !saveCorr); + TH2F *hPreXY = new TH2F("hPreXY","PRE plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.); + Add2RawsList(hPreXY, 4, expert, !image, saveCorr); + + TH2F *hCpvXY = new TH2F("hCpvXY","CPV plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.); + Add2RawsList(hCpvXY, 5, expert, !image, saveCorr); + + TH1F *hQuality1 = new TH1F("hPmdQualityWAdc","Quality Plot SumWAdc/SumWAdc;#eta Bins (PRE <---> CPV);Quality",25,0,25); + TH1F *hQuality2 = new TH1F("hPmdQualityHit","Quality Plot Hit/Hit;#eta Bins (PRE <---> CPV);Quality",25,0,25); - TH1I * h45 = new TH1I("hCpvEdepM45","ADC Distribution CPV - Module 45;Amplitude [ADC counts];Counts", 100, 0, 2000); - h45->Sumw2(); - Add2RawsList(h45, 45, !expert, image, !saveCorr); + for(int i = 0; i < 10; i++ ) { + hQuality1->GetXaxis()->SetBinLabel(i+3,Form("%2d",i+1)); + hQuality2->GetXaxis()->SetBinLabel(i+3,Form("%2d",i+1)); - TH1I * h46 = new TH1I("hCpvEdepM46","ADC Distribution CPV - Module 46;Amplitude [ADC counts];Counts", 100, 0, 2000); - h46->Sumw2(); - Add2RawsList(h46, 46, !expert, image, !saveCorr); + hQuality1->GetXaxis()->SetBinLabel(i+15,Form("%2d",i+1)); + hQuality2->GetXaxis()->SetBinLabel(i+15,Form("%2d",i+1)); + } - TH1I * h47 = new TH1I("hCpvEdepM47","ADC Distribution CPV - Module 47;Amplitude [ADC counts];Counts", 100, 0, 2000); - h47->Sumw2(); - Add2RawsList(h47, 47, !expert, image, !saveCorr); + Add2RawsList(hQuality1, 6, !expert, image, saveCorr); + Add2RawsList(hQuality2, 7, !expert, image, saveCorr); + TH1F *hMP = new TH1F("hPmdMultiplicityP"," Cell Hit Distribution with adc>40; Multiplicity; Entries",1000,0,7000); + TH1F *hMC = new TH1F("hPmdMultiplicityC"," Cell Hit Distribution with adc>40; Multiplicity; Entries",1000,0,7000); + Add2RawsList(hMP, 8, expert, !image, saveCorr); + Add2RawsList(hMC, 9, expert, !image, saveCorr); + - // Y vs. X for PRE and CPV planes - TH2F * h48 = new TH2F("hPreXY","PRE plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.); - Add2RawsList(h48, 48, !expert, !image, saveCorr);//Ajay - //Add2RawsList(h48, 48);//Ajay - TH2F * h49 = new TH2F("hCpvXY","CPV plane;X [cm];Y [cm]",200,-100.,100.,200,-100.,100.); - Add2RawsList(h49, 49, !expert, !image, saveCorr);//Ajay - //Add2RawsList(h49, 49);//Ajay + ClonePerTrigClass(AliQAv1::kRAWS); // this should be the last line } //____________________________________________________________________________ @@ -309,6 +153,8 @@ void AliPMDQADataMakerRec::InitDigits() TH1I *h3 = new TH1I("hCpvDigitsMult","Digits multiplicity distribution in CPV(PMD);# of Digits;Entries", 500, 0, 1000); h3->Sumw2(); Add2DigitsList(h3, 3, !expert, image); + // + ClonePerTrigClass(AliQAv1::kDIGITS); // this should be the last line } //____________________________________________________________________________ @@ -368,11 +214,11 @@ void AliPMDQADataMakerRec::InitRecPoints() TH2I *h7 = new TH2I("hPre32","Cluster - DDL3 vs DDL2;DDL2;DDL3", 100,0,200,100,0,200); Add2RecPointsList(h7,7, !expert, image); + TH2I *h8 = new TH2I("hCpv54","Cluster - DDL5 vs DDL4;DDL4;DDL5", 100,0,200,100,0,200); Add2RecPointsList(h8,8, !expert, image); - - - + // + ClonePerTrigClass(AliQAv1::kRECPOINTS); // this should be the last line } //____________________________________________________________________________ @@ -396,18 +242,19 @@ void AliPMDQADataMakerRec::InitESDs() h2->Sumw2(); Add2ESDsList(h2, 2, !expert, image) ; -/* - TH1I * h3 = new TH1I("hCpvClMult","Cluster Multiplicity of CPV plane",100,0.,1000.); - h3->Sumw2(); - Add2ESDsList(h3, 3, !expert, image) ; -*/ - + /* + TH1I * h3 = new TH1I("hCpvClMult","Cluster Multiplicity of CPV plane",100,0.,1000.); + h3->Sumw2(); + Add2ESDsList(h3, 3, !expert, image) ; + */ + // + ClonePerTrigClass(AliQAv1::kESDS); // this should be the last line } //____________________________________________________________________________ void AliPMDQADataMakerRec::MakeRaws(AliRawReader* rawReader) { - //Fill prepared histograms with Raw digit properties + //Fill prepared histograms with Raw digit properties TObjArray *pmdddlcont = 0x0; pmdddlcont = new TObjArray(); @@ -415,76 +262,149 @@ void AliPMDQADataMakerRec::MakeRaws(AliRawReader* rawReader) AliPMDddldata *pmdddl = 0x0; - Int_t iddl = -1; - Int_t xpad = -1; - Int_t ypad = -1; - Float_t xx, yy; + Int_t iddl = 1; + Int_t sddl = -1; + Float_t xx = 0., yy = 0.; + + Double_t eta; + Int_t etaindex = 0; + + Float_t nDdl1[10] = {0,0,0,0,0,0,0,0,0,0}; + Float_t nDdl2[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl3[10] = {0,0,0,0,0,0,0,0,0,0}; + Float_t nDdl4[10] = {1,1,1,1,1,1,1,1,1,1}; + + Float_t nDdl1a[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl2a[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl3a[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl4a[10] = {1,1,1,1,1,1,1,1,1,1}; + + Float_t nDdl11[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl22[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl33[10] = {1,1,1,1,1,1,1,1,1,1}; + Float_t nDdl44[10] = {1,1,1,1,1,1,1,1,1,1}; + + Float_t nddlp = 0; + Float_t nddlc = 0; AliPMDUtility cc; + + while ((iddl = stream.DdlData(pmdddlcont)) >=0) { Int_t ientries = pmdddlcont->GetEntries(); //printf(" ======= DDLNO = %d ientries = %d \n", iddl, ientries); + if(iddl == 0 || iddl == 1) sddl = iddl; + if(iddl == 4 ) sddl = 2; + if(iddl == 5 ) sddl = 3; for (Int_t ient = 0; ient < ientries; ient++) { - //AliPMDddldata *pmdddl = (AliPMDddldata*)pmdddlcont->UncheckedAt(ient); pmdddl = (AliPMDddldata*)pmdddlcont->UncheckedAt(ient); - Int_t det = pmdddl->GetDetector(); - Int_t smn = pmdddl->GetSMN(); - Int_t mcm = pmdddl->GetMCM(); - //Int_t chno = pmdddl->GetChannel(); - Int_t row = pmdddl->GetRow(); - Int_t col = pmdddl->GetColumn(); - Int_t sig = pmdddl->GetSignal(); + Int_t det = pmdddl->GetDetector(); + Int_t smn = pmdddl->GetSMN(); + Int_t mcm = pmdddl->GetMCM(); + Int_t chno = pmdddl->GetChannel(); + Int_t pbus = pmdddl->GetPatchBusId(); + Int_t row = pmdddl->GetRow(); + Int_t col = pmdddl->GetColumn(); + Int_t sig = pmdddl->GetSignal(); + + if (mcm == 0) continue; + + if (det < 0 || det > 1) continue; + if (smn < 0 || smn > 23) continue; + if (row < 0 || row > 47) continue; + if (col < 0 || col > 95) continue; - if (mcm == 0 || smn == -1) continue; + Int_t rc = pbus*1000 + mcm*64 + chno; - if (det == 0) - { - GetRawsData(smn)->Fill(sig); - if(smn < 12) - { - xpad = col; - ypad = row; - } - else if(smn >= 12 && smn < 24) - { - xpad = row; - ypad = col; - } - cc.RectGeomCellPos(smn,xpad,ypad,xx,yy); - GetRawsData(48)->Fill(xx,yy); - } - if (det == 1) - { - GetRawsData(24+smn)->Fill(sig); - if(smn < 12) - { - xpad = col; - ypad = row; + if(sddl == 0) FillRawsData(0,rc); + else if(sddl == 1) FillRawsData(1,rc); + else if(sddl == 2) FillRawsData(2,rc); + else if(sddl == 3) FillRawsData(3,rc); + + cc.GetEtaIndexXY(smn,row,col,xx,yy,eta,etaindex); + + if(etaindex >= 0 && etaindex <10) { + + if(sddl == 0) { + nDdl1a[etaindex] += 1; + nDdl1[etaindex] += sig; + if(sig >40) { + nDdl11[etaindex] += 1; + nddlp += 1; } - else if(smn >= 12 && smn < 24) - { - xpad = row; - ypad = col; + + } + else if(sddl == 1) { + nDdl2a[etaindex] += 1; + nDdl2[etaindex] += sig; + if(sig >40) { + nDdl22[etaindex] += 1; + nddlp += 1; } + - cc.RectGeomCellPos(smn,xpad,ypad,xx,yy); - GetRawsData(49)->Fill(xx,yy); + } + else if(sddl == 2) { + nDdl3a[etaindex] += 1; + nDdl3[etaindex] += sig; + if(sig >40) { + nDdl33[etaindex] += 1; + nddlc += 1; + } + } + else if(sddl == 3) { + nDdl4a[etaindex] += 1; + nDdl4[etaindex] += sig; + if(sig >40) { + nDdl44[etaindex] += 1; + nddlc += 1; + } + } } + if (det == 0) FillRawsData(4,xx,yy); + else if (det == 1) FillRawsData(5,xx,yy); + } pmdddlcont->Delete(); } + delete pmdddlcont; pmdddlcont = 0x0; + + if(nddlp != 0) FillRawsData(8,nddlp); + if(nddlc != 0) FillRawsData(9,nddlc); + + + ResetRawsData(6); + ResetRawsData(7); + for (Int_t i = 0; i < 10; i++) { + + Float_t prerC = nDdl11[i]/nDdl22[i]; + Float_t cpvrC = nDdl33[i]/nDdl44[i]; + + Float_t prera =(nDdl1[i]/nDdl1a[i])/(nDdl2[i]/nDdl2a[i]); + Float_t cpvra =(nDdl3[i]/nDdl3a[i])/(nDdl4[i]/nDdl4a[i]); + + + FillRawsData(6,i+2,prera); + FillRawsData(6,i+14,cpvra); + FillRawsData(7,i+2,prerC); + FillRawsData(7,i+14,cpvrC); + } + IncEvCountCycleRaws(); + IncEvCountTotalRaws(); + + // } //____________________________________________________________________________ void AliPMDQADataMakerRec::MakeDigits() @@ -499,18 +419,18 @@ void AliPMDQADataMakerRec::MakeDigits() { if(digit->GetDetector() == 0) { - GetDigitsData(0)->Fill( digit->GetADC()) ; + FillDigitsData(0, digit->GetADC()) ; premul++; } if(digit->GetDetector() == 1) { - GetDigitsData(1)->Fill( digit->GetADC()); + FillDigitsData(1, digit->GetADC()); cpvmul++; } } - if (premul > 0) GetDigitsData(2)->Fill(premul); - if (cpvmul > 0) GetDigitsData(3)->Fill(cpvmul); + if (premul > 0) FillDigitsData(2,premul); + if (cpvmul > 0) FillDigitsData(3,cpvmul); } @@ -526,21 +446,17 @@ void AliPMDQADataMakerRec::MakeDigits(TTree * digitTree) fDigitsArray = new TClonesArray("AliPMDdigit", 1000) ; TBranch * branch = digitTree->GetBranch("PMDDigit") ; + if ( ! branch ) {AliWarning("PMD branch in Digit Tree not found"); return;} + // branch->SetAddress(&fDigitsArray) ; - - if ( ! branch ) - { - AliWarning("PMD branch in Digit Tree not found") ; - } - else - { - for (Int_t ient = 0; ient < branch->GetEntries(); ient++) - { - branch->GetEntry(ient) ; - MakeDigits() ; - } - - } + for (Int_t ient = 0; ient < branch->GetEntries(); ient++) { + branch->GetEntry(ient) ; + MakeDigits() ; + } + // + IncEvCountCycleDigits(); + IncEvCountTotalDigits(); + // } //____________________________________________________________________________ @@ -549,81 +465,86 @@ void AliPMDQADataMakerRec::MakeRecPoints(TTree * clustersTree) // makes data from RecPoints Int_t multDdl0 = 0, multDdl1 = 0, multDdl2 = 0; - Int_t multDdl3 = 0, multDdl4 = 0, multDdl5 = 0; - - AliPMDrecpoint1 * recpoint; - + Int_t multDdl3 = 0, multDdl4 = 0, multDdl5 = 0; + + AliPMDrecpoint1 * recpoint; + if (fRecPointsArray) fRecPointsArray->Clear() ; else fRecPointsArray = new TClonesArray("AliPMDrecpoint1", 1000) ; - - TBranch * branch = clustersTree->GetBranch("PMDRecpoint") ; - branch->SetAddress(&fRecPointsArray) ; + + TBranch * branch = clustersTree->GetBranch("PMDRecpoint") ; - if ( ! branch ) + if ( ! branch ) { - AliWarning("PMD branch in Recpoints Tree not found") ; + AliWarning("PMD branch in Recpoints Tree not found") ; } - else + else { - for (Int_t imod = 0; imod < branch->GetEntries(); imod++) + branch->SetAddress(&fRecPointsArray) ; + + for (Int_t imod = 0; imod < branch->GetEntries(); imod++) { - branch->GetEntry(imod) ; - - TIter next(fRecPointsArray) ; - - while ( (recpoint = dynamic_cast(next())) ) - { - //Float_t xpos = recpoint->GetClusX(); - //Float_t ypos = recpoint->GetClusY(); - //Int_t smn = recpoint->GetSMNumber(); - - if(recpoint->GetDetector() == 0) - { - if(recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6) - { - GetRecPointsData(0)->Fill(recpoint->GetClusCells()); - multDdl0++; - } - if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 12) - { - GetRecPointsData(1)->Fill(recpoint->GetClusCells()); - multDdl1++; - } - if(recpoint->GetSMNumber() >= 12 && recpoint->GetSMNumber() < 18) - { - GetRecPointsData(2)->Fill(recpoint->GetClusCells()); - multDdl2++; - } - if(recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24) - { - GetRecPointsData(3)->Fill(recpoint->GetClusCells()); - multDdl3++; - } - } - - if(recpoint->GetDetector() == 1) - { - if((recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6) || - (recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24)) - { - GetRecPointsData(4)->Fill(recpoint->GetClusCells()); - multDdl4++; - } - if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 18 ) - { - GetRecPointsData(5)->Fill(recpoint->GetClusCells()); - multDdl5++; - } - } - } + branch->GetEntry(imod) ; + + TIter next(fRecPointsArray) ; + + while ( (recpoint = dynamic_cast(next())) ) + { + //Float_t xpos = recpoint->GetClusX(); + //Float_t ypos = recpoint->GetClusY(); + //Int_t smn = recpoint->GetSMNumber(); + + if(recpoint->GetDetector() == 0) + { + if(recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6) + { + FillRecPointsData(0,recpoint->GetClusCells()); + multDdl0++; + } + if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 12) + { + FillRecPointsData(1,recpoint->GetClusCells()); + multDdl1++; + } + if(recpoint->GetSMNumber() >= 12 && recpoint->GetSMNumber() < 18) + { + FillRecPointsData(2,recpoint->GetClusCells()); + multDdl2++; + } + if(recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24) + { + FillRecPointsData(3,recpoint->GetClusCells()); + multDdl3++; + } + } + + if(recpoint->GetDetector() == 1) + { + if((recpoint->GetSMNumber() >= 0 && recpoint->GetSMNumber() < 6) || + (recpoint->GetSMNumber() >= 18 && recpoint->GetSMNumber() < 24)) + { + FillRecPointsData(4,recpoint->GetClusCells()); + multDdl4++; + } + if(recpoint->GetSMNumber() >= 6 && recpoint->GetSMNumber() < 18 ) + { + FillRecPointsData(5,recpoint->GetClusCells()); + multDdl5++; + } + } + } } } - - GetRecPointsData(6)->Fill(multDdl0,multDdl1); - GetRecPointsData(7)->Fill(multDdl2,multDdl3); - GetRecPointsData(8)->Fill(multDdl4,multDdl5); + + FillRecPointsData(6,multDdl0,multDdl1); + FillRecPointsData(7,multDdl2,multDdl3); + FillRecPointsData(8,multDdl4,multDdl5); + // + IncEvCountCycleRecPoints(); + IncEvCountTotalRecPoints(); + // } //____________________________________________________________________________ @@ -648,18 +569,22 @@ void AliPMDQADataMakerRec::MakeESDs(AliESDEvent * esd) if (pmdtr->GetDetector() == 0) { - GetESDsData(0)->Fill(adc); + FillESDsData(0,adc); premul++; } if (pmdtr->GetDetector() == 1) { - GetESDsData(1)->Fill(adc) ; + FillESDsData(1,adc) ; cpvmul++; } } - GetESDsData(2)->Fill(cpvmul,premul) ; - //GetESDsData(3)->Fill(cpvmul) ; + FillESDsData(2,cpvmul,premul) ; + //FillESDsData(3,cpvmul) ; + // + IncEvCountCycleESDs(); + IncEvCountTotalESDs(); + // } //____________________________________________________________________________