Skip to content

Commit 25e45c0

Browse files
authored
Fix typos in tracking module asserts (#1852)
Corrected variable names in asserts
1 parent 4b4c717 commit 25e45c0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tracking/include/Tracking/Sim/IndexSourceLink.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct IndexSourceLinkAccessor
7878

7979
// get the range of elements with requested geoId
8080
std::pair<Iterator, Iterator> range(const Acts::Surface& surface) const {
81-
assert(container != nullptr);
81+
assert(container_ != nullptr);
8282
auto [begin, end] = container_->equal_range(surface.geometryId());
8383
return {Iterator{begin}, Iterator{end}};
8484
}

Tracking/include/Tracking/Sim/MeasurementCalibrator.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ class LdmxMeasurementCalibrator {
6262
typename traj_t::TrackStateProxy trackState) const {
6363
acts_examples::IndexSourceLink source_link{
6464
genericSourceLink.get<acts_examples::IndexSourceLink>()};
65-
assert(m_measurements and
65+
assert(m_measurements_ and
6666
"Undefined measurement container in LdmxMeasurementCalibrator");
67-
assert((sourceLink.index() < m_measurements->size()) and
67+
assert((source_link.index() < m_measurements_->size()) and
6868
"Source link index is outside the container bounds in "
6969
"LdmxMeasurementCalibrator");
7070

@@ -105,9 +105,9 @@ class LdmxMeasurementCalibrator {
105105
acts_examples::IndexSourceLink source_link{
106106
genericSourceLink.get<acts_examples::IndexSourceLink>()};
107107

108-
assert(m_measurements and
108+
assert(m_measurements_ and
109109
"Undefined measurement container in LdmxMeasurementCalibrator");
110-
assert((sourceLink.index() < m_measurements->size()) and
110+
assert((source_link.index() < m_measurements_->size()) and
111111
"Source link index is outside the container bounds in "
112112
"LdmxMeasurementCalibrator");
113113

0 commit comments

Comments
 (0)