How to get the orientation of a detector element? [message #11486] |
Thu, 10 February 2011 17:16 |
|
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!
It would be nice if somebody could help me on this matter.
cheers,
Hossein
|
|
|
|
|
|