Difference between revisions of "MOLLER GEANT4 Simulations"

From Hall A Wiki
Jump to: navigation, search
(Overview)
(Getting Started)
Line 10: Line 10:
  
 
=== Getting the simulation ===
 
=== Getting the simulation ===
 +
 +
<br>checkout https://jlabsvn.jlab.org/svnroot/moller12gev
 +
<br>[http://hallaweb.jlab.org/12GeV/Moller/downloads/fieldmap_front.txt proposal upstream field map]
 +
<br>[http://hallaweb.jlab.org/12GeV/Moller/downloads/fieldmap_back.txt proposal hybrid field map]
 +
<br>
 +
<br> -OR- link to some central location: /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/
 +
 
=== Setting environment variables ===
 
=== Setting environment variables ===
 +
 +
<br> use env_jlabcue
 +
 
=== Batch Mode ===
 
=== Batch Mode ===
 
=== Interactive Mode ===
 
=== Interactive Mode ===
 
=== Running on farm ===
 
=== Running on farm ===
 +
 +
<br>    cd moller12gev
 +
<br>    source env_jlabcue
 +
<br>    make
 +
<br>
 +
<br>Run it:
 +
<br>
 +
<br>    Create a scratch directory in your home directory with a link to a ROOTfiles directory somewhere
 +
<br>
 +
<br>    Create your own .mac file
 +
<br>
 +
<br>          *** example.mac ***
 +
<br>          /moller/gun/gen 0
 +
<br>          /run/beamOn 1
 +
<br>          *******************
 +
<br>
 +
<br>    Create your own .csh file
 +
<br>
 +
<br>          *** example.csh ***
 +
<br>          #!/bin/csh
 +
<br>   
 +
<br>          source env_jlabcue
 +
<br>          use root
 +
<br>          bin/Linux-g++/moller_sim run_juliette_test.mac
 +
<br>
 +
<br>          exit
 +
<br>          *******************
 +
<br>
 +
<br>    Execute the .csh file from command line
 +
<br>
 +
== Analysis ==
 +
<br>      cd analysis
 +
<br>      make
 +
<br>      cd ../
 +
<br>      Create a plots and output folder
 +
<br>      Create a .ini file in the analysis/initfiles directory
 +
<br>
 +
<br>          *** example.ini ***
 +
<br>          [General]
 +
<br>          outdir=plots/juliette_test_
 +
<br>          rootoutfile=output/juliette_test.root
 +
<br>          num_thrown=100000
 +
<br>          eventtype=2
 +
<br>          plottype=.gif
 +
<br>
 +
<br>          [Filenames]
 +
<br>          file1=/u/home/crowder/scratch/ROOTfiles/moller_100913_143618.root
 +
<br>          *******************
 +
<br>     
 +
<br>      From terminal: ./analysis/mollerClass analysis/inifiles/example.ini 
 +
<br>
 +
<br>      The output and plot files should be created in your output/ and plots/ folders
 +
<br>
 +
<br> --> see more details in the README file
  
 
== Geometry ==
 
== Geometry ==

Revision as of 15:48, 23 September 2010

I am going to suggest chapters and possibly sections (an outline) for the MOLLER GEANT4 documentation. People will need to provide the text for the different sections. People should also feel free to suggest a different outline or set-up.

Overview

GEANT4

MOLLER

DOxygen Documentation

Getting Started

Getting the simulation


checkout https://jlabsvn.jlab.org/svnroot/moller12gev
proposal upstream field map
proposal hybrid field map

-OR- link to some central location: /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/

Setting environment variables


use env_jlabcue

Batch Mode

Interactive Mode

Running on farm


cd moller12gev
source env_jlabcue
make

Run it:

Create a scratch directory in your home directory with a link to a ROOTfiles directory somewhere

Create your own .mac file

*** example.mac ***
/moller/gun/gen 0
/run/beamOn 1
*******************

Create your own .csh file

*** example.csh ***
#!/bin/csh

source env_jlabcue
use root
bin/Linux-g++/moller_sim run_juliette_test.mac

exit
*******************

Execute the .csh file from command line

Analysis


cd analysis
make
cd ../
Create a plots and output folder
Create a .ini file in the analysis/initfiles directory



*** example.ini ***
[General]
outdir=plots/juliette_test_
rootoutfile=output/juliette_test.root
num_thrown=100000
eventtype=2
plottype=.gif

[Filenames]
file1=/u/home/crowder/scratch/ROOTfiles/moller_100913_143618.root
*******************

From terminal: ./analysis/mollerClass analysis/inifiles/example.ini

The output and plot files should be created in your output/ and plots/ folders

--> see more details in the README file

Geometry

Target

Beamline

Collimators

Spectrometer

Detectors

Generators

Moller

Mott (Elastic ep)

Inelastic ep

Other backgrounds

Physics Processes

Analysis

Benchmarks of the Simulation



Return to MOLLER at 11 GeV E09-005