Difference between revisions of "MOLLER GEANT4 Simulations"

From Hall A Wiki
Jump to: navigation, search
(Getting the simulation)
(Getting the simulation)
Line 18: Line 18:
 
:Default: [http://hallaweb.jlab.org/12GeV/Moller/downloads/blockyUpstream_1.1.txt upstream], [http://hallaweb.jlab.org/12GeV/Moller/downloads/blockyHybrid_3.0.txt hybrid]<br>
 
:Default: [http://hallaweb.jlab.org/12GeV/Moller/downloads/blockyUpstream_1.1.txt upstream], [http://hallaweb.jlab.org/12GeV/Moller/downloads/blockyHybrid_3.0.txt hybrid]<br>
 
<br>  
 
<br>  
:-OR- link to some central location, on the farm machines: /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/<br>  
+
:-OR- link to some central location, on the farm machines: <br>
:the defaults are currently:<br>
+
:The defaults are currently (both in cylindrical coordinates):<br>
::blockyHybrid_3.0.txt and blockyUpstream_1.1.txt (both in cylindrical coordinates)
+
::ln -s /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/blockyHybrid_3.0.txt fieldmap_back.txt<br>
 +
::ln -s /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/blockyUpstream_1.1.txt fieldmap_front.txt<br>
  
 
=== Setting the environment variables ===
 
=== Setting the environment variables ===

Revision as of 16:47, 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, on the farm machines:
The defaults are currently (both in cylindrical coordinates):
ln -s /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/blockyHybrid_3.0.txt fieldmap_back.txt
ln -s /w/halla/parity/disk2/jmammei/tosca_stuff/MAPFILES/blockyUpstream_1.1.txt fieldmap_front.txt

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

To run in batch mode:

Create a scratch directory in your home directory with a link to a ROOTfiles directory
Create your own .mac file or modify (or modify/use run_ee.mac, run_ep.mac or run_ine.mac)
Type, for example: bin/Linux-g++/moller_sim run_ee.mac



Note: The default .mac files are intended to run on the farm using jsub, but to test you can change the number of
events to 10k instead of 100k, for example

Interactive Mode

Running on farm


Run it:

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

Create your own .mac file or modify (or modify/use run_ee.mac, run_ep.mac or run_ine.mac)

Type: bin/Linux-g++/moller_sim run_ee.mac

Look at output

From moller12gev directory:

If you haven't compiled the analysis code yet:
cd analysis
make
cd ../


Then:
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