|Message: Re: Time Parameterized Simulation for Muon Tomography Instrument||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 dug around for the last few weeks in the dusty archives of the SLAC Hypernews forums, and found an equally dusty old thread from about a decade ago on the same topic:
The answerer, Kevin Lynch, was kind enough to point out that this capability was not available in existing G4 libraries at the time. To the best of my knowledge, it still doesn't exist. He therefore also provided a customized version of the GPS class (and associated classes) which essentially added the capability to specify linear or gaussian particle-injection-time distributions. For the specific instructions of use, I'll refer anybody interested to the above link. The original source code files were also included in that post.
There were a few orphaned classes and objects in the code that I suspect were left over from a more specific application, but I got rid of those and got it working with geant4.10.04.p01. I've attached those files here in case anybody could make use of them. I'll just point out a few things though:
-I did NOT write this code. It was kindly provided by K. Lynch as mentioned above. I just brought it up to date.
-Most of the edits I made were to comment out certain lines of code. All original code is still in the attached files; Anything commented out was broken; any supplemental code added in should have a comment on the same line "//MOD".
- I have verified the code for the application that I'm working on with a space-based detector (as mentioned in the original post) and so far, so good, but I strongly recommend anybody using this code independently verify functionality.
-There was, and is, no documentation for this code; and it has yet to be included (as far as I know) in the main G4 repositories.
Hope this helps. -D. Hodge
Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-25127-2GeneralParticleSource.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-76001-articleSourceMessenger.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-53565-g2SingleParticleSource.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-55837-g2SPSTimeDistribution.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-29264-2GeneralParticleSource.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-67285-articleSourceMessenger.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-18466-g2SingleParticleSource.cc http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2018/06/27/01.19-74841-g2SPSTimeDistribution.cc
|Inline Depth:||Outline Depth:||Add message:|