gspandre / xpesim

Simulation tool for the X-ray Polarimetry Explorer
GNU General Public License v3.0
0 stars 0 forks source link

fix TReadout::PositiontoMatrix #6

Open csgro opened 8 years ago

csgro commented 8 years ago

Apparently id does not map hexagons in current implementation. Need to find where the bug is. Alternatively, implement a new schema based e.g. on http://www.redblobgames.com/grids/hexagons/

csgro commented 8 years ago

I just added the file THexconvert.h with the routines for mapping a position to a hex coordinate system an then to xpol one. The function to use it is added to TReadout::Position2Xpol, a quick test indicates it works, but full test with recon etc is required. Old function PositiontoMatrix is untouched.