Monte Carlo code
From GlueXWiki
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'
Using mamiConfig
- Look at the command line options. Type: 'mamiConfig -h'