19 :TPaveText(x1,y1,x2,y2,option)
37 Int_t
n = infoCon.size();
38 Double_t margin = GetMargin();
39 Double_t dy = (1.0-margin*2)/
n;
41 Double_t coordx = 0.0;
42 Double_t coordy = 0.0;
43 for (Int_t i = 0; i <
n; i++) {
44 coordy = 1.0 - (i+1)*dy;
45 if (
n == 1) coordy = 1.0;
47 TText* tdata = AddText(coordx, coordy, infoCon[i].Data());
49 tdata->SetTextFont(42);
50 if (i == 0 &&
n > 4) {
52 tdata->SetTextFont(62);
54 tdata->SetTextColor(1);
55 tdata->SetTextAlign(12);
57 if (infoCon[i] == TString(
"Fired")) {
58 tdata->SetTextColor(kRed);
60 tdata->SetTextFont(72);
79 cout <<
"BesPaveText::SetPos, gPad does not exist" << endl;
83 Double_t
x = gPad->AbsPixeltoX(px+10);
84 Double_t y = gPad->AbsPixeltoY(py-10);
85 Double_t x1, y1, x2, y2, xNDC, yNDC;
86 gPad->GetRange(x1, y1, x2, y2);
87 xNDC = (
x-x1)/(x2-x1);
88 yNDC = (y-y1)/(y2-y1);
96 Double_t delta = 0.02;
97 if (x2 > 1.0 && y2 > 1.0) {
ClassImp(BesPaveText) BesPaveText
virtual void SetText(std::vector< TString > infoCon)
virtual void SetPos(Int_t px, Int_t py)