Beam inclination

Dear Allpix experts,

I need to simulate the response of a 2-layer Timepix3 detector to protons at different angles.
In the case of 1-layer detector, I have no problem, the detector can be rotated easily through the geometry file.

But, in the case of 2 layers, I have a problem because I rotate each detector separately relative to their centers, which is not what I need. I need to rotate them as one assembly relatively to the point, which is in between two detectors.

I tried configuring the beam inclination through the GPS file, but it’s kinda complex…

I would be happy to hear your comments and suggestions.

Best regards,
Petr

Hi @psmolyan

I hope, this helps!

All the best,
Simon

Hi @simonspa

Thanks for the suggestions!

As I understood beam_direction is unit vector, so I can’t do arbitrary angle.

So I guess I will go for GPS file configuration.

Thanks.

Best regards,
Petr

Hi @psmolyan

the vector is a unit vector since it’s only a direction, but since you can use floating-point values for the entries, any direction is possible.

Also, in the code we will normalize the final vector, so you don’t have to care about the unity when setting the config.

Best,
Simon