python structure to simulate detector response
detsim/position_signal.py:
Takes full simulation output in .h5 format and sorts the sensor
info into buffers as defined in a configuration file
Hi everyone,
Just a few comments on what is working/ready in detsim from my point of view in this first "version" that I've added you all to.
The only executable script (city-like based on FANAL/Olivia) is position_signal.py which is written with the idea of reading the full simulation output of nexus and sorting the information into buffers. It does essentially what the full simulation mode of the C++ based detsim did with the addition of being able to split a long G4 event into multiple buffers under certain circumstances.
The simulation/buffer_functions functions are the main tools used to do this. In that file there are a few suboptimal things (that I know of but probably others). The trigger_finder function maybe needs to have a different name and currently only looks for samples above a threshold which is maybe a bit too simple. I need to check with more data to see where the fail modes are. Then on a more stylistic front, the calculate_buffers function which is the final step is overly long and complicated and needs to be refactorised.
There are some bits of code written that are not currently in use:
In utility_functions there's a function to allow scaling of the signal for when tuning. I haven't got round to adding this option into the executable though.
There are a few functions related to the old style parameterisation in scintillation_functions.py but since the current thinking is to wait I haven't developed the more.
I'd appreciate people taking a look when they get a chance before developing much more but understand that there's a fair amount of code to assess.
Cheers,
A
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.