Configure the ROOT environment.
More...
#include "RootEnv.h"
Configure the ROOT environment.
Definition at line 14 of file RootEnv.h.
evdb::RootEnv::RootEnv |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file RootEnv.cxx.
References InterpreterConfig(), LoadClasses(), LoadIncludes(), SetStyle(), and SignalConfig().
36 TApplication* app = ROOT::GetROOT()->GetApplication();
45 TRint* rapp =
new TRint(
"TAPP",&largc, largv, 0, 0, kTRUE);
48 rapp->SetPrompt(
"evd [%d] ");
51 gROOT->SetBatch(kFALSE);
53 gSystem->Load(
"libGX11.so");
54 gVirtualX =
new TGX11(
"X11",
"X11 session");
55 new TGClient(getenv(
"DISPLAY"));
cet::coded_exception< error, detail::translate > exception
evdb::RootEnv::~RootEnv |
( |
| ) |
|
void evdb::RootEnv::InterpreterConfig |
( |
| ) |
|
|
private |
Definition at line 91 of file RootEnv.cxx.
Referenced by RootEnv().
97 gInterpreter->SaveContext();
98 gInterpreter->SaveGlobalsContext();
void evdb::RootEnv::LoadClasses |
( |
| ) |
|
|
private |
Definition at line 191 of file RootEnv.cxx.
Referenced by RootEnv().
197 gROOT->LoadClass(
"TGeometry",
"Graf3d");
198 gROOT->LoadClass(
"TTree",
"Tree");
199 gROOT->LoadClass(
"TMatrix",
"Matrix");
200 gROOT->LoadClass(
"TMinuit",
"Minuit");
201 gROOT->LoadClass(
"TPostScript",
"Postscript");
202 gROOT->LoadClass(
"TCanvas",
"Gpad");
203 gROOT->LoadClass(
"THtml",
"Html");
void evdb::RootEnv::LoadIncludes |
( |
| ) |
|
|
private |
Definition at line 132 of file RootEnv.cxx.
Referenced by RootEnv().
137 TApplication* app = gROOT->GetApplication();
141 app->ProcessLine(
"#include <iomanip>");
142 app->ProcessLine(
"#include <string>");
148 std::string mp = gROOT->GetMacroPath();
151 bool srtPrivate =
false;
152 bool srtPublic =
false;
153 p = gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
164 std::string dip =
".include ";
165 dip += gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
166 gROOT->ProcessLine(dip.c_str());
168 p = gSystem->Getenv(
"SRT_PUBLIC_CONTEXT");
177 std::string dip =
".include ";
178 dip += gSystem->Getenv(
"SRT_PUBLIC_CONTEXT");
179 gROOT->ProcessLine(dip.c_str());
182 if(srtPublic || srtPrivate){
183 gROOT->SetMacroPath(mp.c_str());
184 gSystem->SetIncludePath(ip.c_str());
int evdb::RootEnv::Run |
( |
| ) |
|
Definition at line 76 of file RootEnv.cxx.
81 TApplication* app = ROOT::GetROOT()->GetApplication();
void evdb::RootEnv::SetStyle |
( |
| ) |
|
|
private |
Definition at line 209 of file RootEnv.cxx.
Referenced by RootEnv().
211 gROOT->SetStyle(
"Plain");
214 gStyle->SetFrameLineWidth(1);
215 gStyle->SetFuncWidth(1);
216 gStyle->SetHistLineWidth(1);
218 gStyle->SetFuncColor(2);
219 gStyle->SetGridColor(18);
220 gStyle->SetGridStyle(1);
222 gStyle->SetGridWidth();
226 gStyle->SetPadTopMargin(0.08);
227 gStyle->SetPadBottomMargin(0.36);
228 gStyle->SetPadRightMargin(0.03);
229 gStyle->SetPadLeftMargin(0.10);
232 gStyle->SetTextFont(132);
233 gStyle->SetLabelFont(132,
"XYZ");
234 gStyle->SetStatFont(132);
235 gStyle->SetTitleFont(132,
"XYZ");
237 gStyle->SetStatFontSize(0.07);
238 gStyle->SetTitleFontSize(0.07);
239 gStyle->SetLabelSize(0.07,
"XYZ");
240 gStyle->SetTitleSize(0.07,
"XYZ");
241 gStyle->SetTextSize(0.07);
243 gStyle->SetStatW(0.19);
244 gStyle->SetStatX(0.90);
245 gStyle->SetStatY(0.90);
246 gStyle->SetOptTitle(0);
247 gStyle->SetOptStat(0);
250 gStyle->SetNdivisions(510,
"XYZ");
251 gStyle->SetPadTickX(1);
252 gStyle->SetPadTickY(1);
255 gStyle->SetPaperSize(TStyle::kUSLetter);
256 gStyle->SetPalette(1);
void evdb::RootEnv::SignalConfig |
( |
| ) |
|
|
private |
Definition at line 104 of file RootEnv.cxx.
Referenced by RootEnv().
112 gSystem->ResetSignal(kSigBus, kTRUE);
113 gSystem->ResetSignal(kSigSegmentationViolation,kTRUE);
114 gSystem->ResetSignal(kSigSystem, kTRUE);
115 gSystem->ResetSignal(kSigPipe, kTRUE);
116 gSystem->ResetSignal(kSigIllegalInstruction, kTRUE);
117 gSystem->ResetSignal(kSigQuit, kTRUE);
118 gSystem->ResetSignal(kSigInterrupt, kTRUE);
119 gSystem->ResetSignal(kSigWindowChanged, kTRUE);
120 gSystem->ResetSignal(kSigAlarm, kTRUE);
121 gSystem->ResetSignal(kSigChild, kTRUE);
122 gSystem->ResetSignal(kSigUrgent, kTRUE);
123 gSystem->ResetSignal(kSigFloatingException, kTRUE);
124 gSystem->ResetSignal(kSigTermination, kTRUE);
125 gSystem->ResetSignal(kSigUser1, kTRUE);
126 gSystem->ResetSignal(kSigUser2, kTRUE);
The documentation for this class was generated from the following files: