Message: replicas+sensitive detectors Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad replicas+sensitive detectors 

Forum: Event and Track Management
Date: 07 Jun, 2009
From: Eleni <Eleni>

Hello all I ran into a problem with replicas and how do I determine that each slice of my block is an individual sensitive detector. Searching the forum I noticed that I should use :

---------------------------------------------------------------
// get info which detector box was hit
  G4Step aStep;
  G4int repDepth = aStep->GetPreStepPoint()->GetTouchable()->GetHistory()->GetDepth()
  G4int repNrX   = aStep->GetPreStepPoint()->GetTouchable()->GetHistory()->GetReplicaNo(repDepth-1);
  G4int repNrY   = aStep->GetPreStepPoint()->GetTouchable()->GetHistory()->GetReplicaNo(repDepth);
  G4int repNrZ   = aStep->GetPreStepPoint()->GetTouchable()->GetHistory()->GetReplicaNo(repDepth-2);
------------------------------------------------------------------ 

The problem is that I don't know how to deal with that. Is there any example in G4 that uses the code above?

Thanks in advance

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

1 Feedback: Re: replicas+sensitive detectors   (Gumplinger Peter - 08 Jun, 2009)
 Add Message Add Message
to: "replicas+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 ]