|Message: Re: optical photons in plastic scintillator||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)|
> I am using geant4-09-05-patch-02. I have a plastic scintillator > implementation which has scintillation yield 8400/MeV. I get sometimes > several tens of thousands of optical photons in an event in my > scintillator and in such a case subsequently the Geant4 runs are > extremely slow...(~several seconds per event, while previously I had > around 100 times faster event rate).
Sorry, but what do you mean with 'previously'; do you mean without tracking optical photons or in an earlier version of G4?
Clearly, tracking thousands of tracks is going to slow your simulation right down. What you can do, should you know the photo efficiency of your photon detector, is apply it in StackingAction and don't bother tracking those that don't survive.
You can also reduce the scintillation yield by 1/F, knowing that your simulation is biased now and that counting rate results need to be multiplied by F. Often it is not necessary to simulate the full photon statistics to get an idea of ones investigation within your allowed errors.
> Is there any other parameter that might speed up the code? Perhaps some > additional/coarser step limits can be configured for these guys?
These guys (optical photons) bounce from geometry boundary to geometry boundary until they are absorbed somewhere. Steplimiter don't apply to them.
> Or other suggestions how to speed up the optical photon processsing in > Geant?
The G4 navigator is perhaps not the fastest stepper out there and the logic in G4OpBoundaryProcess is lengthy (there are dedicated optical simulators available that are reportedly faster) but the great advantage of G4 is that you can do this type of simulation in complicated geometries.
|Inline Depth:||Outline Depth:||Add message:|