#include "DrawModule.C" //------------------ // DrawModule_LAYERS22222_SECTORS11111 //------------------ void DrawModule_LAYERS22222_SECTORS11111(void) { TColor::CreateColorWheel(); TCanvas *c1 = new TCanvas("c1", "", 600, 900); c1->Range( -10.0, 58.0, 10.0, 88.0); // Draw all cells int colors[] = {kYellow, kBlue, kGreen, kRed, kCyan, kMagenta, kSpring, kAzure}; int Ncolors = 8; for(int isector=1; isector<=4; isector++){ int cidx = ((isector-1)%2)*2; DrawCell(1, 2, isector, isector, colors[cidx+0], true); DrawCell(3, 4, isector, isector, colors[cidx+1], true); DrawCell(5, 6, isector, isector, colors[cidx+0], true); DrawCell(7, 8, isector, isector, colors[cidx+1], true); DrawCell(9,10, isector, isector, colors[cidx+0], true); } // Draw SiPM outline for all cells for(int ilayer=1; ilayer<=10; ilayer++){ for(int isector=1; isector<=4; isector++){ DrawCell(ilayer, ilayer, isector, isector); } } // Draw outline around summed cells for(int isector=1; isector<=4; isector++){ int cidx = ((isector-1)%2)*2; DrawCell(1, 2, isector, isector, kBlack); DrawCell(3, 4, isector, isector, kBlack); DrawCell(5, 6, isector, isector, kBlack); DrawCell(7, 8, isector, isector, kBlack); DrawCell(9, 10, isector, isector, kBlack); } // Draw Label TLatex *lab = new TLatex(0.0, 62.5, "LAYERS22222_SECTORS11111"); lab->SetTextAlign(22); lab->SetTextSize(0.06); lab->Draw(); c1->SaveAs("LAYERS22222_SECTORS11111.pdf"); c1->SaveAs("LAYERS22222_SECTORS11111.png"); }