Difference between revisions of "Monte Carlo code"
From GlueXWiki
Line 1: | Line 1: | ||
− | |||
The goal of this wiki is to give enough information so that someone could install, run, and modify the | The goal of this wiki is to give enough information so that someone could install, run, and modify the | ||
triplet polarimeter Monte Carlo code. | triplet polarimeter Monte Carlo code. | ||
This is a work in progress | 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 === | === Prerequisites === | ||
To install and run the Monte Carlo you will need to have installed: | To install and run the Monte Carlo you will need to have installed: | ||
* ROOT | * ROOT | ||
− | * GEANT | + | * GEANT (I have version 4.9.5) |
For the GEANT code you will need to modify the | For the GEANT code you will need to modify the | ||
analysis.gmk file to include the lines | analysis.gmk file to include the lines | ||
Line 14: | Line 16: | ||
* ROOTLIBS = $(shell root-config --nonew --libs) | * ROOTLIBS = $(shell root-config --nonew --libs) | ||
* EXTRALIBS += $(ROOTLIBS) | * EXTRALIBS += $(ROOTLIBS) | ||
+ | where the environment variable ROOTLIBS points to your ROOT libraries | ||
+ | |||
+ | === Download MC code === |
Revision as of 12:32, 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