|Message: Manually creating PMT hits like in the LXe example||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 have written a code for a NaI detector covered with teflon and coupled to one PMT. I implemented the optical photon and the code compiled and ran fine until I tried to make the PMT a sensitive detector and collect some information about my optical photons.
What happens now is that the code compiles fine, and runs fine if no optical photons are generated. However I get a "Segmentation Fault" when the event involves optical photons. My hunch is that I am making some mistake when I try to "manually create a hit" at my photocathode interface (I tried to follow what is being done for LXe), i.e. in my myDetPMTSD.cc file. Another file where there may be a mistake is myDetSteppingAction.cc or myDetEventAction.cc (this also follows what is done in LXe).
I reread those files, however I am not able to spot my mistake. I am attaching the files where I think the problem may be. I would appreciate if you could please look at the above mentioned files in particular (i.e. myDetPMTSD.cc, myDetSteppingAction.cc, myDetEventAction.cc) and let me know where you think my mistake is and how to correct for it.
Thank you, Clarisse
Attachment: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-63612-tDetectorConstruction.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.16-1921-etDetectorConstruction.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-71258-cint_myDetEventAction.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.16-73563-Scint_myDetEventAction.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-33234-withScint_myDetPMTHit.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.16-23255-_withScint_myDetPMTHit.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-62708-_withScint_myDetPMTSD.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.16-36928-I_withScint_myDetPMTSD.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-40014-t_myDetSteppingAction.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.19-66703-nt_myDetSteppingAction.hh http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.24-15312-tUserEventInformation.cxx http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2009/03/26/11.24-18806-etUserEventInformation.hh
|Inline Depth:||Outline Depth:||Add message:|