Skip to content

Single Photo Electron Analysis Code for Pocar Lab LXe System

Notifications You must be signed in to change notification settings

Pocar-Lab/SPE-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPE Analysis

Single Photo Electron analysis code for the Pocar Lab LXe system.

File Structure

  • Analysis Script: Main script which contains how to analyze specific data, calls other files from here
    • Format: CONDITION_MONTH_YEAR_Analysis (eg LXe_May_2023_Analysis)
  • RunInfo: Load data from hdf5, baseline correct, perform digital filtering, find pulses
  • MeasurementInfo: Organize metadata into object
  • ProcessWaveforms: Performs Gaussian and linear fits on finger plots, performs CA calculation and fit
  • Analyze_PDE:
    • SPE_data class: Fit to breakdown voltage, error propagation from electronics calibration, CA plots
    • Alpha_data class: Plot amplitudes, calculate PDE, calculate number incident photons

Contributing

When creating a new analysis for a new data set, copy an existing analysis script to a new file with the naming convention CONDITION_MONTH_YEAR_Analysis.py. Add you name, date, and brief description of run conditions of the data at the top for future reference. Do not make changes to an existing analysis script unless you are analysing the same data.

For details on how to use git see the git guide, in summary:

  • Always pull latest changes before you commit new ones!! This is to avoid annoying merge conflicts.
  • Make sure each commit has a clear and concise commit message describing the changes made.
  • Commit often. Commits should only change/do one thing at a time. Only commit changes that are done and working, not work in progress code.

Todo List

  • Make analyzes reproducible
    • Make main analysis script self contained
  • Document Every Function
  • Reorganize class structure
    • Split RunInfo into MeasurementInfo and a new ProcessWaveforms
    • Rename current ProcessWaveforms to ProcessHistograms
    • Split AnalyzePDE into AnalyzeSPE
  • Condense function arguments
    • Remove redundancy (ie specifyAcquisition, acquisitions argument is either list or none)
    • Group related parameters into single structure
  • Analysis script template

About

Single Photo Electron Analysis Code for Pocar Lab LXe System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages