psana.detector.envstore¶
run.Detector(name) returns an EnvImpl subclass when name is an EPICS
variable (PV name or alias) or a scan variable. The object is called instead
of having raw/fex attributes: det(evt) returns the value for that event,
det(step) the value at the step's BeginStep event, and det([evt1, evt2]) a
list of values; the value is None where the env store has none. Any other
argument type raises InvalidInputEnvStore. The subclasses
(epics_raw_2_0_0, scan_raw_2_0_0, ...) add nothing; they exist because the
class is looked up by its <dettype>_<drp class>_<version> name (see
Detector interface).
psana.detector.envstore ¶
Detector interfaces for env-store variables (epics and scan): EnvImpl and its version-named subclasses.
InvalidInputEnvStore ¶
Bases: Exception
Exception raised by EnvImpl.__call__ when its argument is not a list, an Event or a Step.
EnvImpl ¶
EnvImpl(*args)
Bases: DetectorImpl
Detector interface for one env-store variable (an epics or scan variable).
Calling the object with an Event, a Step (its step event is used) or a list of events returns
the variable's value, or a list of values for a list, from EnvStore.values (None where no
value is found). If the object has no env store the call executes raise MissingEnvStore(...),
but MissingEnvStore is not defined or imported in this module, so a NameError results.
dtype
property
¶
dtype
Type recorded in the env store for this variable (EnvStore.dtype(var_name)), or None if it is not found.
epics_epics_0_0_0 ¶
epics_epics_0_0_0(*args)
Bases: EnvImpl
EnvImpl for detector type epics, software epics, version 0.0.0; adds nothing to EnvImpl.
epics_epics_0_0_1 ¶
epics_epics_0_0_1(*args)
Bases: EnvImpl
EnvImpl for detector type epics, software epics, version 0.0.1; adds nothing to EnvImpl.
epics_raw_2_0_0 ¶
epics_raw_2_0_0(*args)
Bases: EnvImpl
EnvImpl for detector type epics, software raw, version 2.0.0; adds nothing to EnvImpl.
epics_opaltt_2_0_0 ¶
epics_opaltt_2_0_0(*args)
Bases: EnvImpl
EnvImpl for detector type epics, software opaltt, version 2.0.0; adds nothing to EnvImpl.
epics_piranha4tt_1_0_0 ¶
epics_piranha4tt_1_0_0(*args)
Bases: EnvImpl
EnvImpl for detector type epics, software piranha4tt, version 1.0.0; adds nothing to EnvImpl.
scanDet_scan_2_3_42 ¶
scanDet_scan_2_3_42(*args)
Bases: EnvImpl
EnvImpl for detector type scanDet, software scan, version 2.3.42; adds nothing to EnvImpl.
scan_raw_2_0_0 ¶
scan_raw_2_0_0(*args)
Bases: EnvImpl
EnvImpl for detector type scan, software raw, version 2.0.0; adds nothing to EnvImpl.