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.
- remove Hall-D software dependence
- self create random seed if given seed is zero
- add beam current and target parameters into input file
- add radiator thickness into input file
- enable coherence brem. only if ratiator thickness > 1.0E-6
- clean up code, add more comment and make it look consistant.
Check HISTORY.txt for details.
==============================================================
Note that CERN & ROOT must be installed before compilation.
make;
bggen.Linux_x86_64.exe will be created.
mkdir build && cd build
cmake ../code
make
bggen will be created.
==============================================================
All input files have been placed in run dir.
cd run;
../bggen.Linux_x86_64.exe
==============================================================
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.