Message: Summarise Stepping Verbose Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Summarise Stepping Verbose 

Forum: Event and Track Management
Date: 24 Apr, 2017
From: Sahra <Sahra>

Hello,

   I have incorporated my own stepping verbose into my program and its giving me the exact results i wanted, however, i would like to cut down on all the verbosity by summarising all the output into one neat summary after the Run is finished. 

For example, instead of:


*********************************************************************************************************
* G4Track Information:   Particle = neutron,   Track ID = 1,   Parent ID = 0
*********************************************************************************************************

Step#      X         Y         Z        KineE    dEStep   StepLeng  TrakLeng  NextVolu   Process
    0      1 mm    243 um   -1.1 cm     10 MeV     0 eV      0 fm      0 fm      World   initStep
    1      1 mm    243 um   -250 um     10 MeV     0 eV   1.07 cm   1.07 cm   SiliconDTransportation
    2      1 mm    243 um    250 um     10 MeV     0 eV    500 um   1.12 cm      WorldTransportation
    3      1 mm    243 um    1.1 cm     10 MeV     0 eV   1.07 cm    2.2 cm OutOfWorldTransportation
---> End of event: 99999
   Silicon: total energy:       0 eV 
 ----> print histograms statistic 
for the entire run 

 Mean Energy Deposited in Silicon=2.22042 keV
 rms = 45.7256 keV
-------------------------------------------------------------------------------


I would like to summarise all the secondaries created, all the energy deposited, all the kinetic energies of the particles, the number of particles which underwent Transportation etc. after all 10000 events have been simulated.


For example:

------------------------------------------------------------------------------
------------------------- End of Global Run ---------------------------------

Run 0 consisted of : 10000 neutrons at 10 MeV.

Total Number of Secondaries Produced : 120

Particle       Number      Edep          Process
---------     --------    -------        -------
- Neutron      9400        774 keV    Transportation
- Gamma         56          ..
- Electron      28          ..   
- Si28          ..          ..
- etc           ..          ..

Total Energy Deposited in Silicon : 1.2 MeV
Total Energy Deposited by Secondaries : 2.96 keV
-----------------------------------------------------------------------------

Is there an example that does this, or anything i can use to gain an idea of how to incorporate this level of output into my program?

I created a 'Run' script file, similar to the one B3b uses except i try to display the info above, but for some reason it isn't displaying the output i wrote in the file. 

Any help is appreciated, thank you.

Sahra

 Add Message Add Message
to: "Summarise Stepping Verbose"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]