Message: Re: How to count the number of electrons generated and the locally deposited energy? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to count the number of electrons generated and the locally deposited energy? 

Keywords: Number of electrons, locally deposited energy
Forum: Event and Track Management
Re: Question How to count the number of electrons generated and the locally deposited energy? (Francisco)
Date: 02 Apr, 2008
From: michel maire <michel maire>

User Francisco wrote:

>> Hi I already posted a question similar, but without answer. I will be
>> grateful if someone can help me.
>> 
>> 1. I need to know the total number of electrons created in my detector
>> per volume. I know this information is available when you put:
>> /tracking/verbose 1 or 2, but I need to have the total number, without
>> seeing the whole history.

  Here, I can help. I make reference to examples/extended/electromagnetic/TestEm1

  In function TrackingAction::PreUserTrackingAction(), do something like :
  if (aTrack->GetDefinition() == G4Electron::Electron()) nelec++;

>> 
>> 2. I also need to know the locally deposited energy. The one deposited
>> by electrons below the threshold to know an estimation of those
>> electrons.

   See SteppingAction::UserSteppingAction() :
   aStep->GetTotalEnergyDeposit();

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

1 None: Re: How to count the number of electrons generated and the locally deposited energy?   (Francisco - 03 Apr, 2008)
(_ None: Re: How to count the number of electrons generated and the locally deposited energy?   (michel maire - 04 Apr, 2008)
 Add Message Add Message
to: "Re: How to count the number of electrons generated and the locally deposited energy?"

 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 ]