Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions StRoot/macros/rootlogon.C
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
// set FloatPointException trap
bool star_rootlogon_fpe = TString(gSystem->Getenv("STAR_VERSION")) == ".DEV";
const char* star_rootlogon_fpe_env = gSystem->Getenv("STARFPE");

if (star_rootlogon_fpe_env) {
if (strcmp(star_rootlogon_fpe_env,"YES")==0) star_rootlogon_fpe=true;
if (strcmp(star_rootlogon_fpe_env,"NO" )==0) star_rootlogon_fpe=false;
}
if (star_rootlogon_fpe) {
gSystem->SetFPEMask(kInvalid | kDivByZero | kOverflow );
printf("*** Floating Point Exception is ON ***\n");
} else {
printf("*** Floating Point Exception is OFF ***\n");
}

gSystem->Load("libStarClassLibrary");
gSystem->Load("libGeom");
gSystem->Load("libTable");
Expand Down