From 5848aada083cf83239216d53ad8e37ad3ded1eab Mon Sep 17 00:00:00 2001 From: Tamas Gal <himself@tamasgal.com> Date: Fri, 13 Oct 2023 12:24:41 +0200 Subject: [PATCH] Fix documentation --- docs/src/manual/detector.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/src/manual/detector.md b/docs/src/manual/detector.md index 3a1f2097..7425896e 100644 --- a/docs/src/manual/detector.md +++ b/docs/src/manual/detector.md @@ -89,18 +89,31 @@ modules(det) ``` To access a module with a given module ID, one can either use the dictionary or -index the [`Detector`](@ref) directly +index the [`Detector`](@ref) directly, which is the recommended way: ```@example 1 detector_module = det[808976933] ``` -Another, more verbose way is using the `getmodule(d::Detector, detector_id::Integer)` function +Or for a given string and floor: ```@example 1 -detector_module = getmodule(det, 808976933) +det[15, 13] ``` +It is possible to select all modules for a given floor on all strings using the `:` syntax. Here +we select all the base modules on each string: + +```@example 1 +det[:, 0] +``` + +Another way is using the `getmodule(d::Detector, string::Integer, floor::Integer)` function +to access a module on a given string and floor: + +```@example 1 +detector_module = getmodule(det, 15, 13) +``` ### PMTs -- GitLab