|Message: Re: Assignation of SD to a mother volume||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)|
C Mos writes: > Thank you very much for your clarification. Actually, may I ask another > question now that we are talking about sensitive detectors? > > So in the case of mother and daughter volumes, I will have to assign > each logical volume the same SensitiveDetector object if I want to use > only one to control all the events inside the whole mother volume. Yes, and you can do that. You may also want to consider using the Parallel World functionality and defining a parallel version of the mother volume with a hit-level sensitive detector. > When it comes to creating hits, how could I keep track of all the energy > deposit if for example, a particle goes inside the mother detector (lets > say a gamma), inside it goes pair production, the positron escapes the > mother geometry, undergoes annihilation and one of the 511KeV goes into > my mother detector. If I create a Hit object every time a particle > enters the SD region and deposits non-zero energy, I would have two hits > at the end. Ideally I would like to have only one hit. Is there a proper > way to handle this? Thank you, The simplest way to accumulate "total" quantities per event or per run is with a scoring volume, rather than custom-built SD and Hits. See sections 4.4.5 and 4.4.6 of the Application Developers Book. You may also write your own SD with a single Hit, which just accumulates each time the SD is triggered; that would be reproducing exactly the functionality of the scorers provided in the toolkit. You may also look at the talk on scoring from our recent tutorial (http://geant4.slac.stanford.edu/JLAB2012/Scoring1.pdf) and the associated hands-on exercise (http://geant4.slac.stanford.edu/JLAB2012/HandsOn3/). -- Mike