Message: Re: Process name in EventAction Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Process name in EventAction 

Keywords: event action
Forum: Event and Track Management
Re: None Process name in EventAction (Burcin Donmez)
Re: None Re: Process name in EventAction (Makoto Asai)
Date: 08 Jan, 2006
From: Burcin Donmez <Burcin Donmez>

In my EventAction.cc file, I'm recording the following parameters to a file:

Event ID    Hit ID    X(mm)    Y(mm)    Z(mm)   Edep(keV)       E(keV)
       0        0     5.45     5.69    0.927      23.5           23.5 
       0        1     4.14     4.81    0.914      3.54             27 
       0        2      4.2     4.53    0.848      23.2           50.1 
       0        3     4.14     4.81    0.925      34.9             85 
       0        4     4.14     4.81    0.924        37            122 

I'm trying to add process name to the last column like compt, phot etc.

I created following variable in my SteppingVerbose.cc file:

ProcessName = fStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessName();

Then, I put following line to EventAction.cc file

extern G4String ProcessName;

I'm able to get process name but it gives me the last process at the end of each event. For example, instead of following lines as a last column in my output

G4LECSComp1.05

LowEnPhotoElec

LowEnPhotoElec

LowEnergyIoni

LowEnergyIoni

I'm getting only LowEnergyIoni processes.

Thanks,

Burcin

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

1 None: Re: Process name in EventAction   (N.P.M. Brantjes - 13 Nov, 2006)
 Add Message Add Message
to: "Re: Process name in EventAction"

 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 ]