Giter VIP home page Giter VIP logo

detsim's Introduction

detsim

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

detsim's People

Contributors

andlaing avatar

Watchers

James Cloos avatar Justo Martín-Albo avatar  avatar Paola Ferrario avatar  avatar J. A. Hernando avatar  avatar Jose Maria Benlloch avatar

detsim's Issues

First version: status and required changes

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.