Coder Social home page Coder Social logo

dualtoy's Introduction

dualtoy

dual calorimeter toy for HONR class

first clone with using git clone [email protected]:saraheno/dualtoy.git

cd into dualtoy and do sh ./g4env.sh

then compile it with cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-slc6-gcc63-opt/lib64/GEANT4-10.5.0 make

you can run it two ways. to run interactively, do ./dualtoy -c template.cfg -u Xm

while to run without the display do ./dualtoy -c template.cfg -m run.mac -o filename where filename is the name of the file you want GEANT to put the output into

Look inside of template.cfg. You will see many options you can change about the detector geometry You can also see other files like run*.mac. these allow running different particles and energies Compare them.

Once you have run a bunch of particles at different energies, you need to make histograms from the geant output. This is done with toyplot.cc. go into root and type .x toyplot.cc Do this once for each GEANT root file you created. You should edit the two lines just after "void toyplot() {" in this file to change the input and output file names.

Now, you want to take these histograms and use them to make resolution curve. Use res.C to do this in root.

dualtoy's People

Contributors

saraheno avatar

Watchers

James Cloos avatar  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.