Message: Hit ccordinates in mother volume coordinates Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Hit ccordinates in mother volume coordinates 

Forum: Hits, Digitization and Pileup
Date: Mar 27, 03:13
From: Emanuele Leonardi <Emanuele Leonardi>

I would like to get the position of a hit in the coordinate system of the mother volume of the sensitive detector which produced the hit.

To get the hit position in the coordinate system of the sensitive detector itself I do:

G4bool TPixSD::ProcessHits(G4Step* aStep,G4TouchableHistory*)
  G4TouchableHandle touchHPre = aStep->GetPreStepPoint()->GetTouchableHandle();
  G4ThreeVector worldPosPre = aStep->GetPreStepPoint()->GetPosition();
  G4ThreeVector localPosPre = touchHPre->GetHistory()->GetTopTransform().TransformPoint(worldPosPre);

How should I modify this so that I get localPosPre in the mother volume coordinates of the sensitive detector?

Thank you

 Add Message Add Message
to: "Hit ccordinates in mother volume coordinates"

 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 ]