17 #include "TApplication.h" 18 #include "TRootApplication.h" 23 #include "TSysEvtHandler.h" 24 #include "TInterpreter.h" 26 #include "cetlib_except/exception.h" 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"));
81 TApplication* app = ROOT::GetROOT()->GetApplication();
97 gInterpreter->SaveContext();
98 gInterpreter->SaveGlobalsContext();
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);
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());
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");
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);
Manage all things related to colors for the event display.
Setup the root environment.
cet::coded_exception< error, detail::translate > exception
RootEnv(int argc, char **argv)