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

None 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)
Re: Question Re: Process name in EventAction (Burcin Donmez)
Date: 13 Nov, 2006
From: N.P.M. Brantjes <N.P.M. Brantjes>

User Burcin Donmez wrote:

>> 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

I think that in your eventaction the information of one total event is recorded. so after every step the ProcessName variable in your EventAction.cc is overwritten with the most recent value.

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

 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 ]