8 #include "nutools/EventDisplayBase/RootEnv.h" 17 #include "TApplication.h" 18 #include "TRootApplication.h" 22 #include "TSysEvtHandler.h" 23 #include "TInterpreter.h" 25 #include "cetlib_except/exception.h" 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();
78 TApplication* app = ROOT::GetROOT()->GetApplication();
94 gInterpreter->SaveContext();
95 gInterpreter->SaveGlobalsContext();
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);
134 TApplication* app = gROOT->GetApplication();
138 app->ProcessLine(
"#include <iomanip>");
139 app->ProcessLine(
"#include <string>");
148 bool srtPrivate =
false;
149 bool srtPublic =
false;
150 p = gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
162 dip += gSystem->Getenv(
"SRT_PRIVATE_CONTEXT");
163 gROOT->ProcessLine(dip.c_str());
165 p = gSystem->Getenv(
"SRT_PUBLIC_CONTEXT");
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());
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");
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);
Manage all things related to colors for the event display.
cet::coded_exception< error, detail::translate > exception
RootEnv(int argc, char **argv)