GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » How to get the orientation of a detector element?
How to get the orientation of a detector element? [message #11486] Thu, 10 February 2011 17:16 Go to previous message
HosseinMoeini is currently offline  HosseinMoeini
Messages: 10
Registered: May 2007
Location: KVI Groningen
occasional visitor

From: *KVI.nl
Dear all,

I was wondering if there's an easy way of retrieving the orientation of a crystal (say, theta and phi) in the pandaroot framework? Using PndEmcHit class, I can get the position and orientation of the center of the crystal.
In order to get the orientation of the crystal itself, I can use the position (x0,y0,z0) of the center of the crystal as well as the position of the center of the, say, front face of the crystal (x1,y1,z1) to obtain the direction of the vector (x1-x0,y1-y0,z1-z0). But then I would need to somehow get the position of the center of the front face of the crystal. And this I don't know how to do! Confused
It would be nice if somebody could help me on this matter. Surprised

cheers,
Hossein
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Emc target pipe hole
Next Topic: barrel geometry in vacuum hits segmentation fault!?
Goto Forum:
  


Current Time: Wed Mar 20 14:33:31 CET 2019

Total time taken to generate the page: 0.02835 seconds