getLocalPosition definition

Hello,

Excuse for my question, it might be naive but it takes one minute.
I am trying to understand how the function getLocalPosition() works.
I am using it to find the position of the deposited charge in the pixel sensor but I don’t know what is the origin of the coordinate system it is using.

Thank you and best regards,

Hasan

Hi,

The local coordinate systems have the origin at the centre of the bottom-left pixel in a detector.

Kind regards,
Håkan

Simulation Geometry | Allpix Squared :slight_smile:

Thank you @hwennlof and @simonspa .
I had in mind that the coordinate system origin is the center of the lower lef pixel but I didn’t know that this is generalized to all topics and functions.

Thank you and best regards,

Hasan