Message: Re: Drawing events with energy deposit above 0.008 MeV Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Drawing events with energy deposit above 0.008 MeV 

Forum: (Graphical) User Interfaces
Re: Question Drawing events with energy deposit above 0.008 MeV
Date: 28 Aug, 2017
From: John Allison <John Allison>

One way of drawing selected events is to add these lines at the point in your user actions where you have identified the event you want:

    G4EventManager::GetEventManager()->KeepTheCurrentEvent();

Then on the command line or in a macro:

  /vis/disable
  /run/beamOn 200000000
  /vis/enable
  /vis/reviewKeptEvents

Identifying particles is, perhaps, more tricky. If you

  /vis/scene/add/trajectories rich
  /view/viewer/set/picking

you can pick to see what trajectory is what (only works with OGLSX or OGLQt). You could also do it in C++, I guess, in your event action.

 Add Message Add Message
to: "Re: Drawing events with energy deposit above 0.008 MeV"

 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 ]