Message: Total charge of volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Total charge of volume 

Forum: Hits, Digitization and Pileup
Date: 26 Oct, 2012
From: Natalia <Natalia >

Hello, dear G4 users!

Here a way to score charge deposition without slicing up geometry was described:

This method works very well, but when I tried to score the total charge in the different volumes of my geometry, I met the following problem:

G4ThreeVector vertex = aTrack->GetVertexPosition(); - relates to LogicVolume
G4ThreeVector terminus = aTrack->GetPosition(); - relates to PhysicVolume

That is not a problem if we need only the deposition of charge, but to count the total charge in specific volume this volume should have a unique name of LogicVolume and PhysicVolume. Finally I had to remake my geometry and give a unique names of all volumes in which I wanted to know the total charge.

Before this I tried to count the charge through SteppingAction and fGeomBoundary flag (as here, but the result was totally wrong. I don't understand how to verify that particle actually enter or leave volume, don't reflect from boundary and so on.
Is there any correct way to count total charge in volume from SteppingAction?

 Add Message Add Message
to: "Total charge of volume"

 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 ]