Extended Examples Review - Done Items

Physics List - 2019

Explicitly defined physics lists in examples not demonstrating physics (eg. Field)

G4VIS_USE, G4UI_USE in main() - 2019

The main() function in most extended examples was defined according to basic examples. Since release 10.1, main() functions in all basic examples were improved:

  • G4VIS_USE and G4UI_USE macros were removed from all basic examples, which makes the function main() easier to understand to users
  • G4UIExecutive is instantiated at the same beginning of main(), if interactive mode is enables. This makes possible to handle the output and eventual exception via the Geant4 UI since the beginning of running example
With QT, all output now appears in the Qt driver output window Exception is issued in its Qt window

Obsolete /vis/drawTracks, fDrawTrack

In many EventAction classes there is defined a command to draw tracks, which is not needed anymore as /vis/drawTracks command is available in /vis category. It sets fDrawTrack flag which is nowhere used as selection of tracks for visualization is done via /vis command.

  • See the list of examples which define drawTracks command last file

Obsolete /event/printModulo, fPrintModulo

In many EventAction classes there is defined a command to handle printing of event number, which is not needed anymore as /run/printProgress command is available in /run category.

  • See the list of examples which define printModulo command last file

Commands to set cuts per particle

Commands to set cuts per particle are available in G4VUserPhysicsList and so they are applicable to all physics lists:

/run/setCut  cutValue unit
/run/setCutForAGivenParticle particleName cutValue unit
There is no need to define these commands in each example physics list, but it would be better to demonstrate use of Geant4 commands.

  • See the list of examples which define setCuts command last file

Past Reviews

See Documents uploaded during the reviews in 2012 - 2013

-- IvanaHrivnacova - 2020-09-16

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2020-09-16 - IvanaHrivnacova
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback