Message: Problem with Sensitive Detectors using Primitve Scorer Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problem with Sensitive Detectors using Primitve Scorer 

Keywords: Sensitive Detectors, Primitive Scorer
Forum: Hits, Digitization and Pileup
Date: 12 Sep, 2007
From: Slawomir Suchy <>

Hello Everybody, 

I ran into a problem when I tried to make my detectors Sensitive. 
I used Example N07 as a guideline to figure out how this works and 
implemented it on my program. Example N07 compiles and runs without problems. 
(At least with no Seg Fault)
My program compiles without an error message, but 
when I run the program I get an segmentation fault at line:


I doublechecked that the logic is defined and now I am running out of ideas.

My code for this part looks like that: I am looping through multiple detectors, 
each having 4 logical volumes. For this test I just used Module 1 and Detector 1. 

for (int j=1;j<2;j++)
      for (int i=1;i<5;i++)
	  G4MultiFunctionalDetector* myScorer 
	    = new G4MultiFunctionalDetector(detName);
           G4VPrimitiveScorer* primitive;
	   primitive = new G4PSEnergyDeposit("eDep");


           // Segmentation fault occurs here

Thanks for your help, Slawo

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

1 None: RE: Problem with Sensitive Detectors using Primitve Scorer   (Makoto Asai - 13 Sep, 2007)
(_ None: RE: Problem with Sensitive Detectors using Primitve Scorer   (Slawomir Suchy - 13 Sep, 2007)
 Add Message Add Message
to: "Problem with Sensitive Detectors using Primitve Scorer"

 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 ]