From dc4de29d111b79ee981271e3b6b3b4dfb3c875b6 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Fri, 25 Feb 2022 20:34:34 -0600 Subject: [PATCH] Use public data, not getters --- src/docs/part1/simple_detector.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/part1/simple_detector.md b/src/docs/part1/simple_detector.md index 45a4abb..ca4ea32 100644 --- a/src/docs/part1/simple_detector.md +++ b/src/docs/part1/simple_detector.md @@ -181,8 +181,8 @@ This accomplishes the following: Later on you can see its use while looping over hits: ```cpp -auto pos0 = h.getPosition(); -auto pos1 = cellid_converter.position(h.getCellID()); +auto pos0 = h.position; +auto pos1 = cellid_converter.position(h.cellID); ``` Here `h` is a [EDM4hep SimTrackerHit](https://edm4hep.web.cern.ch/classedm4hep_1_1_sim_tracker_hit.html) which has `position`, a -- GitLab