Difference between revisions of "Running GSIM CLAS simulation"

From Hall A Wiki
Jump to: navigation, search
(Converting initial data files to GEANT-3 format input)
Line 1: Line 1:
 
== GSIM Inventory ==
 
== GSIM Inventory ==
  
GSIM directory is to be located on the farm, at a large enough work disk. An example of the simulation inventory can be found at
+
* GSIM directory is to be located on the farm, at a large enough work disk. An example of the simulation inventory can be found at
  
   /work/halla/e07006/disk1/Erez/GSIM
+
   /work/halla/e07006/disk1/Erez/GSIM (will be used for the remainder of the documentation as $GSIM)
  
  
Line 10: Line 10:
  
 
=== Setting an Event Generator and create events file ===
 
=== Setting an Event Generator and create events file ===
 +
 +
* PYTHIA is used as the base-line event generator (EG) for GSIM
 +
 +
* The existing EG is a ''fortran''  script located under '''$GSIM/Documents/''' directory.
 +
  
 
==== Setting Event Generator ====
 
==== Setting Event Generator ====
 +
 +
* The EG should be modified for the specific solid target. An example for 12C can be found at
 +
 +
  $GSIM/Documents/EventGenerator/src/qp1C.f
 +
 +
* To build the event generator use the build compilation command, e.g.
 +
 +
  cd  $GSIM/Documents/
 +
  build_EG_cs
 +
 +
(the result would be an executable event generator e.g. '''EventGenerator_exe/EG_C.exe''')
 +
  
  
 
==== Generate the Events ====
 
==== Generate the Events ====
  
 +
* Generate the events by executing the EG, e.g.
 +
 +
  ./EG_C.exe > test.dat
 +
 +
(the result would be a data file )
  
 
==== Look at the generated distributions ====
 
==== Look at the generated distributions ====
  
 
=== Converting generated data files to GEANT-3 format input ===
 
=== Converting generated data files to GEANT-3 format input ===
 
=== Preprocessing the events to add smearing of the data ===
 
  
  
Line 27: Line 47:
 
=== Running generated events through a CLASS GEANT-3 simulation ===
 
=== Running generated events through a CLASS GEANT-3 simulation ===
  
 +
=== running GSIM with the generated events ===
  
  
=== Converting the GSIM output file to root ===
+
=== Preprocessing to add smearing of the data ===
  
  
 +
=== Look at the output files ===
 +
 +
 +
=== Converting the GSIM output file to root ===
 +
 +
=== Observing the output ROOT TTree  ===
  
  

Revision as of 08:57, 2 March 2015

GSIM Inventory

  • GSIM directory is to be located on the farm, at a large enough work disk. An example of the simulation inventory can be found at
 /work/halla/e07006/disk1/Erez/GSIM  (will be used for the remainder of the documentation as $GSIM)


Running GSIM

Setting an Event Generator and create events file

  • PYTHIA is used as the base-line event generator (EG) for GSIM
  • The existing EG is a fortran script located under $GSIM/Documents/ directory.


Setting Event Generator

  • The EG should be modified for the specific solid target. An example for 12C can be found at
 $GSIM/Documents/EventGenerator/src/qp1C.f
  • To build the event generator use the build compilation command, e.g.
 cd  $GSIM/Documents/
 build_EG_cs

(the result would be an executable event generator e.g. EventGenerator_exe/EG_C.exe)


Generate the Events

  • Generate the events by executing the EG, e.g.
 ./EG_C.exe > test.dat

(the result would be a data file )

Look at the generated distributions

Converting generated data files to GEANT-3 format input

Running generated events through a CLASS GEANT-3 simulation

running GSIM with the generated events

Preprocessing to add smearing of the data

Look at the output files

Converting the GSIM output file to root

Observing the output ROOT TTree

[back to Tel Aviv University SRC Group]