![]() |
SynAPSE
0.6.0
Synergistic Analysis of Phase Space Evolution
|
Imports, stores and manages the global variables. More...
#include <Globals.hh>
Public Member Functions | |
| const std::vector< std::string > & | GetDataFiles () const |
| Returns the list of data files. More... | |
| const GeometryHandler & | GetGeometryHandler () const |
| Returns the geometry handelr. More... | |
| const Global & | operator() (const std::string &var) const |
| Returns the requested global variable. More... | |
| const Global & | operator[] (const std::string &var) const |
| Returns the requested global variable. More... | |
| void | Print (Pitch::errorLevel level=Pitch::info) const |
| Print the list of datacards and their value. More... | |
Static Public Member Functions | |
| static Globals & | GetInstance (int argc=0, char **argv=NULL) |
| Returns the single instance of the class, initialize if not yet done. More... | |
Private Member Functions | |
| Globals (int argc, char **argv) | |
| Command line construct, takes extra arguments from the command line. More... | |
| Globals (const Globals &globals) | |
| Copy constructor, not implemented for singleton. More... | |
| Globals & | operator= (const Globals &globals) |
| Equality operator, not implemented for singleton. More... | |
| ~Globals () | |
| Destructor. More... | |
| void | LoadFile (std::string filename) |
| Loads the global constants from a datacards file. More... | |
| void | LoadCommandLine (int argc, char **argv) |
| Load the extra arguments from the command line arguments. More... | |
| void | LoadGeometry () |
| Loads the geometry handler. More... | |
| void | SetDefaultStyle () |
| Sets the default style of the ROOT plots. More... | |
Private Attributes | |
| std::map< std::string, Global > | _globals |
| Dictionary of global variables. More... | |
| std::vector< std::string > | _data_files |
| List of runs (remaining arguments) More... | |
| GeometryHandler | _geoh |
| Geometry handler. More... | |
Imports, stores and manages the global variables.
It imports and stores the global reconstruction variables in a dictionary. The variables can then be exported as any type requested by the code.
This is a singleton class. It is intialized once the first time it is instentiated and is called by the other objects as is.
|
private |
Command line construct, takes extra arguments from the command line.
| argc | Number of command line arguments |
| argv | List of command line arguments |
|
private |
Copy constructor, not implemented for singleton.
|
private |
Destructor.
|
inline |
Returns the list of data files.
|
inline |
Returns the geometry handelr.
|
static |
Returns the single instance of the class, initialize if not yet done.
| argc | Number of command line arguments |
| argv | List of command line arguments |
|
private |
Load the extra arguments from the command line arguments.
| argc | Number of command line arguments |
| argv | List of command line arguments |
|
private |
Loads the global constants from a datacards file.
|
private |
Loads the geometry handler.
| const Global & Globals::operator() | ( | const std::string & | var | ) | const |
Returns the requested global variable.
Equality operator, not implemented for singleton.
| const Global & Globals::operator[] | ( | const std::string & | var | ) | const |
Returns the requested global variable.
| void Globals::Print | ( | Pitch::errorLevel | level = Pitch::info | ) | const |
Print the list of datacards and their value.
|
private |
Sets the default style of the ROOT plots.
|
private |
List of runs (remaining arguments)
|
private |
Geometry handler.
|
private |
Dictionary of global variables.
1.8.6