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
3#include "TEnv.h"
4
5std::map<std::string, uint64_t> gAddressOffset;
6
8{
9 /// function to read user defined options first from the .grsirc file in $GRSISYS, then the .grsirc file in $HOME
10 std::string path = getenv("GRSISYS"); // Finds the GRSISYS path to be used by other parts of the grsisort code
11 if(!path.empty()) {
12 path += "/";
13 }
14 // Read in grsirc in the GRSISYS directory to set user defined options on grsisort startup
15 path += ".grsirc";
16 gEnv->ReadFile(path.c_str(), kEnvChange);
17 // read from home directory for user-specific settings (in case $GRSISYS is a multi-user installation)
18 path = getenv("HOME"); // Finds the HOME path to be used by other parts of the grsisort code
19 if(!path.empty()) {
20 path += "/";
21 }
22 // Read in grsirc in the HOME directory to set user defined options on grsisort startup - these overwrite previous settings
23 path += ".grsirc";
24 gEnv->ReadFile(path.c_str(), kEnvChange);
25}
std::map< std::string, uint64_t > gAddressOffset
Definition Globals.cxx:5
void SetGRSIEnv()
Definition Globals.cxx:7