amstrax package
Subpackages
- amstrax.plugins package
- Submodules
- amstrax.plugins.daqreader module
DAQReaderDAQReader.channel_mapDAQReader.chunk_target_size_mbDAQReader.compressorDAQReader.compute()DAQReader.daq_chunk_durationDAQReader.daq_compressorDAQReader.daq_input_dirDAQReader.daq_overlap_chunk_durationDAQReader.data_kindDAQReader.depends_onDAQReader.infer_dtype()DAQReader.input_timeoutDAQReader.is_ready()DAQReader.max_digitizer_sampling_timeDAQReader.parallelDAQReader.providesDAQReader.readout_threadsDAQReader.rechunk_on_saveDAQReader.record_lengthDAQReader.run_start_timeDAQReader.safe_break_in_pulsesDAQReader.setup()DAQReader.source_finished()DAQReader.takes_config
split_channel_ranges()
- amstrax.plugins.event_processing module
- amstrax.plugins.pax_interface module
- amstrax.plugins.peak_processing module
- amstrax.plugins.pulse_processing module
PulseProcessingPulseProcessing.allow_sloppy_chunkingPulseProcessing.baseline_samplesPulseProcessing.check_raw_record_overlapsPulseProcessing.compressorPulseProcessing.compute()PulseProcessing.configPulseProcessing.data_kindPulseProcessing.depends_onPulseProcessing.depsPulseProcessing.dtypePulseProcessing.hit_min_amplitudePulseProcessing.infer_dtype()PulseProcessing.input_bufferPulseProcessing.n_tpc_pmtsPulseProcessing.parallelPulseProcessing.pmt_pulse_filterPulseProcessing.providesPulseProcessing.rechunk_on_savePulseProcessing.save_outside_hitsPulseProcessing.save_whenPulseProcessing.takes_config
baseline_per_channel()channel_split()check_overlaps()mask_and_not()pulse_count_dtype()
- amstrax.plugins.pulse_processing_alt_baseline module
- Module contents
Submodules
amstrax.SiPMdata module
amstrax.common module
- amstrax.common.print_versions(modules=('strax', 'amstrax'), print_output=True, include_python=True, return_string=False, include_git=True)[source]
Print versions of modules installed. :param modules: Modules to print, should be str, tuple or list. E.g.
print_versions(modules=(‘numpy’, ‘dddm’,))
- Parameters
return_string – optional. Instead of printing the message, return a string
include_git – Include the current branch and latest commit hash
- Returns
optional, the message that would have been printed
amstrax.contexts module
- amstrax.contexts.apply_global_correction_version(context: Context, global_version: str) None[source]
Set all the relevant correction variables based on the specified global version. Only for testing purposes, you can add a github branch to the version by adding ‘@branchname’ to the version.
- Parameters
global_version – A specific version (e.g., ‘v0’) to apply corrections.
- amstrax.contexts.context_for_daq_reader(st: Context, run_id: str, detector: str = 'xams', runs_col_kwargs: Optional[dict] = None, run_doc: Optional[dict] = None, check_exists=True)[source]
Given a context and run_id, change the options such that we can process the live data.
IMPORTANT: After setting the context, we specify the location of the live-data for a single run. This means you CANNOT re-use this context! Therefore, if you want to process data, you should start a new context if you want to process another run starting from the live data
- Parameters
st – Context to change
run_id – the run_id of the run that should be processed
runs_col_kwargs – Optional options (kwargs) for starting the run-collection, see get_mongo_collection
run_doc – Optional document associated with this run-id.
- Returns
Context ready to start processing <run_id> with from the live-data
amstrax.hitfinder_thresholds module
- amstrax.hitfinder_thresholds.hit_min_amplitude(model, n_tpc_pmts=16)[source]
Return hitfinder height threshold to use in processing.
- Parameters
model – Model name (str), or int to use a uniform threshold,
or array/tuple or thresholds to use. :param threshold: value of the threshold to be applied in ADC counts.
amstrax.itp_map module
amstrax.rundb module
- class amstrax.rundb.RunDB(mongo_dbname='admin', mongo_collname='runs_gas', runid_field='name', local_only=True, new_data_path=None, reader_ini_name_is_mode=False, readonly=True, *args, **kwargs)[source]
Bases:
StorageFrontendFrontend that searches RunDB MongoDB for data.
Loads appropriate backends ranging from Files to S3.
- find_several(keys: List[DataKey], **kwargs)[source]
Return list with backend keys or False for several data keys.
Options are as for find()
- hosts = {'dali': '^dali.*rcc.*'}
- provide_run_metadata = True