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 29 of file RootEnv.cxx.
References InterpreterConfig(), LoadClasses(), LoadIncludes(), SetStyle(), and SignalConfig().
35 TApplication* app = ROOT::GetROOT()->GetApplication();
44 TRint* rapp =
new TRint(
"TAPP",&largc, largv, 0, 0, kTRUE);
47 rapp->SetPrompt(
"evd [%d] ");
50 gROOT->SetBatch(kFALSE);
52 app->InitializeGraphics();
cet::coded_exception< error, detail::translate > exception
evdb::RootEnv::~RootEnv |
( |
| ) |
|
void evdb::RootEnv::InterpreterConfig |
( |
| ) |
|
|
private |
Definition at line 88 of file RootEnv.cxx.
Referenced by RootEnv().
94 gInterpreter->SaveContext();
95 gInterpreter->SaveGlobalsContext();
void evdb::RootEnv::LoadClasses |
( |
| ) |
|
|
private |
Definition at line 188 of file RootEnv.cxx.
Referenced by RootEnv().
194 gROOT->LoadClass(
"TGeometry",
"Graf3d");
195 gROOT->LoadClass(
"TTree",
"Tree");
196 gROOT->LoadClass(
"TMatrix",
"Matrix");
197 gROOT->LoadClass(
"TMinuit",
"Minuit");
198 gROOT->LoadClass(
"TPostScript",
"Postscript");
199 gROOT->LoadClass(
"TCanvas",
"Gpad");
200 gROOT->LoadClass(
"THtml",
"Html");
void evdb::RootEnv::LoadIncludes |
( |
| ) |
|
|
private |
Definition at line 129 of file RootEnv.cxx.
Referenced by RootEnv().
134 TApplication* app = gROOT->GetApplication();
138 app->ProcessLine(
"#include <iomanip>");
139 app->ProcessLine(
"#include <string>");
145 std::string mp = gROOT->GetMacroPath();
148 bool srtPrivate =
false;
149 bool srtPublic =
false;
150 p = gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
161 std::string dip =
".include ";
162 dip += gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
163 gROOT->ProcessLine(dip.c_str());
165 p = gSystem->Getenv(
"SRT_PUBLIC_CONTEXT");
174 std::string dip =
".include ";
175 dip += gSystem->Getenv(
"SRT_PUBLIC_CONTEXT");
176 gROOT->ProcessLine(dip.c_str());
179 if(srtPublic || srtPrivate){
180 gROOT->SetMacroPath(mp.c_str());
181 gSystem->SetIncludePath(ip.c_str());
int evdb::RootEnv::Run |
( |
| ) |
|
Definition at line 73 of file RootEnv.cxx.
78 TApplication* app = ROOT::GetROOT()->GetApplication();
void evdb::RootEnv::SetStyle |
( |
| ) |
|
|
private |
Definition at line 206 of file RootEnv.cxx.
Referenced by RootEnv().
208 gROOT->SetStyle(
"Plain");
211 gStyle->SetFrameLineWidth(1);
212 gStyle->SetFuncWidth(1);
213 gStyle->SetHistLineWidth(1);
215 gStyle->SetFuncColor(2);
216 gStyle->SetGridColor(18);
217 gStyle->SetGridStyle(1);
219 gStyle->SetGridWidth();
223 gStyle->SetPadTopMargin(0.08);
224 gStyle->SetPadBottomMargin(0.36);
225 gStyle->SetPadRightMargin(0.03);
226 gStyle->SetPadLeftMargin(0.10);
229 gStyle->SetTextFont(132);
230 gStyle->SetLabelFont(132,
"XYZ");
231 gStyle->SetStatFont(132);
232 gStyle->SetTitleFont(132,
"XYZ");
234 gStyle->SetStatFontSize(0.07);
235 gStyle->SetTitleFontSize(0.07);
236 gStyle->SetLabelSize(0.07,
"XYZ");
237 gStyle->SetTitleSize(0.07,
"XYZ");
238 gStyle->SetTextSize(0.07);
240 gStyle->SetStatW(0.19);
241 gStyle->SetStatX(0.90);
242 gStyle->SetStatY(0.90);
243 gStyle->SetOptTitle(0);
244 gStyle->SetOptStat(0);
247 gStyle->SetNdivisions(510,
"XYZ");
248 gStyle->SetPadTickX(1);
249 gStyle->SetPadTickY(1);
252 gStyle->SetPaperSize(TStyle::kUSLetter);
253 gStyle->SetPalette(1);
void evdb::RootEnv::SignalConfig |
( |
| ) |
|
|
private |
Definition at line 101 of file RootEnv.cxx.
Referenced by RootEnv().
109 gSystem->ResetSignal(kSigBus, kTRUE);
110 gSystem->ResetSignal(kSigSegmentationViolation,kTRUE);
111 gSystem->ResetSignal(kSigSystem, kTRUE);
112 gSystem->ResetSignal(kSigPipe, kTRUE);
113 gSystem->ResetSignal(kSigIllegalInstruction, kTRUE);
114 gSystem->ResetSignal(kSigQuit, kTRUE);
115 gSystem->ResetSignal(kSigInterrupt, kTRUE);
116 gSystem->ResetSignal(kSigWindowChanged, kTRUE);
117 gSystem->ResetSignal(kSigAlarm, kTRUE);
118 gSystem->ResetSignal(kSigChild, kTRUE);
119 gSystem->ResetSignal(kSigUrgent, kTRUE);
120 gSystem->ResetSignal(kSigFloatingException, kTRUE);
121 gSystem->ResetSignal(kSigTermination, kTRUE);
122 gSystem->ResetSignal(kSigUser1, kTRUE);
123 gSystem->ResetSignal(kSigUser2, kTRUE);
The documentation for this class was generated from the following files:
- nuevdb/v1_09_08/source/nuevdb/EventDisplayBase/RootEnv.h
- nuevdb/v1_09_08/source/nuevdb/EventDisplayBase/RootEnv.cxx