rewrite.lib package

Submodules

rewrite.lib.Skyview module

class rewrite.lib.Skyview.Skyview[source]

Bases: object

calculate_rates()[source]

Calculate rates during rate measurements.

check_pressure_msg(msg)[source]

Check message for pressure information.

clear_queues()[source]

Clear all the queues filled in process_incoming().

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_gps_info()[source]
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

reset_scalars()[source]

Reset the scalars of all channels.

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.

start_reading_data()[source]

Start receiving data from the DAQ card and storing it in self.dataqueue.

stop_reading_data()[source]

Stop receiving data from the DAQ card.

write_rates_to_file(filename='', firstline=False)[source]

Saves data to file during rate measurements.

Module contents