I noticed that the status StatusHitPlane is not privilegied when a particle left the drift medium trough the plane when the sensor area has the same size as the plane. For instance if I have a AddPlaneX with ComponentAnalyticField at x1 and the sensor are delimited up to x1, the status of the particle wont be StatusHitPlane but StatusLeftDriftArea instead.
Hi,
good question… The rationale behind is to first check whether the end point of a drift line step is outside the active area. If this is not the case (i. e. if the point is inside an active medium), a check is done whether the particle crossed a plane along its step.
In my specific case, I define two component one ComponentGridand one ComponentAnalyticFieldwith two planes to simulate a plane parallel IC. My x-axis limits (in the drift direction of the particles) are the same for the mesh gird and for the sensor area and are set at the coordinates of the two planes. Then I can’t count the number of particles crossing them.
I tried to add a small eps to the limits of the sensor area then I have a status StatusLeftDriftMedium. It’s only by adding a small eps to the limits of the sensor are and to the mesh grid that I could achieve the HitPlane’status but it would be preferable in my case to match the gridmesh geometry and the plane electrodes.