Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that a full listing of the command line options for slic can be printed out with the following command:

Wiki Markupnoformat
> slic -h

Wed Oct 16 11:53:20 2019 :: OKAY :: SlicApplication :: SLIC is starting.
SLIC

**************
* SLIC Usage *
**************

Command line usage:

slic [single_macro_path]
slic [options]

Interactive usage:

slic -n

************************
* Command Line Options *
************************

Option  Full Name       Macro Command           Description
------------------------------------------------------------
-h      --help          /slic/usage             Print SLIC usage.
-?      --help          /slic/usage             Print SLIC usage.
-n      --interactive   /control/interactive    Start a Geant4 interactive session.
-v      --version       /slic/version           Print SLIC version.
-m      --macro         /control/execute        Execute Geant4 commands from a file.
-g      --lcdd-url      /lcdd/url               Set LCDD geometry file URL.
-i      --event-file    /generator/filename     Set event input file full path.
-o      --lcio-file     /lcio/filename          Set name of LCIO output file.
-p      --lcio-path     /lcio/path              Set directory for LCIO output.
-O      --autoname      /lcio/autoname          Automatically name the LCIO output file.
-x      --lcio-delete   /lcio/fileExists delete Delete an existing LCIO file.
-r      --run-events    /run/beamOn             Run # of events.
-s      --skip-events   /generator/skipEvents   Set number of events to skip.
-l      --physics-list  /physics/select         Set Geant4 physics list.
-L      --log-file      /log/filename           Set logfile name.
-d      --seed          /random/seed            Set the random seed. (No argument seeds with time.)
-G      --dump-gdml     /lcdd/dumpGDML          Dump geometry to GDML file.
-c      --optical       /physics/enableOptical  Enable optical physics processes.
-P      --pdg-file      /physics/setPDGFile     Set location of particle.tbl file.
-V      --lcdd-version  /lcdd/version           Set the version of the GDML setup tag.
-S      --lcdd-setup    /lcdd/setupName         Set the name of the GDML setup tag.

...

One can also generate events internally using the GEANT4 General Particle Source. One can either issue commands on the interactive command line, or invoke them via a Geant4 macro.

Wiki Markupnoformat
slic -g detector.lcdd -m G4commands.mac -O

...

Here is a simple example to generate 100k single 4.56 GeV electrons isotropically over a fixed range in theta and uniformly in phi:

No Format
Wiki Markup
{no format}
/generator/select gps
/gps/particle e-
/gps/position 0 0 0 cm
/gps/energy 14.56 GeV
/gps/ang/type iso
/gps/ang/mintheta 170 deg
/gps/ang/maxtheta 180 deg
/gps/ang/minphi 0 deg
/gps/ang/maxphi 360 deg

/run/beamOn 100000