Message: Changing/Managing Sensitive Detectors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Changing/Managing Sensitive Detectors 

Forum: Hits, Digitization and Pileup
Date: 18 May, 2005
From: Ben Morgan <Ben Morgan>


I've been writing an application using the N03 example as a model to change the geometry of my detector between runs. However, the nature of the simulation means that the number and type of the sensitive detectors used should also change as different detectors are changed. For instance, I might change the SD of a germanium crystal from one that simply records the energy deposited to one that records energy, time and position.

The problem is that I'm not sure how to correctly manage sensitive detectors in G4SDManager. Unlike the geometry stores (G4LogicalVolumeStore etc), there's no equivalent G4SDManager::Clean() method, and I can't delete the singleton instance of G4SDManager without incurring a segmentation fault (simply deleting the instance returned by GetSDMpointer or GetSDMpointerIfExist). So my question is what's the correct way to manage changes in the type and setup of sensitive detectors between runs? I'd be most grateful for any help or suggestions! Thanks,

Ben Morgan.

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

 Add Message Add Message
to: "Changing/Managing Sensitive Detectors"

 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 ]