37 Int_t
n = infoCon.size();
38 Double_t margin = GetMargin();
39 Double_t dy = (1.0 - margin * 2) /
n;
42 if (
n == 2) dy = (1.0 - margin * 2) / 3;
44 Double_t coordx = 0.0;
45 Double_t coordy = 0.0;
46 for (Int_t i = 0; i <
n; i++) {
47 coordy = 1.0 - (i + 1) * dy;
48 if (
n == 1) coordy = 1.0;
50 TText* tdata =
AddText(coordx, coordy, infoCon[i].Data());
52 tdata->SetTextFont(42);
53 if (i == 0 &&
n > 4) {
55 tdata->SetTextFont(62);
57 tdata->SetTextColor(1);
58 tdata->SetTextAlign(12);
60 if (infoCon[i] == TString(
"Fired")) {
61 tdata->SetTextColor(kRed);
63 tdata->SetTextFont(72);
67 if (infoCon.size() == 2)
69 coordy = 1.0 - 3 * dy;
70 TText* tdata =
AddText(0.0, coordy,
"");
89 cout <<
"BesPaveText::SetPos, gPad does not exist" << endl;
93 Double_t
x = gPad->AbsPixeltoX(px+10);
94 Double_t
y = gPad->AbsPixeltoY(py-10);
95 Double_t x1, y1, x2, y2, xNDC, yNDC;
96 gPad->GetRange(x1, y1, x2, y2);
97 xNDC = (
x-x1)/(x2-x1);
98 yNDC = (
y-y1)/(y2-y1);
106 Double_t
delta = 0.02;
107 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)