rewrite.lib package¶
Subpackages¶
Submodules¶
rewrite.lib.Skyview module¶
-
class
rewrite.lib.Skyview.Skyview[source]¶ Bases:
object-
do(msg)[source]¶ Send command to DAQ card and remove repeated response from the outqueue if data taking is turned off. Otherwise just send command to DAQ card.
-
get_scalars(msg=None)[source]¶ If running=True, read out scalars from the counterqueue. Otherwise, read scalars from given message. Returns the scalar values.
-
get_temp_and_pressure()[source]¶ Read out temperature and pressure data. Pressure data in unit counts and mBar. If no measurement is running returns temperature, pressure, pressure_mbar
-
measure_pulses(meastime=None)[source]¶ Measure pulses (rising and falling edge times) of trigger events. Using PulseExtractor from muonic. :param meastime: Total measurement time in minutes. Default is None.
-
measure_rates(timewindow=5.0, meastime=None)[source]¶ Measure rates seen by the counters. :param timewindow: Time between successive rate measurements in seconds. Default is 5 seconds. :param meastime: Total measurement time in minutes. Default is None.
-
process_incoming()[source]¶ Sort messages received from the DAQ card and store them in separate queues.
-
read_scalars()[source]¶ Read the scalars of all channels. If no measurement is running, returns scalar values: ch0, ch1, ch2, ch3, trigger
-
set_threashold(th_0=300, th_1=300, th_2=300, th_3=300)[source]¶ Set the threasholds for the channels of the DAQ card. Default value for all channels is 300.
-
setup_channel(ch0=False, ch1=False, ch2=False, ch3=False, coincidence='single')[source]¶ Enable/Disable channels of the DAQ card and set coincidence settings.
-