Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Canvas.cxx

Go to the documentation of this file.
00001 {
00002 
00003 TCanvas *fourplanes = new TCanvas("fourplanes","fourplanes",0,0,600,750);
00004 TPad *pixels[4][3][16];
00005 TPad *pmts[4][3];
00006 TPad *boxes[4];
00007 
00008 boxes[3] = new TPad("box_0","box_0",0.10,0.01,0.99,0.20,19);
00009 boxes[2] = new TPad("box_0","box_0",0.10,0.26,0.99,0.45,19);
00010 boxes[1] = new TPad("box_0","box_0",0.10,0.51,0.99,0.70,19);
00011 boxes[0] = new TPad("box_0","box_0",0.10,0.76,0.99,0.95,19);
00012 
00013 boxes[0]->Draw();
00014 boxes[1]->Draw();
00015 boxes[2]->Draw();
00016 boxes[3]->Draw();
00017 
00018 boxes[0]->Divide(3,1);
00019 boxes[1]->Divide(3,1);
00020 boxes[2]->Divide(3,1);
00021 boxes[3]->Divide(3,1);
00022 
00023 
00024 for(Int_t i=0;i<4;i++){
00025   for(Int_t j=0;j<3;j++){
00026     boxes[i]->cd(j+1);
00027      pmts[i][j] = &gPad;
00028      pmts[i][j]->Divide(4,4);
00029      for(Int_t k=0;k<16;k++){
00030        pmts[i][j]->cd(k+1);
00031        pixels[i][j][k]=gPad;
00032      }
00033   }
00034 }
00035 
00036 pixels[1][1][1]->cd();
00037 TEllipse *size = new TEllipse(0.5,0.5,0.4,0.4);
00038 size->SetFillColor(1);
00039 size->Draw();
00040 
00041 
00042 }

Generated on Mon Feb 15 11:06:30 2010 for loon by  doxygen 1.3.9.1