Message: RE: Making multiple sensitive Detectors - a probelm Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Making multiple sensitive Detectors - a probelm 

Forum: Hits, Digitization and Pileup
Re: Question Making multiple sensitive Detectors - a probelm (Laura Harkness)
Date: 18 Dec, 2007
From: Makoto Asai <Makoto Asai>

Hi,

 The way you defined your two detectors looks fine, but please 
double-check that these declaration lines are not executed 
more than necessary in your looped geometry. I would rather
suspect there would be a problem in how you access to your 
hits collections in your event action or somewhere you wrote 
this output. Could you please post that part of your code?

Makoto 

> -----Original Message-----
> From: ljh@ns.ph.liv.ac.uk [mailto:ljh@ns.ph.liv.ac.uk] 
> Sent: Tuesday, December 18, 2007 10:38 AM
> To: publichypernews
> Subject: Making multiple sensitive Detectors - a probelm
> 
> *** Discussion title: Hits, Digitization and Pileup
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/hitsdigits/186"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Hi,
> 
> I am simulating a compton camera arrangement and so have two detectors
> with gamma interactions, (currently set at <1MeV incoming).
> 
> I have tried to set the two detectors to be sensitive, which I believe
> works, but when I output the hit information I find something strange:
> 
> --->Hits Collection: in this event there are 0 hits in the 
> detector : BUT SHOWS TWO HITS
>   trackID: 1  time: 325.428 ps   SPDetector No: 0  energy 
> dep: 11.067 keV
>   trackID: 2  time: 325.492 ps   SPDetector No: 0  energy 
> dep: 134.739 keV
> 
> --->Hits Collection: in this event there are 2 hits in the detector : 
>   trackID: 1  time: 325.428 ps   SPDetector No: 0  energy 
> dep: 11.067 keV
>   trackID: 2  time: 325.492 ps   SPDetector No: 0  energy 
> dep: 134.739 keV
> 
> --->Hits Collection: in this event there are 0 hits in the 
> detector : BUT SHOWS TWO HITS
>   trackID: 1  time: 162.511 ps   SPDetector No: 0  energy 
> dep: 11.067 keV
>   trackID: 2  time: 162.581 ps   SPDetector No: 0  energy 
> dep: 145.671 keV
> 
> --->Hits Collection: in this event there are 2 hits in the detector : 
>   trackID: 1  time: 162.511 ps   SPDetector No: 0  energy 
> dep: 11.067 keV
>   trackID: 2  time: 162.581 ps   SPDetector No: 0  energy 
> dep: 145.671 keV
> 
> --->Hits Collection: in this event there are 0 hits in the 
> detector : BUT SHOWS THREE HITS
>   trackID: 1  time: 183.959 ps   SPDetector No: 0  energy 
> dep: 129.166 keV
>   trackID: 1  time: 205.561 ps   SPDetector No: 0  energy 
> dep: 61.9996 keV
>   trackID: 1  time: 208.869 ps   SPDetector No: 0  energy 
> dep: 14.6158 keV
> 
> --->Hits Collection: in this event there are 3 hits in the detector : 
>   trackID: 1  time: 183.959 ps   SPDetector No: 0  energy 
> dep: 129.166 keV
>   trackID: 1  time: 205.561 ps   SPDetector No: 0  energy 
> dep: 61.9996 keV
>   trackID: 1  time: 208.869 ps   SPDetector No: 0  energy 
> dep: 14.6158 keV
> 
> So I appear to be duplicating the hits collection rather than 
> looking at
> the detectors independently. I don't understand if this is a 
> problem in
> my detectorHits file or my sensitivedetector file or if I haven't
> declared the sensitive detectors correctly:
> 
>  G4SDManager *SDman = G4SDManager::GetSDMpointer(); 
>   SPDetectorSD* aDetectorSD = new SPDetectorSD( detName[i] );
>   SDman->AddNewDetector( aDetectorSD );
>   detector_log[i]->SetSensitiveDetector(aDetectorSD);
> 
> (within a large looped geometry)
> 
> Any advice would be greatly appreciated,
> 
> thanks in advance,
> 
> Laura
>     
> 

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

 Add Message Add Message
to: "RE: Making multiple sensitive Detectors - a probelm"

 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 ]