Message: Re: G4UserLimits: random walk Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: G4UserLimits: random walk 

Forum: Event and Track Management
Re: Question G4UserLimits: random walk (Daniel Barna)
Re: None Re: G4UserLimits: random walk (Vladimir IVANTCHENKO )
Date: 01 Oct, 2004
From: Daniel Barna <Daniel Barna>

> Hi,
> 
> This G4UserLimits are useful when one has a complecate geometry and wish 
> to establish limits only for specific Logical Volume. Moreover step limit 
> functionality is taken out of it. The more easy way to limit step is 
> provided in electromagnetic_lists subdirectory - StepMax class and its 
> messenger. Our exmples extended/electromagnetic/... show how to use this 
> StepMax.

Hello,

'Taken out of it' means that somewhere hidden in the source code this parameter is ignored (or, even causes something strange?). But the interface of G4UserLimits still offers this (as a parameter in its constructor, and as a member function). Since the max step size was the first among the arguments of the constructor, I understand that it was not taken out, since in this case all arguments would shift by one, and having default arguments, this would cause much bigger problems than the current one, when compiling old code. But I would prefer a warning message and an abort in the case the user tries to set maxstepsize in G4UserLimits. This would certainly draw the attention of developers to the change. And, the member function setting this parameter could have been removed from the source code, again a 'hint' for developers that this functionality has been removed from this class. The tutorials still suggest this way of limiting the step size.

Thank you, Daniel

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

 Add Message Add Message
to: "Re: G4UserLimits: random walk"

 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 ]