Versions Compared

Key

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

...

How do I install the XML schemas to a local directory?

From the lcdd directory, execute make schema_install to copy all the GDML and LCDD schemas in the schemas directory to another existing directory.

How can I automatically set the name of the LCIO file?

...

How do I dump the state of the CLHEP random engine?

How can I see which physics lists are available?

How do I set the physics list?

How can I customize the handling of the magnetic field within Geant4?

Dumping random state is a built-in feature of Geant4.

Turn on the save feature.

No Format

/random/setSavingFlag true

This will cause the random state for each event to be saved to currentEvent.rndm.

To save the current event to a unique file, use this command.

No Format

/random/saveThisEvent

This copies currentEvent.rndm to runXXXevtYYY.rndm.

To do this for every event, put the saveThisEvent command in a macro called rndmSave.mac and run events in this fashion.

No Format

/run/beamOn 1000 rndmSave.mac

This will cause the random state to be dumped for every event.

How can I set the directory for the random dumps?

The /random/setDirectoryName command sets the base directory where the rndm files will be placed.

How do I load back the state of the random engine that I dumped previously?

To restore the random state, use this Geant4 UI command.

No Format

/random/resetEngineFrom currentEvent.rndm

This can be used to "replay" events of interest. This feature will probably be used with SLIC's skipEvents feature in order to jump to the event first before restoring its random state.

No Format

/random/resetEngineFrom run0event1000.rndm
/generator/skipEvents 1000

How can I see which physics lists are available?

Execute the command /physics/printLists to see the available Geant4 physics lists.

How do I set the physics list?

The -l option or /physics/select command takes the name of the physics list to use as an argument.

No Format

/physics/select LHEP

This must happen in the PreInit stage. Once the simulator is in Idle state, the physics list is set permanently for that run, and SLIC must be restarted to use a different list.

How can I customize Geant4's stepping in the magnetic field?

A number of options are available for tweaking the handling of transportation through the magnetic field.

How do I set How do I set the maximum number of events?

What

...

event

...

generators are available from within SLIC?

How do I use a StdHep file

...

?

How do I use an LCIO file

...

?

How do I use the General Particle Source (GPS)?

...

How can I print information about the current event generator?

What

...

GUIs are available for SLIC?

LCIO

What is LCIO?

If I don't want to run SLIC, are there LCIO files available that I can use to get started with my analysis?

...