Skip to content

Commit 3489106

Browse files
authored
Merge pull request #710 from beomki-yeo/cleanup-validation-scripts
Clean up the validation scripts
2 parents 8bb7280 + 56fdcab commit 3489106

File tree

3 files changed

+1
-61
lines changed

3 files changed

+1
-61
lines changed

tests/integration_tests/cpu/propagator/jacobian_validation.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -273,22 +273,6 @@ bound_covariance_type get_random_initial_covariance(const scalar ini_qop) {
273273
std::normal_distribution<scalar> rand_time(0.f * unit<scalar>::ns,
274274
stddevs_sampling[5u]);
275275

276-
/*
277-
// Typical stddev range taken from the figures of ATL-PHYS-PUB-2021-024 and
278-
// ATLAS-TDR-030
279-
std::normal_distribution<scalar> rand_l0(5.f * unit<scalar>::um,
280-
200.f * unit<scalar>::um);
281-
std::normal_distribution<scalar> rand_l1(10.f * unit<scalar>::um,
282-
4000.f * unit<scalar>::um);
283-
std::normal_distribution<scalar> rand_phi(0.05f * unit<scalar>::mrad,
284-
5.0f * unit<scalar>::mrad);
285-
std::normal_distribution<scalar> rand_theta(0.01f * unit<scalar>::mrad,
286-
2.0f * unit<scalar>::mrad);
287-
std::normal_distribution<scalar> rand_qop(0.01f * ini_qop, 0.1f * ini_qop);
288-
std::normal_distribution<scalar> rand_time(0.f * unit<scalar>::ns,
289-
1.f * unit<scalar>::ns);
290-
*/
291-
292276
std::array<scalar, 6u> stddevs;
293277
stddevs[0] = rand_l0(mt2);
294278
stddevs[1] = rand_l1(mt2);

tests/validation/root/covariance_validation.C

-11
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,6 @@ void set_xaxis_title(TH1D* h, const double text_size) {
182182
h->GetXaxis()->SetTitleSize(text_size);
183183
}
184184

185-
/*
186-
void draw_title(const std::string& text, const double x, const double y,
187-
const double text_size) {
188-
189-
TLatex* ttext = new TLatex(x, y, text.c_str());
190-
ttext->SetTextFont(22);
191-
ttext->SetTextSize(text_size);
192-
ttext->Draw();
193-
}
194-
*/
195-
196185
void draw_fit_title(const std::string title, const double x, const double y,
197186
const double text_size) {
198187

tests/validation/root/jacobian_comparison.C

+1-34
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ double y_min = -15;
4343
double y_max = 10;
4444
double y_margin = 0;
4545
double header_size = 0.05;
46-
std::array<float, 4> ldim{0.587646, 0.62395, 0.942404, 0.880252};
46+
std::array<float, 4> ldim{0.59015, 0.62395, 0.942404, 0.880252};
4747
double pad_x0 = 0.00;
4848
double pad_x1 = 1;
4949
double pad_y0 = 0.00;
@@ -252,23 +252,6 @@ void draw_text(const std::string& text) {
252252
plabel->Draw();
253253
}
254254

255-
void draw_text2() {
256-
257-
const double y = 7.5;
258-
259-
TLatex* ttext1 = new TLatex(
260-
15.2, y, "#splitline{Measurable with}{an inhomgeneous field}");
261-
TLatex* ttext2 =
262-
new TLatex(20.2, y, "#splitline{Measurable with}{a material}");
263-
ttext1->SetTextFont(132);
264-
ttext1->SetTextSize(0.045);
265-
ttext2->SetTextFont(132);
266-
ttext2->SetTextSize(0.045);
267-
268-
ttext1->Draw();
269-
ttext2->Draw();
270-
}
271-
272255
// ROOT Script for jacboain file reading
273256
void jacobian_comparison() {
274257

@@ -329,15 +312,7 @@ void jacobian_comparison() {
329312
helix_rect_histo->Draw("hist P same");
330313
rect_legend->AddEntry(helix_rect_histo, Helix_homogeneous.c_str(), "p");
331314

332-
/*
333-
TLegendEntry* rect_header =
334-
(TLegendEntry*)rect_legend->GetListOfPrimitives()->First();
335-
rect_header->SetTextFont(22);
336-
rect_header->SetTextSize(header_size);
337-
*/
338-
339315
draw_lines();
340-
// draw_text2();
341316
rect_legend->Draw();
342317
draw_text(rect_text);
343318
rect_canvas->Draw();
@@ -381,15 +356,7 @@ void jacobian_comparison() {
381356
helix_wire_histo->Draw("hist P same");
382357
wire_legend->AddEntry(helix_wire_histo, Helix_homogeneous.c_str(), "p");
383358

384-
/*
385-
TLegendEntry* wire_header =
386-
(TLegendEntry*)wire_legend->GetListOfPrimitives()->First();
387-
wire_header->SetTextFont(22);
388-
wire_header->SetTextSize(header_size);
389-
*/
390-
391359
draw_lines();
392-
// draw_text2();
393360
wire_legend->Draw();
394361
draw_text(wire_text);
395362
wire_canvas->Draw();

0 commit comments

Comments
 (0)