17 for (
int i = 0;
i < numchar; ++
i)
28 if (strlen(
fname) == 0)
29 printf(
"RooUtil:: %s\n",
msg.Data());
31 printf(
"RooUtil:: [in func %s()] %s\n",
fname,
msg.Data());
58 print(
"System info:");
59 gSystem->Exec(
"hostname");
60 gSystem->Exec(
"uname -a");
61 gSystem->Exec(
"date");
62 gSystem->Exec(
"whoami");
66 print(
"\\ \\\\ \\__/ \\__/");
67 print(
" \\ \\\\ (oo) (oo) Here we come!");
68 print(
" \\_\\\\/~~\\_/~~\\_");
69 print(
" _.-~===========~-._");
70 print(
"(___________________)");
73 print(
" Your friendly aliens");
74 print(
" Surf & Turf");
88 Int_t
r = rand() % 10 + 1;
89 Int_t moose =
r > 4 ? 1 : 0;
91 TString eyes =
"open";
111 if (
msg.Length() > 0)
112 print(
"________________________________________");
113 if (
msg.Length() > 0)
115 if (
msg.Length() > 0)
116 print(
"--O-------------------------------------");
118 print(
" O \\_\\_ _/_/");
124 print(
" o (oo)\\_______");
125 else if (eyes ==
"closed")
126 print(
" o (==)\\_______");
127 else if (eyes ==
"dead")
128 print(
" o (xx)\\_______");
129 else if (eyes ==
"small")
130 print(
" o (..)\\_______");
131 else if (eyes ==
"sunny")
132 print(
" o (66)\\_______");
133 else if (eyes ==
"calc")
134 print(
" o (00)\\_______");
135 else if (eyes ==
"crazy")
136 print(
" o (**)\\_______");
137 else if (eyes ==
"vampire")
138 print(
" o (@@)\\_______");
139 else if (eyes ==
"rich")
140 print(
" o ($$)\\_______");
141 else if (eyes ==
"sick")
142 print(
" o (++)\\_______");
144 print(
" o (__)\\ )\\/\\");
146 print(
" U ||----w |");
147 else if (eyes ==
"crazy")
148 print(
" U ||----w |");
149 else if (eyes ==
"sick")
150 print(
" U ||----w |");
151 else if (eyes ==
"vampire")
152 print(
" VV ||----w |");
167 print(
" \\__/ \\__/");
168 print(
" S (oo) (oo)");
169 print(
"(\\//~~\\\\ //~~\\\\");
170 print(
" \\/\\__// \\\\__//\\T");
171 print(
" |||| ||\\\\ Who cares!");
172 print(
"__ |||| __ |||| ___");
173 print(
" (_)(_) (_)(_)");
179 TString
str = TString::Format(
180 "(pt, eta, phi, m, e) = %7.2f %5.2f %5.2f %7.2f %7.2f", lv.pt(), lv.eta(), lv.phi(), lv.mass(), lv.e());
void warning(TString msg, const char *fname="")
void print(TString msg="", const char *fname="", int flush_before=0, int flush_after=0)
math::XYZTLorentzVectorD LV
void error(TString msg, const char *fname="", int is_error=1)
void announce(TString msg="", int quiet=0)
void clearline(int numchar=100)
void start(int quiet=0, int sleep_time=0)
std::string getstr(const LV &lv)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)