Message: Re: Syntax Meaning Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Syntax Meaning 

Keywords: Syntax Meaning
Forum: Documentation and Examples
Re: More Syntax Meaning
Date: 05 Aug, 2002
From: michel maire <michel maire>

User wrote:

>> Hi,
>> 
>> I just want to ask about the meaning of the numbers on these
>> lines/codes:
>> 
>>       pmanager->AddProcess(new G4MultipleScattering,-1, 1,1);
>>       pmanager->AddProcess(new G4eIonisation,       -1, 2,2);
>>       pmanager->AddProcess(new G4eBremsstrahlung,   -1,-1,3);
>>       pmanager->AddProcess(new G4eplusAnnihilation,  0,-1,4);      
>> 
>> Just guessing. Could this mean charge, spin, process Ordering,
>> respectively?
>> 
>> Thank you...
>> 
>> zaldy

Each process may (or may not) have 3 kinds of action : AtRest,AlongStep, PostStep (for the exact meaning of this, see UserGuide).

Therefore the processManager handles 3 independent ordered lists of processes. The numbers in AddProcess() refer to these lists.

-1 means no action, 0 is the first of the list. For instance eplusAnnihilation 0,-1,4 is the first AtRest action, has no AlongStep action and is the fifth PostStep action.

NB. the Transportation itself IS a process which is mandatory and implicit (ie. registered by default)and must be the first. It correspond to AddProcess(new Transportation, -1,0,0)

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

 Add Message Add Message
to: "Re: Syntax Meaning"

 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 ]