![]() |
FairShip
|
Functions | |
| config (**extra) | |
| test_species_order_is_that_of_the_cpp_enum () | |
| test_defaults () | |
| test_rows_and_columns_are_reordered () | |
| test_log_interpolation_and_several_points () | |
| test_overrides_keep_the_sign () | |
| test_empty_pdg_overrides_key_is_allowed () | |
| test_malformed_files_are_rejected (cfg, message) | |
| test_missing_file (tmp_path) | |
| test_invalid_yaml (tmp_path) | |
| test_environment_variables_are_expanded (tmp_path, monkeypatch) | |
| test_shipped_file_parses () | |
| ROOT (root_with_calo_scoring_plane) | |
| test_shipped_file_loads_into_the_cpp_class (ROOT) | |
| test_no_file_gives_perfect_identification (ROOT) | |
| test_numerical_errors_name_the_file (ROOT, tmp_path) | |
| test_nan_in_the_file_is_rejected (ROOT, tmp_path) | |
| test_override_applies_to_both_signs (ROOT) | |
| test_conflicting_overrides_are_rejected (ROOT, tmp_path) | |
| test_binding_errors_are_not_reported_as_file_errors (ROOT) | |
Variables | |
| SHIPPED = os.path.join(os.path.dirname(__file__), "..", "geometry", "caloScoringPlane_pid_provided.yaml") | |
| list | IDENTITY = [[1, 0, 0], [0, 1, 0], [0, 0, 1]] |
Tests for reading the CaloScoringPlane PID file (python/caloScoringPlanePID.py). The numerical checks (rows summing to 1, energies increasing, ...) are done in C++ by CaloScoringPlanePID::Set() and tested in tests/test_calo_scoring_plane_pid.cxx; the tests at the end check that their errors reach Python with the file name.
| test_caloScoringPlanePID.config | ( | ** | extra | ) |
Definition at line 21 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.ROOT | ( | root_with_calo_scoring_plane | ) |
Definition at line 135 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_binding_errors_are_not_reported_as_file_errors | ( | ROOT | ) |
Definition at line 193 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_conflicting_overrides_are_rejected | ( | ROOT, | |
| tmp_path ) |
Definition at line 182 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_defaults | ( | ) |
Definition at line 29 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_empty_pdg_overrides_key_is_allowed | ( | ) |
Definition at line 71 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_environment_variables_are_expanded | ( | tmp_path, | |
| monkeypatch ) |
Definition at line 118 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_invalid_yaml | ( | tmp_path | ) |
Definition at line 111 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_log_interpolation_and_several_points | ( | ) |
Definition at line 53 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_malformed_files_are_rejected | ( | cfg, | |
| message ) |
Definition at line 99 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_missing_file | ( | tmp_path | ) |
Definition at line 106 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_nan_in_the_file_is_rejected | ( | ROOT, | |
| tmp_path ) |
Definition at line 165 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_no_file_gives_perfect_identification | ( | ROOT | ) |
Definition at line 147 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_numerical_errors_name_the_file | ( | ROOT, | |
| tmp_path ) |
Definition at line 154 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_override_applies_to_both_signs | ( | ROOT | ) |
Definition at line 174 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_overrides_keep_the_sign | ( | ) |
Definition at line 65 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_rows_and_columns_are_reordered | ( | ) |
Definition at line 37 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_shipped_file_loads_into_the_cpp_class | ( | ROOT | ) |
Definition at line 139 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_shipped_file_parses | ( | ) |
Definition at line 124 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.test_species_order_is_that_of_the_cpp_enum | ( | ) |
Definition at line 25 of file test_caloScoringPlanePID.py.
| list test_caloScoringPlanePID.IDENTITY = [[1, 0, 0], [0, 1, 0], [0, 0, 1]] |
Definition at line 18 of file test_caloScoringPlanePID.py.
| test_caloScoringPlanePID.SHIPPED = os.path.join(os.path.dirname(__file__), "..", "geometry", "caloScoringPlane_pid_provided.yaml") |
Definition at line 17 of file test_caloScoringPlanePID.py.