GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
Globals.cxx
Go to the documentation of this file.
1#include "Globals.h"
2
4{
5 /// function to read user defined options first from the .grsirc file in $GRSISYS, then the .grsirc file in $HOME
6 std::string path = getenv("GRSISYS"); // Finds the GRSISYS path to be used by other parts of the grsisort code
7 if(path.length() > 0) {
8 path += "/";
9 }
10 // Read in grsirc in the GRSISYS directory to set user defined options on grsisort startup
11 path += ".grsirc";
12 gEnv->ReadFile(path.c_str(), kEnvChange);
13 // read from home directory for user-specific settings (in case $GRSISYS is a multi-user installation)
14 path = getenv("HOME"); // Finds the HOME path to be used by other parts of the grsisort code
15 if(path.length() > 0) {
16 path += "/";
17 }
18 // Read in grsirc in the HOME directory to set user defined options on grsisort startup - these overwrite previous settings
19 path += ".grsirc";
20 gEnv->ReadFile(path.c_str(), kEnvChange);
21}
void SetGRSIEnv()
Definition Globals.cxx:3