//____________________________________________________________________ void DrawTitlePage(const TCollection* c) { fBody->cd(); Double_t y = .7; TLatex* ltx = new TLatex(.5, y, "AOD #rightarrow P(#it{N}_{ch} )"); ltx->SetTextSize(0.07); ltx->SetTextFont(62); ltx->SetTextAlign(22); ltx->SetNDC(); ltx->Draw(); Bool_t mc = GetObject(c, "mcVertex", false) != 0; if (mc) { y -= 0.05; TLatex* sub = new TLatex(.5, y, "(Simulation input)"); sub->SetTextSize(0.04); sub->SetTextFont(42); sub->SetTextAlign(22); sub->SetNDC(); sub->Draw(); } Double_t save = fParName->GetTextSize(); fParName->SetTextSize(0.03); fParVal->SetTextSize(0.03); y = .6; UShort_t sys; UShort_t sNN; ULong_t trig; Double_t minIpZ; Double_t maxIpZ; GetParameter(c, "sys", sys); GetParameter(c, "sNN", sNN); GetParameter(c, "trigger", trig); GetParameter(c, "minIpZ", minIpZ); GetParameter(c, "maxIpZ", maxIpZ); TString tT; TriggerString(trig, tT); DrawParameter(y, "Trigger", tT); TString tS; SysString(sys, tS); DrawParameter(y, "System", tS); TString tE; SNNString(sNN, tE); DrawParameter(y, "#sqrt{s_{NN}}", tE); DrawParameter(y, "IP_{z} range", Form("%+5.2fcm - %+5.2fcm", minIpZ, maxIpZ)); PrintCanvas("Title page"); fParName->SetTextSize(save); fParVal->SetTextSize(save); }
void Window_EquipStatus::Refresh() { if (dirty) { contents->Clear(); int y_offset; if (draw_actorname) { y_offset = 18; DrawActorName(Game_Actors::GetActor(actor_id), 0, 2); } else { y_offset = 2; } for (int i = 0; i < 4; ++i) { DrawParameter(0, y_offset + ((12 + 4) * i), i); } dirty = false; } }