next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Implement a different sampling region for the S2 light table / psf #253

Closed gonzaponte closed 4 months ago

gonzaponte commented 4 months ago

This PR splits the EL generators in two: one for PMTs and one for SiPMs. The former generates vertices in a circle with the same diameter as the gate ring. This is the same generator as before but it hardwires the generation area to the gate ring instead of using a parameter. The generator for SiPMs produces vertices in a unit cell centered at the origin. Both cases can be restricted to slices of the EL gap (this was already implemented).

Below are plots showing the distributions of the vertices of the (new) SiPM generator: in x-y s2_sipms_lt

in z (full EL gap) s2_sipms_lt_z_full

in z (partial EL gap) s2_sipms_lt_z_slice

paolafer commented 4 months ago

I realized that we have an obsolete pair of macros as an example for the S2 generation in NEXT100. Maybe you could modify them, so we also have an example for these new vertex regions.

paolafer commented 4 months ago

With the change of macros names, you should also modify macros_test.py, in the pytest folder, to include the strings PSF and LT in the list of "slow" jobs.