15 void DrawBbcOutline(
unsigned short ipmt,
short iew);
18 void SeeEpdBbcCosmics(TString filein){
20 gSystem->Load(
"StEpdUtil");
22 TFile* tfin =
new TFile(filein.Data(),
"READ");
24 TCanvas* tc =
new TCanvas(
"EpdBbcCorrel",
"EpdBbcCorrel",1200,700);
25 tc->SaveAs(
"EpdBbcCorrel.pdf[");
27 for (
short iewBBC=0; iewBBC<2; iewBBC++){
28 TString ewb = (iewBBC==0)?
"East":
"West";
29 for (
unsigned short ipmt=1; ipmt<17; ipmt++){
30 TH2D* EpdEast = (TH2D*)tfin->Get(Form(
"EpdEastWhenBbc%sPmt%dfires",ewb.Data(),ipmt));
31 tc->cd(1); EpdEast->Draw();
32 if (iewBBC==0) DrawBbcOutline(ipmt,iewBBC);
33 TH2D* EpdWest = (TH2D*)tfin->Get(Form(
"EpdWestWhenBbc%sPmt%dfires",ewb.Data(),ipmt));
34 tc->cd(2); EpdWest->Draw();
35 if (iewBBC==1) DrawBbcOutline(ipmt,iewBBC);
36 tc->SaveAs(
"EpdBbcCorrel.pdf");
39 tc->SaveAs(
"EpdBbcCorrel.pdf)");
43 void DrawBbcOutline(
unsigned short ipmt,
short iew){
46 unsigned short ntiles,tiles[2];
49 for (
int i=0; i<ntiles; i++){
53 TPolyLine* pline =
new TPolyLine(7,x,y);
54 pline->SetLineColor(kRed);
void GetTilesOfPmt(unsigned short pmtNumber, unsigned short *nTiles, unsigned short *tileNumbers)
void GetCorners(short tileId, double *x, double *y)