cminject.detectors package

A collection of subclasses of cminject.base.Detector.

Submodules

cminject.detectors.simple module

class cminject.detectors.simple.SimpleZDetector(z_position: float, identifier: Optional[str] = None)

Bases: cminject.base.Detector, cminject.utils.global_config.ConfigSubscriber

config_change(key: cminject.utils.global_config.ConfigKey, value: Any)

Will be called whenever the value of any subscribed key changes. Will be called once at the time of subscribing, IF the value for the subscribed key(s) is not None.

Parameters
  • key – The ConfigKey that the change occurred for.

  • value – The new value of the configuration value stored for the key key.

Returns

Nothing (unused).

property z_boundary: Tuple[float, float]

Returns the Z boundary of this Z-bounded object.

Returns

A tuple of floats, the first entry being z_min, the second being z_max.