|Message: Re: access to cross section values||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)|
User Andy Goedicke wrote:
>> Hi, >> >> maybe someone of you has a clever idea solving the following problem I >> currently stuck with: >> >> During the simulation I need to get NIST like information about the >> different cross section values for: >> >> * a given (previously introduced) material >> * a specific particle type >> * a specific process (previously assigned to this particle) >> >> Although Geant4 permanently has to handle this data for particle >> tracking I could not find a method to get access to it. All I saw up to >> now is, that each process provides a methode called >> 'GetMeanFreePath(...)' which requires a valid G4Track handle. >> Unfortunately, every time I create and pass an 'artificial' G4Track >> object to this methode, I get a segmentation violation for unknown >> reasons. Any idea? >> >> Thanks in advance! >> >> Regards Andy
During past year there were some progresses on this area, so we can suggest you few reasonnable hints for standard electromagnetic package in geant4.7.0
DEdx, range, crossSection, meanFreePath of Ionisation and Bremsstrahlung can be acceded via the new utility class G4EmCalculator.
Examples of use of this class can be found in EndOfRunAction of examples/extended/electromagnetic/TestEm1 or TestEm5
the class G4EmCalculator is located in geant4/source/processes/electromagnetic/utils
Photon processes (photoElectric, Compton, gammaConversion) does not yet fit in this scheme (will come ...), but all of them have public methods like ComputeCrossSectionPerAtom() and ComputeMeanFreePath() which do not require internal Geant4 objects in argument.
|Inline Depth:||Outline Depth:||Add message:|