Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OnlMonDraw.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file OnlMonDraw.cc
1 #include "OnlMonDraw.h"
2 
3 #include <TPad.h>
4 #include <TText.h>
5 
6 #include <iostream>
7 
9  : ThisName(name)
10 {
11 }
12 
13 int OnlMonDraw::Draw(const std::string & /* what */)
14 {
15  std::cout << "Draw not implemented by daughter class" << std::endl;
16  return -1;
17 }
18 
19 int OnlMonDraw::SavePlot(const std::string & /* what */, const std::string & /* type */)
20 {
21  std::cout << "SavePlot not implemented by daughter class" << std::endl;
22  return -1;
23 }
24 
25 int OnlMonDraw::MakePS(const std::string & /* what */)
26 {
27  std::cout << "MakePS not implemented by daughter class" << std::endl;
28  return -1;
29 }
30 
31 int OnlMonDraw::MakeHtml(const std::string & /* what */)
32 {
33  std::cout << "MakeHtml not implemented by daughter class" << std::endl;
34  return -1;
35 }
36 
37 int OnlMonDraw::DrawDeadServer(TPad *transparentpad)
38 {
39  transparentpad->cd();
40  TText FatalMsg;
41  FatalMsg.SetTextFont(62);
42  FatalMsg.SetTextSize(0.1);
43  FatalMsg.SetTextColor(4);
44  FatalMsg.SetNDC(); // set to normalized coordinates
45  FatalMsg.SetTextAlign(23); // center/top alignment
46  FatalMsg.DrawText(0.5, 0.9, Name().c_str());
47  FatalMsg.SetTextAlign(22); // center/center alignment
48  FatalMsg.DrawText(0.5, 0.5, "SERVER");
49  FatalMsg.SetTextAlign(21); // center/bottom alignment
50  FatalMsg.DrawText(0.5, 0.1, "DEAD");
51  transparentpad->Update();
52  return 0;
53 }