-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Detector simulation #691
Comments
|
#722 [author: andLaing] Adds a new io option to `rwf_io` which uses the basic `rwf_writer` and other table writers to write all event info in one step. In this way long MC events can be split into multiple trigger-like events in the output file and the event numbers can be logged and mapped accordingly. Some issues remain for the logging portion that are under debate. Addresses point 2 of issue #691 [reviewer: jmalbos] This PR adds a new writer (and the corresponding test) to `rwf_io` than can handle the splitting of long (MC) events into several subevents. A new table (`MCEventMap`) is used to associate the new subevents to the original event. Nevertheless, this new writer has limited use until a decision is taken regarding #715.
In order to coordinate the PRs, please agree on a common folder for the code that doesn't belong in the cities folder and move your code there (just before the PR is merged, don't do it in between other commits). |
In PR #737 I put the new functions in a folder If that name's a bit verbose we could change it in all. |
Both |
#737 [author: andLaing] Adds functions and utilities used to sort MC sensor data (full optical simulation) into buffers for IC processing. Addresses point 6 of issue #691 Functions can be seen in context in https://github.com/andLaing/detsim/tree/IC-integration-tests where the `position_signal.py` script will form the basis for a future IC city. [reviewer: gonzaponte] A complete set of functions and components to split events into buffers and create waveforms in each of them. It reuses existing code as much as needed and tests every function implemented. All functions have some documentation. Very nice job.
#721 [author: andLaing] Adds a source to compoments which reads the nexus sensor response output and returns a dictionary. Addresses point 1 of issue #691 for the case of nexus full optical simulation. Valid for NEW, NEXT100 and DEMO++. [reviewer: jmalbos] This pull request adds a new data source that reads the nexus sensor response output and yields a dictionary as expected by `dataflow`. The code is straightforward, given that it relies on existing functions to do most of the legwork. Three new tests are added to IC in this PR: the first two check the behavior of the new function when the input datafile does not conform to the standard; the third test makes sure that the returned information is correct. Once a small typo is fixed in the docstring of the function, I'll approve the PR.
#758 [author: andLaing] Moves some of the pipe from buffy to a compound component in components so it can be used by the parametrized detsim city (under development). Also adds a couple of protections to the buffer functions so that they are safe for both cities. [reviewer: mmkekic] This PR adapts bufferization functions and extract the pipe that creates buffers from the buffy flow allowing it to be reused in the detsim city as well (#691,#700). Tests are added to show that the functions work both with pandas and numpy inputs. Thanks for the effort!
#695 [author: gondiaz] Following issue #691: 4. upload functions to simulate electron drift (diffusion/attachment etc) in `invisible_cities/cities/detsim_simulate_electrons.py` This module contains three functions, that generate, drift and diffuse the secondary electrons produced by the energy hits. [reviewer: gonzaponte] This PR implements all the functions needed to transform energy deposits from nexus into ionization electrons at the EL gap. The code is well written, documented, and tested. Good job.
The functionality to sort nexus full simulation into buffers or fully simulate the detector response in python (generally referred to as detsim) needs to be integrated into IC.
We propose the following grouping of pull requests to gradually integrate the functionality:
All PRs will reference this issue for book keeping.
The text was updated successfully, but these errors were encountered: