38 fZRSectionTolerance[1] = 0.1;
39 fZRSectionTolerance[2] = fZRSectionTolerance[0] = 1.2;
45 Int_t iXYSeq[4] = {0,2,6,4};
46 for (Int_t i = 0; i < 4; i++) {
48 for (Int_t j = 0; j < 3; j++) {
49 Pxy[3*i+j] = (
P[3*iXYSeq[i]+j] +
P[3*(iXYSeq[i]+1)+j] )/2.0;
57 SetXYPoint(&
P[3*i], &
P[3*(i+4)], &Pxy[3*i], -ecXYPointZ);
68 Int_t iXYSeq[5] = {8,9,1,2,3};
69 for (Int_t i = 0; i < 5; i++) {
71 SetXYPoint(&
P[3*iXYSeq[i]], &
P[3*(iXYSeq[i]+4)], &Pxy[3*i], ecXYPointZ);
74 SetXYPoint(&
P[3*iXYSeq[i]], &
P[3*(iXYSeq[i]+4)], &Pxy[3*i], -ecXYPointZ);
86 Int_t iSeq[8] = {0,3,1,2,5,6,4,7};
87 for (Int_t i = 0; i < 4; i++) {
88 for (Int_t j = 0; j < 3; j++) {
89 Pzr[3*i+j] = (
P[3*iSeq[2*i]+j] +
P[3*iSeq[2*i+1]+j])/2.0;
96 fCrystalZRFired =
new BesPolygon2D(TString(name)+TString(
"zr"),
title, 4, &Pzr[0]);
114 if (fPhiMin > fPhiMax && fPhiMin - fPhiMax < 180.0)
116 Double_t phiTemp = fPhiMin;
121 if (fPhiMax > fPhiMin && fPhiMax - fPhiMin > 180.0)
123 Double_t phiTemp = fPhiMin;
134 for (Int_t i = 0; i < 4; i++) {
136 SetZRPoint(&
P[3*i], &
P[3*(i+4)], &Pside[3*i], brZRPointR);
147 for (Int_t i = 0; i < 5; i++) {
307 TString opt = option;
314 fCrystalXY->SetLineColor(lcCrystal);
315 fCrystalXY->SetLineWidth(lwCrystal);
316 fCrystalXY->SetFillColor(fcCrystal);
317 fCrystalXY->SetFillStyle(fsCrystal);
322 fCrystalXY->SetFillStyle(fsCrystalTrans);
324 if (fCrystalXYFired) {
325 fCrystalXYFired->SetLineColor(lcCrystalFired);
326 fCrystalXYFired->SetLineWidth(lwCrystalFired);
327 fCrystalXYFired->SetFillColor(fcCrystalFired);
328 fCrystalXYFired->SetFillStyle(fsCrystalFired);
334 fCrystalXY->SetLineColor(lcCrystalHL);
335 fCrystalXY->SetLineWidth(lwCrystalHL);
336 fCrystalXY->SetFillColor(fcCrystalHL);
337 fCrystalXY->SetFillStyle(fsCrystalHL);
339 if (fCrystalXYFired) {
340 fCrystalXYFired->SetLineColor(lcCrystalFiredHL);
341 fCrystalXYFired->SetLineWidth(lwCrystalFiredHL);
342 fCrystalXYFired->SetFillColor(fcCrystalFiredHL);
343 fCrystalXYFired->SetFillStyle(fsCrystalFiredHL);
347 if ( fCrystalXY &&
IsXYVisible() ) fCrystalXY->Paint();
353 if (fCrystalXYFired) {
357 fCrystalXYFired->Restore();
358 fCrystalXYFired->SetSize(fCharge/fChargeMax);
359 fCrystalXYFired->Paint();
368 if (fCrystalZRFired) {
369 fCrystalZRFired->SetLineColor(lcCrystalFired);
370 fCrystalZRFired->SetLineWidth(lwCrystalFired);
371 fCrystalZRFired->SetFillColor(fcCrystalFired);
372 fCrystalZRFired->SetFillStyle(fsCrystalFired);
377 fCrystalZR->SetLineColor(lcCrystal);
378 fCrystalZR->SetLineWidth(lwCrystal);
379 fCrystalZR->SetFillColor(fcCrystal);
380 fCrystalZR->SetFillStyle(fsCrystal);
385 fCrystalZR->SetLineColor(lcCrystalHL);
386 fCrystalZR->SetLineWidth(lwCrystalHL);
387 fCrystalZR->SetFillColor(fcCrystalHL);
388 fCrystalZR->SetFillStyle(fsCrystalHL);
390 if (fCrystalZRFired) {
391 fCrystalZRFired->SetLineColor(lcCrystalFiredHL);
392 fCrystalZRFired->SetLineWidth(lwCrystalFiredHL);
393 fCrystalZRFired->SetFillColor(fcCrystalFiredHL);
394 fCrystalZRFired->SetFillStyle(fsCrystalFiredHL);
398 if ( fCrystalZR ) fCrystalZR->Paint();
404 if (fCrystalZRFired) {
406 fCrystalZRFired->Restore();
407 fCrystalZRFired->SetSize(fCharge/fChargeMax);
408 fCrystalZRFired->Paint();
416 if (fCrystalSideFired) {
417 fCrystalSideFired->SetLineColor(lcCrystalFired);
418 fCrystalSideFired->SetLineWidth(lwCrystalFired);
419 fCrystalSideFired->SetFillColor(fcCrystalFired);
420 fCrystalSideFired->SetFillStyle(fsCrystalFired);
425 fCrystalSide->SetLineColor(lcCrystal);
426 fCrystalSide->SetLineWidth(lwCrystal);
427 fCrystalSide->SetFillColor(fcCrystal);
428 fCrystalSide->SetFillStyle(fsCrystal);
433 fCrystalSide->SetLineColor(lcCrystalHL);
434 fCrystalSide->SetLineWidth(lwCrystalHL);
435 fCrystalSide->SetFillColor(fcCrystalHL);
436 fCrystalSide->SetFillStyle(fsCrystalHL);
438 if (fCrystalSideFired) {
439 fCrystalSideFired->SetLineColor(lcCrystalFiredHL);
440 fCrystalSideFired->SetLineWidth(lwCrystalFiredHL);
441 fCrystalSideFired->SetFillColor(fcCrystalFiredHL);
442 fCrystalSideFired->SetFillStyle(fsCrystalFiredHL);
450 if (fCrystalSideFired) {
452 fCrystalSideFired->Restore();
453 fCrystalSideFired->SetSize(fCharge/fChargeMax);
454 fCrystalSideFired->Paint();
cout<<"end eff5"<< endl;TGraph *gr1=new TGraphErrors(15, x, eff_ep, errx, err_ep);TGraph *gr2=new TGraphErrors(15, x, eff_em, errx, err_em);TGraph *gr3=new TGraphErrors(15, x, eff_ep2, errx, err_ep2);TGraph *gr4=new TGraphErrors(15, x, eff_em2, errx, err_em2);TGraph *gr5=new TGraphErrors(15, x, eff_ep3, errx, err_ep3);TGraph *gr6=new TGraphErrors(15, x, eff_em3, errx, err_em3);TGraph *gr7=new TGraphErrors(15, x, eff_ep4, errx, err_ep4);TGraph *gr8=new TGraphErrors(15, x, eff_em4, errx, err_em4);TGraph *gr9=new TGraphErrors(15, x, eff_ep5, errx, err_ep5);TGraph *gr10=new TGraphErrors(15, x, eff_em5, errx, err_em5);TCanvas *c1=new TCanvas("c1","bhabha_eff", 100, 10, 600, 400);TMultiGraph *mg=new TMultiGraph();mg-> SetTitle("bhabha_eff")