Message: Re: Assignation of SD to a mother volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Assignation of SD to a mother volume 

Forum: Geometry
Re: None Assignation of SD to a mother volume (C Mos)
Re: None Re: Assignation of SD to a mother volume (Michael H. Kelsey)
Re: Question Re: Assignation of SD to a mother volume (C Mos)
Date: 25 Oct, 2012
From: Michael H. Kelsey <Michael H. Kelsey>

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

 Add Message Add Message
to: "Re: Assignation of SD to a mother volume"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]