GSIM- New Features


Introduction

As more people work on the code they may wish to report improvements and new features that are not in the main user guide but should be because they change the behavior of the program. This page intends to keep people up to date on such changes in the main gsim distribution. If you would like add your own improvements feel free to edit this page and send me the revised copy by mail to Maurik at improv.unh.edu , or let me know what you did and I'll try to include a summary here.


Changes, Improvements, New Features:

SAVE - The option to save secondary tracks/vertexes.  Franz Klein.


I defined MCTK (#1) and MCVX (#1) banks that contain secondary
particles/vertices.

It took a while because I couldn't simply copy the ZEBRA banks
into BOS (if you use the electron library, not all input tracks
were copied into ZEBRA banks ...).
The other problem was the inconsistent creation of a KINE subbank
in step_ec.F.

The way how I implemented the code is the following:
if a daughter particle is produced during the tracking,
the corresponding generating process, medium and volume numbers,
and parent track are stored in a KINE subbank.

This info is read out at the end of a event (bos_mcev.F)
and copied into the corresponding BOS banks:
MCTK (#1) and MCVX (#1)     (<-record no.=1)

You can specify which particles you want to save via the
geant lsave list:
FFread card: SAVE  (or interactively: > SAVE ).
To get any secondaries the SAVE card has to be set:

SAVE 'ALL '                   <-save all secondaries
SAVE 'DCAY' 'ALLP'            <-save all secondaries from
                                decay/absorption processes
SAVE 'DCAY' 'HADR'            <-save all hadrons from
                                decay/absorption processes
SAVE 'HADR' 0.01              <-save all hadrons with energy>0.01 GeV
SAVE 'ALL ' 'LEVL' 10         <-save all secondaries up to cascade
                                level 10
SAVE 'ELMG' 'MUON' 'DCAY'     <-save all elmg.parts (photon,e^-,e^+)
                                and muons from decay/abs. processes
etc.

For 'HADR' 'ELMG' 'MUON'   one can specify the min. energy (as above)
default values: Emin_hadr=0.1 GeV  (i.e. all hadrons)
                Emin_muon=0.1 GeV  (i.e. all muons)
                Emin_elmg=0.05 GeV
                max. cascade level=100

The MCTK (#1) bank entries contain information about generating
and ending vertices as well as parent tracks
(if parent_track<0 : track_no from MCTK (#0) i.e. primary track)
The flag entry in MCTK (#1) reflects the process that causes
this track (the number corresponds to the geant NAMEC names).
The flag entry in MCVX (#1) shows the (unique) volume no. so that
one can retrieve those geometry informations.

Good luck

Franz

New Target for E2               Natalya Dashyan <natasha@jlab.org>


I made modifications in some of GSIM routines and added few other routines in order to
include CLAS target cells and physical targets used during E2 running period (there were
4 target cells for 3He and 4He and 3 solid targets used).

Changes had been made in the following files:

gsim//clas_ffky.F
gsim//clas_geom.F
gsim//clmate.inc
gsim//gsimcontrol.inc
gsim//cltmed.inc
gsim//gsimpar.inc
gsim//init_mate.F
gsim//init_tmed.F
 

The following files were added:

gsim//ugeom_12_15.F
gsim//ugeom_15_27.F
gsim//ugeom_8_12.F
gsim//ugeom_stg.F
gsim//ugeom_tg_e2.F
gsim//ugeom_ur.F

There are 2 parameters that control cell/target settings (should be defined in ffread
file):

1. TGE2 - logical variable to turn new stuff on and off, default .FALSE. - GSIM runs
with old target definitions.

2. TGTP - integer area of 3 elements
          TGTP(1) - cell type, 0=No cell, 1=all Al cell (as for E1 and beginning of E2),
2=E2 second cell, 3=E2 third cell, 4=E2 last cell.
          TGTP(2) - liquid target type 0=empty, 1=H2, 2=D2, 3=3He, 4=4He.
          TGTP(3) - solid target type 2=CH2, 12=12C, 56=56Fe, nothing otherwise.

Example of ffread with new target:

TGE2 TRUE
TGTP 4 3

Liquid 3He in the last cell of E2 run period.

TGE2 TRUE
TGTP 1 1

Liquid hydrogen in the aluminum cell (E1 setting).
 

Please let me know if you will fiend anything wrong with new stuff or if you will have
any difficulties to run with.
 
 
 

New BOS Bank GPAR 

Franz Klein 

Modified FFREAD flag: RNDM 

Maurik Holtrop

Tracking Improvements: clas_step.c

Maurik Holtrop

Track Debugger: swit 3 #

Maurik Holtrop

New BOS bank: DOCA

K. Joo


 

New Commandline Switch: -skip #

David Rowntree

New FFREAD Card: FAST

Maurik Holtrop

Updated SC Geometry:

Maurik Holtrop

Improved Mini Torus Geometry.:

William Dale Conwell

Updated Torus Geometry

Maurik Holtrop
Modified Files: geom_mg.F clas_init.F

 

New Makefiles for gsim_int and gsim_bat:

Maurik Holtrop


 
 

Add PART bank to mcin format:

Maurik Holtrop

 

Polarized Target Field Map:

Angela Biselli


Background Simulation:

Maurik Holtrop

Two screen shots of gsim_int with background simulation turned on. The picture on the left has no mini-toroid field, the picture on the right does. Note that the electron tracks (red tracks) for low energy electrons are truncated because gsim does not do more than 1000 steps per particle.

Backgournd Pic.

New behavior:
New ffread keys:
New files: (in gsim package)
Modified files:


For comments or questions: holtrop(at)jlab.org