Coder Social home page Coder Social logo

calvision's Introduction

Calvision

GEANT4-based simulation of energy deposition in a large crystal.

Installing

On UMD T3 cluster:

source g4env.sh
cmake -DGeant4_DIR=/cvmfs/geant4.cern.ch/geant4/10.5/x86_64-slc6-gcc63-opt/lib64/GEANT4-10.5.0
cmake --build .

Events running

For the interactive runing: Check the geometry through a detector viewing window

./Calo -c template.cfg -u Xm  

-c template.cfg is the config file mainly for the DetectorConstruction

-m run.mac is the macro file for the initialization of G4GeneralParticleSource

-o test mean the results will be saved as test.root

Simulations can be run in this way:

./CEPC_CaloTiming -c template.cfg -m run.mac -o test

Tools

plot_Eion.C in the ./tool directory can be used to generate (1) fraction of ionizing enegry vs. partcile velocity for different particles and (2) number of inelastic interactions vs. proton ionizing energy deposition.

You only need to change the root file in this line:

TFile *ffile = new TFile("test.root");

Other files in ./tool are used to help generating condor files for massive simulations. Do:

source generate_temp.sh

it will generate files for job submission.

Then do source submit_condor.sh to submit jobs.

The line getenv=True in temp_jdl.sh sets the batch environment the same as current environment. So don't forget to do source g4env.sh before you try to submit jobs.

More Branches could be added in CreateTree.cc and filled in SteppingAction.cc.

calvision's People

Contributors

yihui-lai avatar

Watchers

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