#include "DrawModule.C" //------------------ // DrawModule_LAYERS334_SECTORS111 //------------------ void DrawModule_LAYERS334_SECTORS111(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, 3, isector, isector, colors[cidx+0], true); DrawCell(4, 6, isector, isector, colors[cidx+1], true); DrawCell(7, 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, 3, isector, isector, kBlack); DrawCell(4, 6, isector, isector, kBlack); DrawCell(7, 10, isector, isector, kBlack); } // Draw Label TLatex *lab = new TLatex(0.0, 62.5, "LAYERS334_SECTORS111"); lab->SetTextAlign(22); lab->SetTextSize(0.06); lab->Draw(); c1->SaveAs("LAYERS334_SECTORS111.pdf"); c1->SaveAs("LAYERS334_SECTORS111.png"); }