Difference: RunMokkaLocally (10 vs. 11)

Revision 112013-11-29 - DanProtopopescu

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Running Mokka simulations locally

Line: 48 to 48
  ILD_G4_GLS.png
Added:
>
>
You can further manipulate the view, for example
/vis/viewer/set/viewpointThetaPhi 30 40
/vis/viewer/panTo -5 -1
/vis/viewer/zoom 4.
 To draw trajectories:
/vis/scene/add/trajectories 
Line: 120 to 127
 /run/beamOn 3000 exit
Added:
>
>
Check gun settings with:
/gun/info                 
Particle:       e- (m = 0.000510999 GeV)
Kinetic Energy: 100 GeV (momentum = 100.001 GeV)
Position:       0 0 0 cm
Direction:      0.707107 0 0.707107 (theta = 45 deg, phi = 0 deg)
(Steps and smearing are not displayed.)
 
Changed:
<
<
Random Direction:

Outlined in the Mokka release_notes_mokka-01-02. Note that this has been replaced in newer versions of Mokka such that the new commands are detailed below.

The new method (which works) is outlined in section 'VI. New Commands for the Particle Gun' in the Mokka release_notes_mokka-05-02. Relevant subsections of IV. are "/gun/thetaSmearing", "/gun/phiSmearing" and "/gun/directionSmearingMode".

Works if replace "/gun/direction 1 0 1" with "/gun/directionSmearingMode gaussian" in the e-gun.g4macro

>
>
However, it is more useful to have the electron gun 'spray' particles in all regions of the detector, instead of a set direction. This can be obtained for example with:
/gun/direction 0 0 1
/gun/directionSmearingMode uniform
/gun/phiSmearing 360 deg
/gun/thetaSmearing 180 deg
This is documented in section 'VI. New Commands for the Particle Gun' of Mokka release notes 05-02.
 
META FILEATTACHMENT attachment="100118_MokkaMarlinTutorial.pdf" attr="" comment="Mokka and Marlin tutorial for ILD - Jan 2009" date="1383314084" name="100118_MokkaMarlinTutorial.pdf" path="100118_MokkaMarlinTutorial.pdf" size="95943" stream="100118_MokkaMarlinTutorial.pdf" tmpFilename="/usr/tmp/CGItemp35661" user="DanProtopopescu" version="1"
META FILEATTACHMENT attachment="MokkaTutorial.tar" attr="" comment="Mokka tutorial files (tar archive)" date="1383651879" name="MokkaTutorial.tar" path="MokkaTutorial.tar" size="9646080" stream="MokkaTutorial.tar" tmpFilename="/usr/tmp/CGItemp45058" user="DanProtopopescu" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback