![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Stores the MICE run information to be printed as TPaveText. More...
#include <InfoBox.hh>
Public Member Functions | |
| 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. More... | |
| InfoBox (const InfoBox &ib) | |
| Copy constructor. More... | |
| InfoBox & | operator= (const InfoBox &ib) |
| Equality operator. More... | |
| ~InfoBox () | |
| Destructor. More... | |
| void | SetPosition (const std::string &pos, const double alpha=.02, const double beta=.16) |
| Updates the position of the info box. More... | |
| void | SetPosition (const double &xmin, const double &ymin, const double &xmax, const double &ymax) |
| Updates the position of the info box. More... | |
| void | SetOpacity (const double &opacity) |
| Sets the opacity of the TPaveText (0 is transparent, 1 is fully opaque) More... | |
| void | Draw () |
| Draws the info box on the current canvas. More... | |
Private Attributes | |
| TPaveText * | _text |
| Info box. More... | |
| std::string | _type |
| Type of data represented. More... | |
| std::string | _maus |
| Version of MAUS. More... | |
| std::string | _run |
| Run tag. More... | |
| std::string | _cycle |
| ISIS user cycle. More... | |
Stores the MICE run information to be printed as TPaveText.
Defines the style of the MICE information text box. Sets the default position of the information box, which may be overwritten if necessary.
| InfoBox::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.
| type | Type of data presented: [simulated], Preliminary, etc. |
| maus | Version of MAUS used |
| run | Run simulated or reconstructed |
| cycle | ISIS user cycle tag |
| InfoBox::InfoBox | ( | const InfoBox & | ib | ) |
Copy constructor.
| InfoBox::~InfoBox | ( | ) |
Destructor.
| void InfoBox::Draw | ( | ) |
Draws the info box on the current canvas.
| void InfoBox::SetOpacity | ( | const double & | opacity | ) |
Sets the opacity of the TPaveText (0 is transparent, 1 is fully opaque)
| opacity | Value of the opacity (from 0 to 1) |
| void InfoBox::SetPosition | ( | const std::string & | pos, |
| const double | alpha = .02, |
||
| const double | beta = .16 |
||
| ) |
Updates the position of the info box.
| pos | Corner in which to draw the info box (tl, tr, bl, br) |
| alpha | Relative margin from the edges of the TCanvas [%] |
| beta | Relative size [%] |
| void InfoBox::SetPosition | ( | const double & | xmin, |
| const double & | ymin, | ||
| const double & | xmax, | ||
| const double & | ymax | ||
| ) |
Updates the position of the info box.
| xmin | Minimum x position in NDC |
| ymin | Minimum y position in NDC |
| xmax | Maximum x position in NDC |
| ymax | Maximum y position in NDC |
|
private |
ISIS user cycle.
|
private |
Version of MAUS.
|
private |
Run tag.
|
private |
Info box.
|
private |
Type of data represented.
1.8.6