Message: Re: syntax meaning while registering processes Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: syntax meaning while registering processes 

Forum: Physics List
Re: Question syntax meaning while registering processes (Athreya Shankar)
Date: 13 Jul, 2011
From: Joel Long <Joel Long>

On Wed, 13 Jul 2011 07:27:50 GMT, Athreya Shankar wrote:
> hello,
>
> When registering a process, say, bremsstrahlung for a particle, we write
> in the following syntax:
>
> pmanager->AddProcess(new G4eBremsstrahlung, -1, 3,3);
>
> In this syntax, what is the meaning of the numbers -1,3,3?
>
> Thanks in advance, Athreya
>

Hello Athreya,

When in doubt about what a function does or what its arguments mean, look at the documentation in the header file for a class. In this case, from http://www-geant4.kek.jp/lxr/source//processes/management/include/G4ProcessManager.hh, starting at line 187.

187 G4int AddProcess(
188 G4VProcess *aProcess,
189 G4int ordAtRestDoIt = ordInActive,
190 G4int ordAlongSteptDoIt = ordInActive,
191 G4int ordPostStepDoIt = ordInActive
192 );
193 // Add a process to the process List
194 // return values are index to the List. Negative return value
195 // indicates that the process has not be added due to some errors
196 // The first argument is a pointer to process.
197 // Following arguments are ordering parameters of the process in
198 // process vectors. If value is negative, the process is
199 // not added to the corresponding process vector.
200
201 // following methods are provided for simple processes
202 // AtRestProcess has only AtRestDoIt
203 // ContinuousProcess has only AlongStepDoIt
204 // DiscreteProcess has only PostStepDoIt
205 // If the ording parameter is not specified, the process is
206 // added at the end of List of process vectors
207 // If a process with same ordering parameter exists,
208 // this new process will be added just after processes
209 // with same ordering parameter
210 // (except for processes assigned to LAST explicitly )
211 // for both DoIt and GetPhysicalInteractionLength

Hope this helps,
Joel

 Add Message Add Message
to: "Re: syntax meaning while registering processes"

 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 ]