#include "TCanvas.h" #include "TPolyLine.h" #include "TCrown.h" void aliceScheme(){ const Int_t n=8+1; Float_t x[n] = {0.35,0.65,0.8,0.8,0.65,0.35,0.2,0.2,0.35}; Float_t y[n] = {0.2,0.2,0.35,0.65,0.8,0.8,0.65,0.35,0.2}; // Float_t x1[n] = {0.35,0.65,0.75,0.75,0.65,0.35,0.25,0.25,0.35}; // Float_t y1[n] = {0.25,0.25,0.35,0.65,0.75,0.75,0.65,0.35,0.25}; Float_t x1[n] = {0.4,0.6,0.7,0.7,0.6,0.4,0.3,0.3,0.4}; Float_t y1[n] = {0.3,0.3,0.4,0.6,0.7,0.7,0.6,0.4,0.3}; TCanvas *c = new TCanvas("c", "Canvas",700,700); TPolyLine *polyLine = new TPolyLine(n, x, y, "F"); TPolyLine *polyLine1 = new TPolyLine(n, x1, y1, "F"); polyLine->SetLineColor(kRed-7); polyLine->SetFillColor(kRed-7); polyLine1->SetFillColor(0); polyLine->SetFillStyle(1001); polyLine->DrawClone("f"); polyLine1->DrawClone("fsame"); TCrown *cr1its = new TCrown(.5,.5,.005,.02); cr1its->SetLineStyle(1); cr1its->SetFillColor(kBlue-5); cr1its->SetLineColor(kBlue-5); cr1its->DrawClone("same"); TCrown *cr1tpc = new TCrown(.5,.5,.04,.12); cr1tpc->SetLineStyle(1); cr1tpc->SetLineColor(42); cr1tpc->SetFillColor(42); cr1tpc->DrawClone("same"); TCrown *cr1trd = new TCrown(.5,.5,.135,.155); cr1trd->SetLineStyle(1); cr1trd->SetLineColor(kAzure+5); cr1trd->SetFillColor(kAzure+5); cr1trd->DrawClone("same"); TCrown *cr1tof = new TCrown(.5,.5,.165,.175); cr1tof->SetLineStyle(1); cr1tof->SetLineColor(kOrange+2); cr1tof->SetFillColor(kOrange+2); cr1tof->DrawClone("same"); TCrown *cr1emcal = new TCrown(.5,.5,.185,.195,-90,-45); cr1emcal->SetLineStyle(1); cr1emcal->SetFillColor(kGreen-5); cr1emcal->SetLineColor(kGreen-5); cr1emcal->DrawClone("same"); TCrown *cr1hmpid = new TCrown(.5,.5,.185,.195,80,170); cr1hmpid->SetLineStyle(1); cr1hmpid->SetLineColor(kMagenta-5); cr1hmpid->SetFillColor(kMagenta-5); cr1hmpid->DrawClone("same"); }