Coder Social home page Coder Social logo

hamc's Introduction

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

     hamc  =  Hall  A  Monte  Carlo

     R. Michaels,  initial version Jan 2009; updated May 2018

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

This is a single-arm Monte Carlo used by the parity experiments
in Hall A.  It was used by HAPPEX-III, PVDIS, PREX, and C-REX.

Some documentation about hamc is here:
http://hallaweb.jlab.org/parity/prex/hamc

For version control, I'm using github:  
https://github.com/rwmichaels/hamc

A good way to proceed is to make your repository on github.com,
the Fork my repository, then "git clone" it to your local PC.
If you have useful changes you can make a "pull request" to me.

To proceed do the following

Compile:

    make clean
    make

Run

    ./prex    
or 
    ./happex
   (and don't forget the dot "." and slash "/")


Optional argument is the number of events, like this:

    ./prex 1000000

Histogram output

    hamc.root

To show some results, 

   root hamc.root
   root [7] .x ./macros/show4.C
   (etc)

I/O control of code

    prex.dat   to control prex
    happex.dat to control happex

You can find versions of prex*.dat in ./PREX directory.  You 
likely want "prex_hrstrans.dat" so copy that to prex.dat in the
run directory.  ("cp ./PREX/prex_hrstrans.dat prex.dat")

New in 2018 is the transport code THRSTrans.  The old fortran
code (LeRose functions) still exist but can be effectively turned
off by disabling the USEFORTRAN flag in the Makefile.  

For THRSTrans you need the separately maintained library.  
You can see from the Makefile where this located

  grep HRSTRANS Makefile 
  HRSTRANSLIB   = /home/rom/hrstrans1/lib
  ALL_LIBS = $(LIBS) $(HRSTRANSLIB)/libhrstrans.so
  INCLUDES += -I$(HRSTRANSLIB)

and you'll need to control HRSTRANSLIB.  Both libhrstrans.so
and the header THRSTrans.h need to be in this directory.
To obtain THRSTrans, you could use my git repo for that,
though in principle Seamus Riordan should be maintaining it.
https://github.com/rwmichaels/hrstrans


hamc's People

Contributors

rwmichaels 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.