GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » How to get the orientation of a detector element?
Re: How to get the orientation of a detector element? [message #11488 is a reply to message #11486] Thu, 10 February 2011 22:22 Go to previous messageGo to previous message
Dima Melnychuk is currently offline  Dima Melnychuk
Messages: 213
Registered: April 2004
Location: National Centre for Nucle...
first-grade participant
From: *
Hi Hossein,

To retrieve orientation of a crystal in pandaroot framework you can use the PndEmcStructure class which actually extract information on position and orientation of the crystals from the root geometry to provide it for reconstruction algorithm.

In this class the map is filled fTciXtalMap between the crystal index presented in the form of PndEmcTwoCoorIndex (tci) object and PndEmcXtal which provide different method to access position and orientation of the crystal. I suppose

TVector3 PndEmcXtal::normalToFrontFace()

return something you want.

You can look into PndEmcClusterProperties::LiloWhere() to see how it is actually used.

And there could be the diffrence to call it withing the task or in macro, in the PndEmcClusterProperties::LiloWhere() it is called within the task and in macro I can foresee additional complications.

If this hint does not help, let me know and will try to provide more detailed example.

Best regards,

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: Mon Jul 22 15:34:46 CEST 2024

Total time taken to generate the page: 0.00816 seconds