Coder Social home page Coder Social logo

crk-safe's Introduction

===================================                                  
                             ,--. 
  ,----..  ,-.----.      ,--/  /| 
 /   /   \ \    /  \  ,---,': / ' 
|   :     :;   :    \ :   : '/ /  
.   |  ;. /|   | .\ : |   '   ,   
.   ; /--` .   : |: | '   |  /    
;   | ;    |   |  \ : |   ;  ;    
|   : |    |   : .  / :   '   \   
.   | '___ ;   | |  \ |   |    '  
'   ; : .'||   | ;\  \'   : |.  \ 
'   | '/  ::   ' | \.'|   | '_\.' 
|   :    / :   : :-'  '   : |     
 \   \ .'  |   |.'    ;   |,'     
  `---`    `---'      '---'       
                                  
===================================

By Tom Hemmick and Henry Klest

CRK is a fast simulation framework for simulating efficiencies and various other quantities and properties of ring-imaging cherenkov detectors.

How to: CRK takes as inputs CSV files of efficiencies, radiator properties, or smears with respect to wavelength.
Lower efficiencies decrease the number of detected photons, which result in a less accurate measurement.
Smears distort quantities such as Theta_C in a manner predetermined by the user.

The default detector configuration is the BNL/SBU 2015 testbeam setup, with 1-bar CF4 as the radiator.

To run, run RUNME.C

To input other efficiencies, create a new header file "name_Eff.h" in the same format as the other efficiencies, edit RUNME.C by adding a line in the format of  "Eff   *e4  = new name_Eff(1);"
and "detector->AddEff(e4);"

To input the indicies of refraction of your materials, open Sellmeier_Index.h, and edit the sellmeier coefficients

To play around simulating various other quantities, edit the Simulate_Something function in CRK.C

Simulate_Something currently contains two monte carlo routines (do_ThetaMC and do_MomentumMC) that produces a plot of ThetaC as a function of the error in angle
from a tracking system (known here as alpha).

 

crk-safe's People

Contributors

hklest avatar

Watchers

 avatar

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.