# StatusHitPlane VS StatusLeftDriftArea

**URL:** <https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442>\
**Category:** Garfield++\
**Created:** [November 26, 2025, 3:16pm UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442 "2025-11-26T15:16:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pigerard](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pigerard/32/37607_2.png) [@pigerard](https://root-forum.cern.ch/u/pigerard)\
**Post date:** [November 26, 2025, 3:16pm UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/1 "2025-11-26T15:16:15Z")

</div>

Hi,

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.

Is this an intentional behavior ?

Thanks for your help !

Pierre

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 26, 2025, 7:09pm UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/2 "2025-11-26T19:09:23Z")

</div>

Hello,

Adding @hschindl in the loop.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [November 27, 2025, 6:37am UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/3 "2025-11-27T06:37:12Z")

</div>

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.

Is it an issue for your application?

---

<div class="post-metadata">

**Author:** ![pigerard](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pigerard/32/37607_2.png) [@pigerard](https://root-forum.cern.ch/u/pigerard)\
**Post date:** [November 27, 2025, 8:15am UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/4 "2025-11-27T08:15:43Z")

</div>

Hi Heinrich,

In my specific case, I define two component one `ComponentGrid`and one `ComponentAnalyticField`with 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.

---

<div class="post-metadata">

**Author:** ![pigerard](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pigerard/32/37607_2.png) [@pigerard](https://root-forum.cern.ch/u/pigerard)\
**Post date:** [December 2, 2025, 5:03pm UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/5 "2025-12-02T17:03:56Z")

</div>

Hi @hschindl ,

Is there another possible way to make this check ?

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 16, 2025, 5:04pm UTC](https://root-forum.cern.ch/t/statushitplane-vs-statusleftdriftarea/64442/6 "2025-12-16T17:04:00Z")

</div>

Closed on December 16, 2025, 5:04pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
