Message: Re: How to get the process name in the GetFieldValue() method of G4MagneticField Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How to get the process name in the GetFieldValue() method of G4MagneticField 

Keywords: process name
Forum: Event and Track Management
Re: Question How to get the process name in the GetFieldValue() method of G4MagneticField (Kamil Sedlak)
Date: 24 Aug, 2007
From: Gumplinger Peter <Gumplinger Peter>

The experts may know a better/different way, but this works:

#include "G4RunManagerKernel.hh"

  G4String name = G4RunManagerKernel::GetRunManagerKernel()->
                      GetTrackingManager()->GetTrack()->GetStep()->
                      GetPostStepPoint()->GetProcessDefinedStep()->
                      GetProcessName();

or

#include "G4EventManager.hh"

  G4String name = G4EventManager::GetEventManager()->
                      GetTrackingManager()->GetTrack()->GetStep()->
                      GetPostStepPoint()->GetProcessDefinedStep()->
                      GetProcessName();

P.S. I am glad to see G4 users have "discovered" DecayWithSpin!

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Re: How to get the process name in the GetFieldValue() method of G4MagneticField"

 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 ]