Difference between revisions of "Monte Carlo code"

From GlueXWiki
Jump to: navigation, search
Line 20: Line 20:
 
=== Download and run the MC code ===
 
=== Download and run the MC code ===
 
The MC code can be found [https://userweb.jlab.org/~dugger/triPol/mc/mamiConfig.tar here (mamiConfig.tar)]
 
The MC code can be found [https://userweb.jlab.org/~dugger/triPol/mc/mamiConfig.tar here (mamiConfig.tar)]
 +
* Extract the files. Type: 'tar xf mamiConfig.tar'
 +
* Change directory. Type: 'cd mamiConfig'
 +
* Source the env.csh file (assumes you are using csh as your shell). Type: 'source env.csh'
 +
* Make the executable. Type: 'make'
 +
* Look at the command line options. Type: 'mamiConfig -h'

Revision as of 13:08, 16 January 2013

The goal of this wiki is to give enough information so that someone could install, run, and modify the triplet polarimeter Monte Carlo code.

This is a work in progress

Mami MC code

The Mami MC code is set up to represent the triplet polarimeter expected to be used at Mami

Prerequisites

To install and run the Monte Carlo you will need to have installed:

  • ROOT
  • GEANT (I have version 4.9.5)

For the GEANT code you will need to modify the analysis.gmk file to include the lines

  • CPPFLAGS +=$(shell root-config --cflags)
  • ROOTLIBS = $(shell root-config --nonew --libs)
  • EXTRALIBS += $(ROOTLIBS)

where the environment variable ROOTLIBS points to your ROOT libraries

Download and run the MC code

The MC code can be found here (mamiConfig.tar)

  • Extract the files. Type: 'tar xf mamiConfig.tar'
  • Change directory. Type: 'cd mamiConfig'
  • Source the env.csh file (assumes you are using csh as your shell). Type: 'source env.csh'
  • Make the executable. Type: 'make'
  • Look at the command line options. Type: 'mamiConfig -h'