SynAPSE  0.6.0
Synergistic Analysis of Phase Space Evolution
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
InfoBox.hh
1 #ifndef INFOBOX_HH
2 #define INFOBOX_HH
3 
4 // C++ includes
5 #include <iostream>
6 #include <string>
7 
8 // ROOT includes
9 #include "TPaveText.h"
10 #include "TText.h"
11 #include "TString.h"
12 
18 class InfoBox {
19  public:
20 
28  InfoBox(const std::string type="",
29  const std::string maus="",
30  const std::string run="",
31  const std::string cycle="");
32 
34  InfoBox(const InfoBox& ib);
35 
37  InfoBox& operator=(const InfoBox& ib);
38 
40  ~InfoBox();
41 
48  void SetPosition(const std::string& pos,
49  const double alpha=.02,
50  const double beta=.16);
51 
59  void SetPosition(const double& xmin,
60  const double& ymin,
61  const double& xmax,
62  const double& ymax);
63 
68  void SetOpacity(const double& opacity);
69 
71  void Draw();
72 
73  private:
74 
75  TPaveText* _text;
76  std::string _type;
77  std::string _maus;
78  std::string _run;
79  std::string _cycle;
80 };
81 
82 #endif
void SetOpacity(const double &opacity)
Sets the opacity of the TPaveText (0 is transparent, 1 is fully opaque)
Definition: InfoBox.cc:77
void SetPosition(const std::string &pos, const double alpha=.02, const double beta=.16)
Updates the position of the info box.
Definition: InfoBox.cc:42
~InfoBox()
Destructor.
Definition: InfoBox.cc:37
std::string _cycle
ISIS user cycle.
Definition: InfoBox.hh:79
InfoBox(const std::string type="", const std::string maus="", const std::string run="", const std::string cycle="")
MAUS info box constructor, sets the necessary information.
Definition: InfoBox.cc:3
void Draw()
Draws the info box on the current canvas.
Definition: InfoBox.cc:82
InfoBox & operator=(const InfoBox &ib)
Equality operator.
Definition: InfoBox.cc:22
TPaveText * _text
Info box.
Definition: InfoBox.hh:75
std::string _maus
Version of MAUS.
Definition: InfoBox.hh:77
Stores the MICE run information to be printed as TPaveText.
Definition: InfoBox.hh:18
std::string _run
Run tag.
Definition: InfoBox.hh:78
std::string _type
Type of data represented.
Definition: InfoBox.hh:76