Difference between revisions of "MOLLER GEANT4 Simulations"

From Hall A Wiki
Jump to: navigation, search
(Setting the environment variables)
(Look at output)
Line 71: Line 71:
 
<br>      make
 
<br>      make
 
<br>      cd ../
 
<br>      cd ../
<br>      Create a plots and output folder
+
<br>      Modify sample.ini file in the analysis/initfiles directory to have the name(s) of the rootfile(s)
<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>       
<br>      From terminal: ./analysis/mollerClass analysis/inifiles/example.ini   
+
<br>      From terminal: ./analysis/mollerClass analysis/inifiles/sample.ini   
 
<br>  
 
<br>  
 
<br>      The output and plot files should be created in your output/ and plots/ folders
 
<br>      The output and plot files should be created in your output/ and plots/ folders

Revision as of 16:27, 25 January 2011

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


In a terminal window, type:
svn checkout https://jlabsvn.jlab.org/svnroot/moller12gev



Get the field maps:
Proposal: upstream, hybrid
Default: upstream, hybrid

-OR- link to some central location: /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/
use the README file to decide which maps to use; the defaults are currently:
blockyHybrid_3.0.txt and blockyUpstream_1.1.txt (both in cylindrical coordinates)



Setting the environment variables


You'll have to make sure your environment variables are set correctly.


On ifarml1 or ifarml6, type:
source env_jlabcue


If you are running the simulation on your own machine, for now you'll have to set the environment variables yourself,
but be sure to also change the version of GEANT in the local_moller_settings.dat file.

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

Look at output


cd analysis
make
cd ../
Modify sample.ini file in the analysis/initfiles directory to have the name(s) of the rootfile(s)

From terminal: ./analysis/mollerClass analysis/inifiles/sample.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