PICOcode.AnalysisModules.event_modules package
Subpackages
- PICOcode.AnalysisModules.event_modules.pico40l_22 package
Submodules
PICOcode.AnalysisModules.event_modules.dytran_analysis module
- class DytranAnalysisBase(event, queue=None, debug=False, previous_data={})
Bases:
ProcessorBase
- static HeaviQuad(t, a, t0)
- static QuartFit(x, a, c)
- static blockDownsample(x, n)
- static blockSmooth(a, WSZ=5)
- find_t0()
Determine baseline and find t0.
- fit_dytran()
- fit_dytran_heaviQuad()
- fit_dytran_new()
- get_dytran_list()
Adds dytran_list to recon file.
- run()
Abstract method called from process_single_run.
Inherited classes must override this function. All required data should have been staged prior to this function being called.
- sum_dytran()
PICOcode.AnalysisModules.event_modules.fastdaq_analysis module
- class FastDAQAnalysisBase(event, queue=None, debug=False, previous_data={})
Bases:
ProcessorBase
Find t0 for each piezo, and calculate the acoustic energy.
This is a base class which should be inheritted from in a subdirectory, the name of which should be the data series (e.g. 40l-22).
- run()
Call all the relevant functions.
PICOcode.AnalysisModules.event_modules.get_history module
- class GetHistoryBase(event, queue=None, previous_data={})
Bases:
ProcessorBase
Get slow control data at trigger and calculate Seitz threshold.
This is a base class which should be inheritted from in a subdirectory, the name of which should be the data series (e.g. 40l-22).
- run()
Abstract method called from process_single_run.
Inherited classes must override this function. All required data should have been staged prior to this function being called.
PICOcode.AnalysisModules.event_modules.processor_base module
- class ProcessorBase(event, queue=None, previous_data={})
Bases:
object
Abstract base class of event processors.
Each processor is initialized with a logger, the name of which is obtained from the processor’s name.
- Parameters:
- eventPICOcode.Event
An instance of the Event class, with the data to be processed.
- queuemultiprocessing.Queue
An instance of a Queue, onto which the processed data is put.
- previous_datadict
Data processed by previous modules, in case it is needed in other modules (e.g. piezo_t0 for use in dytran analysis).
- Attributes:
- event
- queue
- runIDstr
The ID of the run.
- eventIDint
The ID of the event.
- loglogging.Logger
The logger which should be used for info/debugging. The logger inherits from the main run logger, set up in
process_single_run()
.- headerstr
The header (first line) of the recon file to be written.
- variableslist of str
The names of the variables in the recon file.
- datadict of {strndarray}
Mapping from variable name to the data to write to the recon file. The value may be a scalar of type int, float, string, or numpy.ndarray.
- enqueue()
- format_output()
Format the data in a way that write_recon can use.
- run()
Abstract method called from process_single_run.
Inherited classes must override this function. All required data should have been staged prior to this function being called.