5 gSystem->Load(
"StEpdUtil");
9 TCanvas* cEast =
new TCanvas(
"EastCan",
"EastCan",1000,1000);
11 TH2D* hEast =
new TH2D(
"East",
"East",500,-100,100,500,-100,100);
15 for (
short tileId=-18; tileId<0; tileId++){
16 cout <<
"tileID = " << tileId << endl;
17 unsigned short tid = abs(tileId);
21 cout << cent.X() <<
" " << cent.Y() <<
" " << cent.Z() << endl;
23 TText* txt =
new TText(cent.X(),cent.Y(),Form(
"%d",tileId));
24 txt->SetTextSize(.02);
25 txt->SetTextAlign(22);
32 TPolyLine* pline =
new TPolyLine(7,x,y);
33 pline->SetLineColor(4);
34 pline->SetLineWidth(2);
38 unsigned short pmtNumber = Bgeo->
PmtOfTile(tid);
39 TText* Ptxt =
new TText(cent.X(),cent.Y()-5.0,Form(
"%d",pmtNumber));
40 Ptxt->SetTextSize(0.01);
41 Ptxt->SetTextColor(2);
unsigned short PmtOfTile(unsigned short tileNumber)
TVector3 TileCenter(short tileId)
void GetCorners(short tileId, double *x, double *y)