Message: Re: Problem with muons hit position inside the sensitive volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: Problem with muons hit position inside the sensitive volume 

Forum: Event and Track Management
Re: None Problem with muons hit position inside the sensitive volume (Hector Gomez)
Re: Feedback Re: Problem with muons hit position inside the sensitive volume (Michael H. Kelsey)
Date: 07 Dec, 2017
From: Hector Gomez <Hector Gomez>

> Before recording the hit, you should check the post-step status. Steps
> are always stopped at the boundary of a volume; any energy deposit
> associated with that would be due to continuous ionization energy loss
> along the step up to the boundary. You can test for the "boundary step"
> condition with
> 
>   if (aStep->GetPostStepPoint()->GetStepStatus() == fGeomBoundary) { ...
> 
> You may choose to simply ignore such steps entirely, or alternatively,
> check whether the step's energy deposit (aStep->GetTotalEnergyDeposit())
> is non-zero, or above some threshold dependent upon your situation.
> 
>   -- Michael Kelsey
> 

Thank you very much for the answer! It already helped a lot!

As you mentioned, the "boundary step" condition has allowed me to better understand these energy deposits.

In fact, all these events have non-zero energy since during this last step the muon is always releasing energy along the path due to my configuration. I should take into account this deposit to better reconstruct the deposited energy of the event in my gas volume.

However, I would guess that, since this effect seems to come from the fact that geant4 makes a discretization from a continuous process, the smaller the maximum allowed step would be, the smaller this effect will be. In that sense, what could be the most efficient way to perform a simulation with smaller steps? Directly with setMaxStep? Another more efficient way?

Thanks again!

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

1 None: Re: Problem with muons hit position inside the sensitive volume   (michel maire - 07 Dec, 2017)
 Add Message Add Message
to: "Re: Problem with muons hit position inside the sensitive 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 ]