Giter Club home page Giter Club logo

si-mu-lator's Introduction

Si-μ-lator

Si-μ-lator: Package for toy muon detector trigger simulation

Usage

usage: si_mu_late.py [-h] -d DETCARD -n NEVS [-m] [-x muxmin muxmax] [-y muymin muymax] [-a muamin muamax] [-b BKGR]

optional arguments:
  -h, --help            show this help message and exit
  -d DETCARD, --detector DETCARD
                        Detector card
  -n NEVS, --nevents NEVS
                        Number of events
  -m, --addmuon         Simulate muon
  -x muxmin muxmax, --muonx muxmin muxmax
                        Generated muon window in X (leave empty for 0)
  -y muymin muymax, --muony muymin muymax
                        Generated muon window in Y (leave empty for 0)
  -a muamin muamax, --muona muamin muamax
                        Generated muon angle window (leave empty for 0)
  -b BKGR, --bkgrate BKGR
                        Background rate (Hz) per plane

Setup environment at SLAC

source init_sing.sh

si-mu-lator's People

Contributors

rateixei avatar stephanewillocq avatar

Stargazers

Guillermo avatar Yuan-Tang Chou avatar  avatar  avatar

Watchers

James Cloos avatar rimalroc avatar  avatar  avatar Guillermo avatar

si-mu-lator's Issues

Setting overwritten hit as muon hit

if this_hit.is_muon:
if self.seg_lines['x'][hit_hash_ix].is_sig and \
self.seg_lines['y'][hit_hash_iy].is_sig:
self.seg_lines['x'][hit_hash_ix].sig.is_muon = True
self.seg_lines['y'][hit_hash_iy].sig.is_muon = True

Right now, for the MM, if a muon hits a segment that had already registered noise, we call it a muon hit (while maintaining the time signature of the noise hit).
This might cause problems for the hit classification, needs to be checked.

Size of MM pitch

Stephane caught this:
"just looking at the detector geometry a little closer and I think the size of the 10 strip MM box should be 0.2 a.u. wide (10 x 0.45 mm) instead of 0.02 a.u."

If 1 a.u. = 22.8m and the x pitch is 0.45, then it should be 0.02 not 0.002 as written

Clean up old detector cards

There are plenty of cards in the repo which haven't been updated to the latest detector description. We should clean them out.

Muon outside acceptance

When muon incoming angle is too large and it doesn't hit outermost layers, an error is being raised, but it shouldn't.

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.