Code Monkey home page Code Monkey logo

bggen's Introduction

bggeb

bggen is the Hall D photoproduction code that Rakitha Beminiwattha [email protected] imported for SoLID background simulations. The modifications were made to allow electroproduction event generation with this code. For now bggen can only produce events for proton target.

Jixie Zhang ([email protected]) changed it to be compiled and run in 64-bit mode. Jixie also made some improvments as below.

  1. remove Hall-D software dependence
  2. self create random seed if given seed is zero
  3. add beam current and target parameters into input file
  4. add radiator thickness into input file
  5. enable coherence brem. only if ratiator thickness > 1.0E-6
  6. clean up code, add more comment and make it look consistant.

Check HISTORY.txt for details.

==============================================================

To compile this program:

Note that CERN & ROOT must be installed before compilation.

To compile use Makefile:

make;
bggen.Linux_x86_64.exe will be created.

To compile use CMake:

mkdir build && cd build
cmake ../code
make
bggen will be created.

==============================================================

To run this program:

All input files have been placed in run dir.

cd run;
../bggen.Linux_x86_64.exe 

==============================================================

To analyze the output:

h2root bggen.nt bggen.root
h2root bggen.hit bggen.his.root

I happened to find that 'h2root' from root v5.28 or v6.10 and up can
convert the hbook file into root file in the above. root v5.30 - v5.34
can not.
 
Use scripts/HallD_LH_xs.cc and scripts/HallD_gen_lund.cc to
generate LUND files and kinematics plots.

bggen's People

Watchers

James Cloos avatar  avatar  avatar

Forkers

tianye8001

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.