Detector constants¶
Set detector constants
- larndsim.consts.detector.ELECTRON_MOBILITY_PARAMS = (551.6, 7158.3, 4440.43, 4.29, 43.63, 0.2053)[source]¶
Electron mobility constants
- larndsim.consts.detector.LONG_DIFF = 4e-06[source]¶
Longitudinal diffusion coefficient in \(cm^2/\mu s\)
- larndsim.consts.detector.TRAN_DIFF = 8.8e-06[source]¶
Transverse diffusion coefficient in \(cm^2/\mu s\)
- larndsim.consts.detector.DRIFT_MAX_TIME = 0[source]¶
Time for the full drift calculated from the nominal drift velocity
- larndsim.consts.detector.RESPONSE_SAMPLING = 0.05[source]¶
Time sampling in the pixel response file in \(\mu s\)
- larndsim.consts.detector.RESPONSE_BIN_SIZE = 0.04434[source]¶
Spatial sampling in the pixel response file in \(cm\)
- larndsim.consts.detector.RESPONSE_MAX_TIME = 0.0[source]¶
The longest cathode charge response in time \(\mu s\)
- larndsim.consts.detector.MAX_RADIUS = 4[source]¶
The maximum radius to consider the neighbouring charge response
- larndsim.consts.detector.MIN_STEP_SIZE = 0.001[source]¶
The step size to chop up segments \(cm\) MIN_STEP_SIZE should be comparable to the smallest bin size in x,y,t of the response file The bin size in x, y is ~0.04 cm (1/10 of a pixel size), and the bin size in t is 50 ns, which is roughly 0.007 cm
- larndsim.consts.detector.DEFAULT_PLANE_INDEX = 48879[source]¶
Default value for pixel_plane, to indicate out-of-bounds edep
- larndsim.consts.detector.PIXEL_CONNECTION_DICT = {}[source]¶
Dictionary between pixel ID and its position in the pixel array
- larndsim.consts.detector.TILE_POSITIONS = {}[source]¶
Tile position wrt the center of the anode in \(cm\)
- larndsim.consts.detector.MODULE_TO_IO_GROUPS = {}[source]¶
Association between modules and io groups
- larndsim.consts.detector.ROLLOVER_CYCLES = 2147483648[source]¶
Clock rollover / reset time in larpix clock ticks (32-digit clock)
- larndsim.consts.detector.USE_PPS_ROLLOVER = True[source]¶
True if using PPS reset / false for clock rollover
- larndsim.consts.detector.BUFFER_RISETIME = 0.1[source]¶
Buffer risetime in \(\mu s\) (set >0 to include buffer response simulation)
- larndsim.consts.detector.NON_BEAM_EVENT_GAP = 0[source]¶
Offset of the non-beam event time in microseconds
- larndsim.consts.detector.DIFF_N_SIGMAS = 5[source]¶
Pad the signal range to allow N sigmas of diffusion
- larndsim.consts.detector.NEIGHBORING_PIX_DIST = [][source]¶
Distances of the neighboring pixels to the center pixel
- larndsim.consts.detector.electron_mobility(efield, temperature)[source][source]¶
Calculation of the electron mobility w.r.t temperature and electric field. .. rubric:: References
https://doi.org/10.1016/j.nima.2016.01.073 (parameterization)
- larndsim.consts.detector.get_n_modules(detprop_file)[source][source]¶
The function loads the global detector properties (not subject to the module variations) stores the constants as global variables
- Parameters:
detprop_file (str) – detector properties YAML filename
- larndsim.consts.detector.set_detector_properties(detprop_file, pixel_file, response_file=None, i_module=-1, geo_only=False)[source][source]¶
The function loads the detector properties and the pixel geometry YAML files and stores the constants as global variables
- Parameters:
detprop_file (str) – detector properties YAML filename It is acceptable to provide a single value or a list with one element for electric field and electron lifetime.
pixel_file (str) – pixel layout YAML filename
i_module (int) – module id, default value i_module = -1. i_module < 0 means all module share the same detector configuration.