===============================================================================================================================================================================================
variant2: for each run define phi-averaged A for normalization channel (Dref,16) and then, divide Rijk on it, i.e. get RRijk
eta=27
35 cout <<
"********************************************************************* START job " << endl;
58 const Int_t NMethods = 14;
59 const Int_t NMethodsStart = 0;
60 const Int_t NMethodsToUse = 13;
62 TString MethodName[NMethods] = {
"PLOT0",
77 const Int_t NMAXM = 70;
79 cout <<
"********************************************************************* NMAXM = " << NMAXM << endl;
81 TString LEDrunsM[NMAXM] = {
82 "315812",
"315984",
"316826",
"317116",
"317193",
"317268",
"317271",
"317273",
"317363",
83 "317444",
"317606",
"317607",
"317609",
"317610",
"317611",
"317612",
"317613",
"317617",
84 "317785",
"318758",
"319198",
"319401",
"319517",
"319519",
"319520",
"319564",
"319612",
85 "319734",
"319771",
"319774",
"319857",
"319969",
"320117",
"320158",
"320203",
"320205",
86 "320348",
"320579",
"320873",
"320892",
"320952",
"321019",
"321036",
"321187",
"321339",
87 "321359",
"321371",
"321447",
"321514",
"322781",
"322782",
"323314",
"323502",
"323579",
88 "323613",
"323742",
"324030",
"324032",
"324138",
"324225",
"324296",
"324919",
"325141",
89 "325787",
"326234",
"326875",
"327288",
"327438",
"327552",
"327579" 92 cout <<
"********************************************************************* first massives defined " << endl;
93 Float_t X0M[NMAXM] = {
95 0., 2., 17., 22., 23., 24., 24., 24., 27., 29., 32., 32., 32., 32., 32., 32., 32., 32.,
96 38., 51., 58., 63., 65., 65., 65., 66., 68., 70., 71., 71., 72., 74., 77., 78., 79., 79.,
97 80., 85., 90., 91., 92., 93., 93., 98., 101., 101., 101., 104., 106., 129., 129., 138., 141., 142.,
98 143., 146., 150., 150., 151., 153., 155., 165., 169., 179., 183., 195., 203., 205., 208., 209.,
100 cout <<
"********************************************************************* both massives are defined " << endl;
104 const Int_t yearcase = 0;
106 cout <<
"************************************** yearcase = " << yearcase << endl;
119 const Int_t flagHOP17selection = 0;
121 cout <<
"************************************** flagHOP17selection = " << flagHOP17selection << endl;
133 TCanvas*
c1 =
new TCanvas(
"c1",
"GSM", 10, 10, 1010, 1010);
138 c1->Range(0, 0, 25, 18);
143 TLatex*
t =
new TLatex();
146 t->SetTextSize(0.03);
150 0.9, 15.5,
"Time dependence of full Amplitude averaged over events of each LED run for some random HO channels");
172 Float_t RrangeMIN =
y1;
173 Float_t RrangeMAX =
y2;
181 cout <<
"************************************** RrangeMIN = " << RrangeMIN <<
" RrangeMAX = " << RrangeMAX << endl;
186 const Int_t NDEP = 5;
187 const Int_t NETA0 = 83;
188 const Int_t NPHI0 = 73;
191 Double_t mapRATIO[NDEP][NETA0][NPHI0];
192 Double_t mapRATIOD2[NETA0][NPHI0];
193 Int_t mapRATIOD20[NETA0][NPHI0];
197 cout <<
"************************************** NDEP = " << NDEP <<
" NETA0 = " << NETA0 <<
" NPHI0 = " << NPHI0
201 Int_t NMAXSIZE = NMAXM;
202 Float_t
X0[NMAXSIZE];
203 TString LEDruns[NMAXSIZE];
204 Double_t
XX[NMAXSIZE];
205 Double_t XXE[NMAXSIZE];
206 Double_t XXX[NMAXSIZE];
207 Double_t XXXE[NMAXSIZE];
208 Int_t indWAS[NMAXSIZE];
210 Double_t
YY[NMAXSIZE];
211 Double_t YYE[NMAXSIZE];
212 cout <<
"************************************** NMAXSIZE = " << NMAXSIZE <<
" NMAXM = " << NMAXM << endl;
215 Double_t GSMRATIOD2[NMAXSIZE][NETA0][NPHI0];
223 Int_t NMAXmM = NMAXSIZE - 1;
224 Int_t NMAXaM = NMAXSIZE;
230 }
else if (yearcase == 2) {
235 }
else if (yearcase == 3) {
240 }
else if (yearcase == 4) {
245 }
else if (yearcase == 5) {
252 cout <<
"************************************** NMINmM = " << NMINmM <<
" NMAXmM = " << NMAXmM
253 <<
" NMAXaM = " << NMAXaM << endl;
254 if (NMINmM == -1 || NMAXmM == -1 || NMAXaM == -1)
255 cout <<
" STOP !!!!!! NMINmM == -1 || NMAXmM == -1 || NMAXaM == -1 " << endl;
260 for (
int jjj = NMINmM; jjj <= NMAXmM; jjj++) {
261 LEDruns[jjj - NMINmM] = LEDrunsM[jjj];
262 X0[jjj - NMINmM] = X0M[jjj];
271 cout <<
"******************* NP = " << NP << endl;
279 Double_t cutMinA = 100.;
280 Double_t cutMaxA = 5000.;
287 for (
int kk1 = 0; kk1 < NP; kk1++) {
293 cout <<
"ORDINATE points: kk1 = " << kk1 <<
" XX[kk1]= " <<
XX[kk1] << endl;
296 XXE[kk1] = 0.001 *
XX[kk1];
303 for (
int jjj = 0; jjj <= 82; jjj++) {
304 for (
int kkk = 0; kkk <= 72; kkk++) {
305 mapRATIOD2[jjj][kkk] = 0.;
306 mapRATIOD20[jjj][kkk] = 0.;
309 for (
int k1 = 0; k1 < NP; k1++) {
310 GSMRATIOD2[k1][jjj][kkk] = mapRATIOD2[jjj][kkk];
313 for (
int iii = 0; iii < NDEP; iii++) {
314 mapRATIO[iii][jjj][kkk] = 0.;
326 TString
fname =
"/afs/cern.ch/cms/CAF/CMSALCA/ALCA_HCALCALIB/HCALMONITORING/RDMweb/histos/LED_";
330 TH1F* Seff1D =
new TH1F(
"Seff1D",
"", 1000, 10., 1010.);
331 TH1F* Ceff1D =
new TH1F(
"Ceff1D",
"", 1500, 10., 8010.);
333 TH2F* mapBADchannels =
new TH2F(
"mapBADchannels",
" ", 82, -41., 41., 72, 0., 72.);
334 TH2F* mapBADchannels0 =
new TH2F(
"mapBADchannels0",
" ", 82, -41., 41., 72, 0., 72.);
339 TH2F* mapchannelsdepth4 =
new TH2F(
"mapchannelsdepth4",
" ", 82, -41., 41., 72, 0., 72.);
341 TH1F* gainkoeff =
new TH1F(
"gainkoeff",
"", 100,
y1,
y2);
342 TH1F* gainkoeff0 =
new TH1F(
"gainkoeff0",
"", 100, 0.9, 1.1);
343 TH1F* gainkoeff9 =
new TH1F(
"gainkoeff9",
"", 100, 0.1, 1.9);
344 TH1F* GOODruns =
new TH1F(
"GOODruns",
"", NP, 0.,
float(NP));
345 TH1F* BADruns =
new TH1F(
"BADruns",
"", NP, 0.,
float(NP));
346 TH1F* NotEmptyDepthes =
new TH1F(
"NotEmptyDepthes",
"", 56, 0., 56.);
352 cout <<
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! firstrun = " <<
firstrun <<
" run = " << LEDruns[
firstrun] << endl;
359 cout <<
"!!!!!!!!!!!!!!!!!!!!!! use root files from official RMT dir. " << endl;
363 TH1F* Aeff1D =
new TH1F(
"Aeff1D",
"", 250, 0., 500000.);
366 for (
int k1 =
firstrun; k1 < NP; k1++) {
375 TString epsName =
fname + LEDruns[k1] +
".root";
380 TFile* hfile =
new TFile(epsName,
"READ");
382 TH1F* Aeff1 = (TH1F*)hfile->Get(
"h_ADCAmpl_HO");
384 int kx = Aeff1->GetXaxis()->GetNbins();
388 for (
int jjj = 0; jjj < kx; jjj++) {
389 if (
double(Aeff1->GetBinContent(jjj)) > 0. && maxvalueA < jjj)
392 Aeff1D->Fill(
float(jjj),
double(Aeff1->GetBinContent(jjj)));
394 cout <<
" run = " << LEDruns[k1] <<
" k1= " << k1 <<
" max bin value= " << maxvalueA <<
" ck1count= " << ck1count
407 gStyle->SetOptStat(101110);
408 Aeff1->SetMarkerStyle(20);
409 Aeff1->SetMarkerSize(0.4);
410 Aeff1->GetYaxis()->SetLabelSize(0.04);
411 Aeff1->SetTitle(
"Last run & events & channels");
412 Aeff1->SetXTitle(
"Aijk");
413 Aeff1->SetYTitle(
"N");
414 Aeff1->SetMarkerColor(4);
415 Aeff1->SetLineColor(4);
416 Aeff1->SetMinimum(0.8);
419 TString fdir =
"testamt5gsmHO2018/";
421 TString
plotName = fdir +
"Aijk-Run" + LEDruns[k1] +
".png";
423 cout <<
"****PLOT AijkLastRun.png is drawn **** " << endl;
434 gStyle->SetOptStat(101110);
435 Aeff1->SetMarkerStyle(20);
436 Aeff1->SetMarkerSize(0.4);
437 Aeff1->GetYaxis()->SetLabelSize(0.04);
438 Aeff1->SetTitle(
"First run & events & channels");
439 Aeff1->SetXTitle(
"Aijk");
440 Aeff1->SetYTitle(
"N");
441 Aeff1->SetMarkerColor(4);
442 Aeff1->SetLineColor(4);
443 Aeff1->SetMinimum(0.8);
446 TString fdir =
"testamt5gsmHO2018/";
447 TString
plotName = fdir +
"AijkFirstRun.png";
449 cout <<
"****PLOT AijkFirstRun.png is drawn **** " << endl;
473 TH2F* twod4 = (TH2F*)hfile->Get(
"h_mapDepth4ADCAmpl12_HO");
482 int nx = twod4->GetXaxis()->GetNbins();
483 int ny = twod4->GetYaxis()->GetNbins();
489 TH2F* t0040 = (TH2F*)hfile->Get(
"h_mapDepth4_HO");
494 TH2F* Ceff4 = (TH2F*)twod4->Clone(
"Ceff4");
500 Ceff4->Divide(twod4, t0040, 1, 1,
"B");
503 for (
int jjj = 0; jjj < nx; jjj++) {
504 for (
int kkk = 0; kkk < ny; kkk++) {
506 if (flagHOP17selection == 0 ||
507 (flagHOP17selection == 1 && (((jjj > 56 && jjj < 62) && (kkk > 63 && kkk < 68)) ||
508 ((jjj > 61 && jjj < 71) && (kkk == 64 || kkk == 66)))) ||
509 (flagHOP17selection == 2 && !(((jjj > 14 && jjj < 25) && (kkk > 55 && kkk < 64))))) {
515 if (Ceff4->GetBinContent(jjj, kkk) > 0.)
516 mapchannelsdepth4->Fill(
double(jjj) - 41.,
double(kkk), Ceff4->GetBinContent(jjj, kkk));
527 for (
int jjj = 0; jjj < nx; jjj++) {
528 for (
int kkk = 0; kkk < ny; kkk++) {
531 if (flagHOP17selection == 0 ||
532 (flagHOP17selection == 1 && (((jjj > 56 && jjj < 62) && (kkk > 63 && kkk < 68)) ||
533 ((jjj > 61 && jjj < 71) && (kkk == 64 || kkk == 66)))) ||
534 (flagHOP17selection == 2 && !(((jjj > 14 && jjj < 25) && (kkk > 55 && kkk < 64))))) {
540 if (Ceff4->GetBinContent(jjj, kkk) != 0.) {
541 Ceff1D->Fill(Ceff4->GetBinContent(jjj, kkk));
542 Seff1D->Fill(Ceff4->GetBinContent(jjj, kkk));
553 for (
int jjj = 0; jjj < nx; jjj++) {
554 for (
int kkk = 0; kkk < ny; kkk++) {
556 if (flagHOP17selection == 0 ||
557 (flagHOP17selection == 1 && (((jjj > 56 && jjj < 62) && (kkk > 63 && kkk < 68)) ||
558 ((jjj > 61 && jjj < 71) && (kkk == 64 || kkk == 66)))) ||
559 (flagHOP17selection == 2 && !(((jjj > 14 && jjj < 25) && (kkk > 55 && kkk < 64))))) {
563 if (Ceff4->GetBinContent(jjj, kkk) > cutMinA && Ceff4->GetBinContent(jjj, kkk) < cutMaxA)
564 mapRATIO[4][jjj][kkk] = Ceff4->GetBinContent(jjj, kkk);
589 int totalhep17count = 0;
590 int totalhep17count1 = 0;
591 int totalhep17count2 = 0;
592 int totalhep17count3 = 0;
593 int totalhep17count4 = 0;
594 int totalhep17count5 = 0;
595 int totalhep17count6 = 0;
596 int totalhep17count7 = 0;
597 for (
int iii = 1; iii < NDEP; iii++) {
598 for (
int jjj = 0; jjj < nx; jjj++) {
599 for (
int kkk = 0; kkk < ny; kkk++) {
602 if (mapRATIO[iii][jjj][kkk] > 0) {
606 cout <<
" k1= " << k1 <<
" depth= " << iii <<
" eta= " << jjj <<
" phi= " << kkk
607 <<
" mapRATIO= " << mapRATIO[iii][jjj][kkk] << endl;
624 mapRATIOD2[jjj][kkk] += mapRATIO[iii][jjj][kkk];
626 mapRATIOD20[jjj][kkk]++;
628 cout <<
" depth = " << iii <<
" k1 = " << k1 <<
" eta = " << jjj
629 <<
" mapRATIOD2[jjj][kkk] = " << mapRATIOD2[jjj][kkk] <<
" #entries = " << mapRATIOD20[jjj][kkk]
630 <<
" mapRATIO[iii][jjj][kkk] = " << mapRATIO[iii][jjj][kkk] << endl;
640 cout <<
" k1= " << k1 <<
" totalhep17count= " << totalhep17count << endl;
641 cout <<
" k1= " << k1 <<
" totalhep17count1= " << totalhep17count1 << endl;
642 cout <<
" k1= " << k1 <<
" totalhep17count2= " << totalhep17count2 << endl;
643 cout <<
" k1= " << k1 <<
" totalhep17count3= " << totalhep17count3 << endl;
644 cout <<
" k1= " << k1 <<
" totalhep17count4= " << totalhep17count4 << endl;
645 cout <<
" k1= " << k1 <<
" totalhep17count5= " << totalhep17count5 << endl;
646 cout <<
" k1= " << k1 <<
" totalhep17count6= " << totalhep17count6 << endl;
647 cout <<
" k1= " << k1 <<
" totalhep17count7= " << totalhep17count7 << endl;
652 Int_t depthAVERAGEcount = 0;
653 for (
int jjj = 0; jjj < nx; jjj++) {
654 for (
int kkk = 0; kkk < ny; kkk++) {
657 depthAVERAGEcount = 4 * (jjj - 57) + (kkk - 64);
658 if (mapRATIOD20[jjj][kkk] != 0) {
659 NotEmptyDepthes->Fill(
float(depthAVERAGEcount));
661 cout <<
"****aver per depthes********* phi = " << kkk <<
" RunIndex = " << k1 <<
" eta = " << jjj
662 <<
" #entries = " << mapRATIOD20[jjj][kkk] << endl;
663 mapRATIOD2[jjj][kkk] /= mapRATIOD20[jjj][kkk];
665 cout <<
"****aver per depthes********* phi = " << jjj <<
" RunIndex = " << k1 <<
" eta = " << jjj
666 <<
" Nphi = " << mapRATIOD20[jjj][kkk] << endl;
675 cout <<
"* to be printed once only CHOCK IT please ************ kmm = " << kmm << endl;
678 for (
int jjj = 0; jjj < nx; jjj++) {
679 for (
int kkk = 0; kkk < ny; kkk++) {
691 for (
int jjj = 0; jjj < nx; jjj++) {
692 for (
int kkk = 0; kkk < ny; kkk++) {
694 GSMRATIOD2[k1][jjj][kkk] = mapRATIOD2[jjj][kkk] /
normalization[jjj][kkk];
696 if (GSMRATIOD2[k1][jjj][kkk] < RrangeMAX && GSMRATIOD2[k1][jjj][kkk] > RrangeMIN) {
697 gainkoeff->Fill(GSMRATIOD2[k1][jjj][kkk]);
698 gainkoeff0->Fill(GSMRATIOD2[k1][jjj][kkk]);
699 gainkoeff9->Fill(GSMRATIOD2[k1][jjj][kkk]);
705 GOODruns->Fill(
float(k1));
707 if (GSMRATIOD2[k1][jjj][kkk] > 0.)
708 BADruns->Fill(
float(k1));
723 for (
int jjj = 0; jjj <= 82; jjj++) {
724 for (
int kkk = 0; kkk <= 72; kkk++) {
725 mapRATIOD2[jjj][kkk] = 0.;
726 mapRATIOD20[jjj][kkk] = 0.;
727 for (
int iii = 0; iii < NDEP; iii++) {
728 mapRATIO[iii][jjj][kkk] = 0.;
743 cout <<
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! DONE: last LED run READ " << endl;
757 cout <<
"**** **** **** **** **** Draw Dependencies: *** " << endl;
760 Int_t
Method = NMethodsStart;
761 while (
Method < NMethodsToUse + 1) {
763 cout <<
" **** START Method " <<
Method << endl;
766 cout <<
"****Draw 0 Dependencies: <Aijk> for each event and all LED runs *** " << endl;
770 gStyle->SetOptStat(101110);
771 Ceff1D->SetMarkerStyle(20);
772 Ceff1D->SetMarkerSize(0.4);
773 Ceff1D->GetYaxis()->SetLabelSize(0.04);
774 Ceff1D->SetTitle(
"all runs & channels");
775 Ceff1D->SetXTitle(
"<Aijk>");
776 Ceff1D->SetYTitle(
"N");
777 Ceff1D->SetMarkerColor(4);
778 Ceff1D->SetLineColor(4);
784 cout <<
"****Draw 1 Dependencies: <Aijk> for each event and all LED runs ZOOM *** " << endl;
788 gStyle->SetOptStat(101110);
790 Seff1D->SetMarkerStyle(20);
791 Seff1D->SetMarkerSize(0.4);
792 Seff1D->GetYaxis()->SetLabelSize(0.04);
793 Seff1D->SetTitle(
"ZOOM all runs & channels");
794 Seff1D->SetXTitle(
"<Aijk> ZOOM ");
795 Seff1D->SetYTitle(
"N");
796 Seff1D->SetMarkerColor(4);
797 Seff1D->SetLineColor(4);
804 cout <<
"****Draw 2 Dependencies: GSM ratio vs days *** " << endl;
805 for (
int k1 = 0; k1 < NP; k1++) {
811 TPad*
pad1 =
new TPad(
"pad1",
"This is pad1", 0.02, 0.02, 0.99, 0.99, 0);
814 pad1->Range(-0.255174, -19.25, 2.29657, -6.75);
818 pad1->GetFrame()->SetFillColor(0);
823 Int_t colorlines = 0;
824 Int_t generalcount = 0;
827 for (
int jjj = 0; jjj < 82; jjj++) {
828 for (
int kkk = 0; kkk < 72; kkk++) {
830 for (
int k1 = 0; k1 < NP; k1++) {
831 if (GSMRATIOD2[k1][jjj][kkk] != 0) {
834 if (GSMRATIOD2[k1][jjj][kkk] < RrangeMAX && GSMRATIOD2[k1][jjj][kkk] > RrangeMIN) {
838 YY[sscount] = GSMRATIOD2[k1][jjj][kkk];
839 XXX[sscount] =
XX[k1];
840 indWAS[sscount] = k1;
841 mapBADchannels->Fill(
double(jjj) - 42.,
double(kkk) - 1., GSMRATIOD2[k1][jjj][kkk]);
842 mapBADchannels0->Fill(
double(jjj) - 42.,
double(kkk) - 1., 1.);
849 Int_t MMcount = sscount + 1;
853 for (
int k1 = 0; k1 < MMcount; k1++) {
854 cout <<
"**** All GOOD runs: indWAS[k1](1,..) = " << indWAS[k1] + 1 <<
" XXX[k1]+1 = " << XXX[k1] + 1
857 gr1 =
new TGraph(MMcount, XXX,
YY);
858 colorlines = generalcount / 5. + 2;
859 gr1->SetLineColor(colorlines);
860 gr1->SetMarkerColor(colorlines);
861 gr1->SetMarkerStyle(20);
862 gr1->SetMarkerSize(1.2);
863 gr1->SetFillStyle(0);
864 gr1->GetXaxis()->SetTitle(
"days");
865 gr1->GetYaxis()->SetTitle(
"R");
874 TLegend leg(xx1, yy1, xx2, yy2,
"HO: R vs t(days)");
877 leg.SetBorderSize(1);
878 leg.DrawClone(
"Same");
899 cout <<
"****Draw 3 Dependencies: 2D channels *** " << endl;
900 TH2F* Cdepth2hbff = (TH2F*)mapBADchannels->Clone(
"Cdepth2hbff");
901 Cdepth2hbff->Divide(mapBADchannels, mapBADchannels0, 1, 1,
"B");
902 Cdepth2hbff->Sumw2();
905 gStyle->SetOptStat(0000000);
906 Cdepth2hbff->SetMarkerStyle(20);
907 Cdepth2hbff->SetMarkerSize(0.4);
908 Cdepth2hbff->GetYaxis()->SetLabelSize(0.04);
909 Cdepth2hbff->SetTitle(
"within R & Weighted by R");
910 Cdepth2hbff->SetXTitle(
"#eta \b");
911 Cdepth2hbff->SetYTitle(
"#phi \b");
912 Cdepth2hbff->SetMarkerColor(4);
913 Cdepth2hbff->SetLineColor(4);
914 Cdepth2hbff->Draw(
"COLZ");
918 cout <<
"****Draw 4 Dependencies: gains LED runs *** " << endl;
923 gStyle->SetOptStat(1100);
925 gainkoeff->SetMarkerStyle(20);
926 gainkoeff->SetMarkerSize(0.4);
927 gainkoeff->GetYaxis()->SetLabelSize(0.04);
928 gainkoeff->SetXTitle(
"gains");
929 gainkoeff->SetYTitle(
"N");
930 gainkoeff->SetMarkerColor(4);
931 gainkoeff->SetLineColor(4);
933 gainkoeff->Draw(
"PL");
937 cout <<
"****Draw 5 Dependencies: gains LED runs *** " << endl;
942 gStyle->SetOptStat(1100);
944 gainkoeff9->SetMarkerStyle(20);
945 gainkoeff9->SetMarkerSize(0.4);
946 gainkoeff9->GetYaxis()->SetLabelSize(0.04);
947 gainkoeff9->SetXTitle(
"gains");
948 gainkoeff9->SetYTitle(
"N");
949 gainkoeff9->SetMarkerColor(4);
950 gainkoeff9->SetLineColor(4);
952 gainkoeff9->Draw(
"PL");
956 cout <<
"****Draw 6 Dependencies: gains LED runs *** " << endl;
961 gStyle->SetOptStat(1100);
963 gainkoeff0->SetMarkerStyle(20);
964 gainkoeff0->SetMarkerSize(0.4);
965 gainkoeff0->GetYaxis()->SetLabelSize(0.04);
966 gainkoeff0->SetXTitle(
"gains");
967 gainkoeff0->SetYTitle(
"N");
968 gainkoeff0->SetMarkerColor(4);
969 gainkoeff0->SetLineColor(4);
971 gainkoeff0->Draw(
"PL");
975 cout <<
"****Draw 7 Dependencies: BADruns *** " << endl;
979 gPad->SetLogy(kFALSE);
980 gStyle->SetOptStat(101110);
981 BADruns->SetMarkerStyle(20);
982 BADruns->SetMarkerSize(0.4);
983 BADruns->GetYaxis()->SetLabelSize(0.04);
984 BADruns->SetTitle(
"#channels outside Rrange VS iRun");
985 BADruns->SetXTitle(
"iRun");
986 BADruns->SetYTitle(
"#channels");
987 BADruns->SetMarkerColor(4);
988 BADruns->SetLineColor(4);
993 int cx = BADruns->GetXaxis()->GetNbins();
994 cout <<
"***** ************* Number of runs w/ R outside unit-range = " << cx << endl;
996 for (
int jjj = 1; jjj <= cx; jjj++) {
997 if (BADruns->GetBinContent(jjj) > 200.) {
998 cout <<
"BADruns w/ content>60: jjj= " << jjj <<
" run= " << LEDruns[jjj - 1]
999 <<
" R ouside unit-range for # channels= " << BADruns->GetBinContent(jjj) << endl;
1004 cout <<
"BADruns w/ content>60 nbadruns= " << nbadruns << endl;
1010 cout <<
"****Draw 8 Dependencies: Goodruns *** " << endl;
1014 gStyle->SetOptStat(101110);
1015 GOODruns->SetMarkerStyle(20);
1016 GOODruns->SetMarkerSize(0.4);
1017 GOODruns->GetYaxis()->SetLabelSize(0.04);
1018 GOODruns->SetTitle(
"#channels inside Rrange VS iRun");
1019 GOODruns->SetXTitle(
"iRun");
1020 GOODruns->SetYTitle(
"#channels");
1021 GOODruns->SetMarkerColor(4);
1022 GOODruns->SetLineColor(4);
1024 GOODruns->Draw(
"PL");
1027 int cx = GOODruns->GetXaxis()->GetNbins();
1028 cout <<
"************* cx = " << cx << endl;
1029 for (
int jjj = 0; jjj <= cx; jjj++) {
1032 if (GOODruns->GetBinContent(jjj) > 1400.)
1033 cout <<
"GOODruns: k1(0,...)= " << jjj
1034 <<
" GOODruns->GetBinContent(jjj)= " << GOODruns->GetBinContent(jjj) << endl;
1041 cout <<
"****Draw 9 Dependencies: depthes with zero A *** " << endl;
1044 gPad->SetLogy(kFALSE);
1045 gStyle->SetOptStat(1110000);
1046 NotEmptyDepthes->SetMarkerStyle(20);
1047 NotEmptyDepthes->SetMarkerSize(0.4);
1048 NotEmptyDepthes->GetYaxis()->SetLabelSize(0.04);
1049 NotEmptyDepthes->SetTitle(
"# Not Empty Channels in etq-phi projection");
1050 NotEmptyDepthes->SetXTitle(
"4*(eta-57)+(phi-64)");
1051 NotEmptyDepthes->SetYTitle(
"N");
1052 NotEmptyDepthes->SetMarkerColor(4);
1053 NotEmptyDepthes->SetLineColor(4);
1055 NotEmptyDepthes->Draw(
"PL");
1059 cout <<
"****Draw 10 Dependencies: Aijk for each event and all LED runs *** " << endl;
1072 gStyle->SetOptStat(101110);
1074 Aeff1D->SetMarkerStyle(20);
1075 Aeff1D->SetMarkerSize(0.4);
1076 Aeff1D->GetYaxis()->SetLabelSize(0.04);
1077 Aeff1D->SetTitle(
"all runs & events& channels");
1078 Aeff1D->SetXTitle(
"Aijk");
1079 Aeff1D->SetYTitle(
"N");
1080 Aeff1D->SetMarkerColor(4);
1081 Aeff1D->SetLineColor(4);
1084 Aeff1D->SetMinimum(0.8);
1092 cout <<
"****Draw 11 <A>: 2D Depthes1,2,3,4 *** " << endl;
1120 mapchannelsdepth4->SetStats(0);
1121 mapchannelsdepth4->SetTitle(
"<A> Depth4");
1122 mapchannelsdepth4->SetXTitle(
"#eta \b");
1123 mapchannelsdepth4->SetYTitle(
"#phi \b");
1124 mapchannelsdepth4->Draw(
"COLZ");
1130 cout <<
"****Draw 12 not used yet *** " << endl;
1147 cout <<
"****Draw 13 function, fC *** " << endl;
1153 double c0 = 1.000000;
1154 double b1 = 2.71238e-05;
1155 double a2 = 1.32877e-10;
1157 Double_t
x[
n],
y[
n];
1158 for (Int_t
i = 0;
i <
n;
i++) {
1159 x[
i] = (
i + 1) * 20000.;
1164 TGraph* gr =
new TGraph(
n,
x,
y);
1189 TString fdir =
"testamt5gsmHO2018/";
1193 cout <<
"****PLOT " <<
Method <<
" drawn **** " << endl;
static constexpr float b1