|Message: Re: syntax meaning while registering processes||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
On Wed, 13 Jul 2011 07:27:50 GMT, Athreya Shankar wrote:|
> 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
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
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.
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,