# Is the existence of a plane required for the AddPixelOnPlane() functions?

**URL:** <https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472>\
**Category:** Garfield++\
**Created:** [June 19, 2021, 9:30am UTC](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472 "2021-06-19T09:30:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Billiot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/henry_billiot/32/25659_2.png) [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Post date:** [June 19, 2021, 9:30am UTC](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472/1 "2021-06-19T09:30:17Z")

</div>

Hi,

As the title suggests, I am curious about whether or not a pixel can only exist on top or bottom of a plane. For example, if I define a top plane (locate at d) and a bottom plane (locate at 0), what would happen if I give the location of the pixel to be somewhere in between (e.g. d/2) instead of either 0 or d?

---

<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:** [June 19, 2021, 9:57am UTC](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472/2 "2021-06-19T09:57:15Z")

</div>

Good question… The pixel will be assigned to the plane that’s closer to the coordinate you gave. If you put it exactly in the middle, I think it will be assigned to the bottom plane.

---

<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:** [July 3, 2021, 9:57am UTC](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472/3 "2021-07-03T09:57:33Z")

</div>

Closed on July 3, 2021, 9:57am UTC

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