Message: Sensitive detector problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Sensitive detector problem 

Forum: Hits, Digitization and Pileup
Date: 05 Jul, 2013
From: sergi <sergi>

Dear Geant4Users,

I am quite new with Geant4 and I am not able to solve this problem: I am simulating slow neutrons (0.025 eV) hitting a boron layer (tren_log). I want to know how many alpha particles (from the interaction between neutrons and boron) reach the detector (det_log), which is my sensitive detector. Before counting the alphas I am trying to count only the energy deposit without restrictions to understand what is going on but i have a segmentation fault when a particle interacts with my sensitive detector (det_log).

I thing that the error could be in the ProcessHits or in the way I have defined the sensitive detector but after checking some example I can not find a solution to my problem. My code is simple and it is similar of task5b from Geant4User' tutorial (Geant4 Beginner course, Belfast).

   Attachment:

Main: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-63425-new.cc

Detector Construction: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-29050-DetectorConstruction.cc

Sensitive detector header class: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-71532-newSD.hh

Hit header class: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-60212-newHit.hh

Sensitive detector source class: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-30355-newSD.cc

Hit source class: http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2013/07/05/06.28-25101-newHit.cc

I will be very grateful if somebody could help me! Thank you very much.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Sensitive detector problem   (Tsukasa Aso - 05 Jul, 2013)
(_ Question: Re: Sensitive detector problem   (Esteban - 09 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Tsukasa Aso - 09 Jul, 2013)
(_ Question: Re: Sensitive detector problem   (Esteban - 19 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Tsukasa Aso - 20 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Esteban - 22 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Tsukasa Aso - 22 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Esteban - 22 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Tsukasa Aso - 22 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Esteban - 23 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Tsukasa Aso - 23 Jul, 2013)
(_ None: Re: Sensitive detector problem   (Esteban - 24 Jul, 2013)
 Add Message Add Message
to: "Sensitive detector problem"

 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 ]