Skip to content
Snippets Groups Projects
Commit d26a23fa authored by Antti Soininen's avatar Antti Soininen
Browse files

Add ComponentInfo and DetectorInfo to the Techniques concepts page Re

#24597
parent 5b9d2850
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ Python Interface
Examples of using ``ComponentInfo`` in python
Print indices of detectors in "bank1" that are masked
**Print indices of detectors in "bank1" that are masked**
.. testcode:: show_masked_detectors_in_bank
......@@ -34,6 +34,10 @@ Print indices of detectors in "bank1" that are masked
if det_info.isMasked(int(det_index)):
print('Masked detector index of bank1 is {}'.format(det_index))
Output:
.. testoutput:: show_masked_detectors_in_bank
Masked detector index of bank1 is 2
.. categories:: Concepts
.. _DetectorInfo:
=============
============
DetectorInfo
=============
============
.. contents::
:local:
......@@ -35,7 +35,10 @@ Example of using ``DetectorInfo`` in python
mask_count += 1
print('masked {} detectors'.format(mask_count))
Output:
.. testoutput:: mask_detectors
masked 200 detectors
.. categories:: Concepts
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment