5 gSystem->Load(
"StEpdUtil");
8 TCanvas* cEast =
new TCanvas(
"EastCan",
"EastCan",600,600);
10 TH2D* hEast =
new TH2D(
"East",
"East",500,-100,100,500,-100,100);
17 for (Short_t PP=1; PP<=12; PP++){
18 for (Short_t
TT=1;
TT<=31;
TT++){
21 geo->GetCorners(PP,
TT,EW,&nCorners,x,y);
22 x[nCorners]=x[0]; y[nCorners]=y[0];
23 TPolyLine* pline =
new TPolyLine(nCorners+1,x,y);
28 for (Int_t nPoint=0; nPoint<300; nPoint++){
29 TVector3 point = geo->RandomPointOnTile(PP,TT,EW);
30 hEast->Fill(point.X(),point.Y());
35 if ((PP%2==0)&&(TT%2==0)){
36 Double_t xcent = geo->TileCenter(PP,TT,EW).X();
37 Double_t ycent = geo->TileCenter(PP,TT,EW).Y();
38 TText* lab =
new TText(xcent,ycent,Form(
"Row %d",geo->Row(PP,TT,EW)));
39 lab->SetTextAlign(22); lab->SetTextSize(0.01); lab->SetTextColor(2);