# Issues with a sensors with different pixel sizes as DUT

**URL:** <https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77>\
**Category:** Uncategorized\
**Created:** [July 17, 2023, 2:58pm UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77 "2023-07-17T14:58:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maantone](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@maantone](https://corryvreckan-forum.web.cern.ch/u/maantone)\
**Post date:** [July 17, 2023, 2:58pm UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/1 "2023-07-17T14:58:21Z")

</div>

Dear experts,  
I have a new problem to submit to you…  
I am testing a new pixel detector module as DUT that consists of 4 ROCs and a single sensor.  
Unfortunately, this sensor has 4 different types of pixels:

- “standard” 25x100 um2
- “pixels in the columns where two ROCs are joined” 25x225 um2
- “pixels in the rows where two ROCs meet” 87.5 x 100 um2
- “4 central pixels” 87.5 x 225 um2

On page 28 of the manual, it is stated that currently, the supported geometries are only:

- cartesian mode = all rectangular pixels with the same pixel pitch
- big\_pixels mode = where you can provide a list of rows and columns with pixels that are double the size of the others.
- Hexagonal pixels (not my case)

When I made a first trial without the big pixel option, I clearly got strange residual distributions, and the alignment was not good. So I tried adding the big pixels, but still, since they are not simply double the size of the others but a more specific measurement, the situation improved slightly but didn’t fully resolve.

Furthermore, I cannot observe any correlation in the “local” coordinates but only in the “global” ones. Moreover, Corry provides a warning in the analysis, saying that using big\_pixels in the DUT can lead to undesired results in the analysis.

Therefore, I wanted to ask if there is an already implemented way to accommodate my needs in the DUT, what the problem of using the “big\_pixels” geometry in the DUT is, and why there is a warning. Additionally, in case I need to implement a new “big\_pixel” myself, where do you suggest starting, and which modules should I modify to remain compatible with your release?

Thank you for your time and support,  
Massimiliano

---

<div class="post-metadata">

**Author:** ![hessey](https://corryvreckan-forum.web.cern.ch/user_avatar/corryvreckan-forum.web.cern.ch/hessey/32/30_2.png) [@hessey](https://corryvreckan-forum.web.cern.ch/u/hessey)\
**Post date:** [July 26, 2023, 12:15am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/2 "2023-07-26T00:15:04Z")

</div>

We have similar issues with ATLAS ITk endcap sensors, which have rows with different pitches. We current analyses it as a single row detector, not very friendly (analyse same data multiple times and so on).

My favoured solution (long term) is to split the Detector class in two: a Detector is a specific instance of a sensor design, so a Detector has a position, orientation, type, … as well a a pointer to a sensor type.

A design inherits from a pure virtual base class which guarantees it has conversions from row/col to position and vice-versa, lists of neighbour diodes, etc. - everything that is identical for all similar detectors. Then sensor designs would inherit from this, and implement the methods. E.g. Mimosa26 would be a “SquareSensor” with very simple calculation of local position; a Mimosa26Sensor would be a SquareSensor with pitch and number of rows = number of columns.  
Obviously your sensors would be more difficult to implement.

And so on.

---

<div class="post-metadata">

**Author:** ![lhuth](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lhuth](https://corryvreckan-forum.web.cern.ch/u/lhuth)\
**Post date:** [July 31, 2023, 7:29am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/3 "2023-07-31T07:29:11Z")

</div>

Hi @maantone,

Apologies for the late reply, just back from holidays.

The conservative option would be, if acceptable, to analyse the different sectors individually.

> [@maantone](#):
>
> Corry provides a warning in the analysis, saying that using big\_pixels in the DUT can lead to undesired results in the analysis.

This is due to some histograms that might not support `BigPixelDetector` by having for example a fixed pixel size in the binning.

> [@maantone](#):
>
> where do you suggest starting, and which modules should I modify to remain compatible with your release?

I think the BigPixelDetetcor is a good starting point, which you can try to generalize. But this will have an impact on the histograms in essentially all analysis modules (binning will have to change)

Cheers,  
Lennart

---

<div class="post-metadata">

**Author:** ![lhuth](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lhuth](https://corryvreckan-forum.web.cern.ch/u/lhuth)\
**Post date:** [July 31, 2023, 7:34am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/4 "2023-07-31T07:34:07Z")

</div>

Hi @hessey,

Your suggestion might be a good path for the, as said, long-term improvements. Implementing this in the core of Corry is also feasible. but automatically scaling/splitting all produced plots and the edges between different pixel sizes etc might be difficult.

Cheers,  
Lennart

---

<div class="post-metadata">

**Author:** ![maantone](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@maantone](https://corryvreckan-forum.web.cern.ch/u/maantone)\
**Post date:** [August 7, 2023, 7:19am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/5 "2023-08-07T07:19:54Z")

</div>

Hi @lhuth,  
thanks for the reply.  
Unfortunately, I’m afraid the idea of analyzing multiple times might not work, but maybe I’m mistaken…  
Let me explain it better: Here you’ll find the image with the dimensions and the number of columns and rows of our sensor.

 ![Screenshot 2023-08-07 alle 09.08.51](https://corryvreckan-forum.web.cern.ch/uploads/default/original/1X/5f9fbe0c210282648281193b315269c9ef8d6bf3.png)

I’m not sure how the alignment of Corry works, but if it uses millimeters and sensor coordinates, how can I align assuming that the entire sensor is, for example, 100x25 pixels? After the columns with the big pixels (216 and 217), I expect the alignment to no longer be correct but to have an offset, and the same holds true if I were to consider a DUT with only large pixels. Or am I mistaken?  
Furthermore, for the efficiency calculation, if the reconstructed track and the center of gravity of the cluster are shifted due to the altered mapping, how can it yield a correct result?  
The same applies to resolution and residuals, as masking the big pixels, for instance, would result in incomplete clusters.

Thank you for your answers and support

Cheers,  
Massi

---

<div class="post-metadata">

**Author:** ![lhuth](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lhuth](https://corryvreckan-forum.web.cern.ch/u/lhuth)\
**Post date:** [September 13, 2023, 1:56pm UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/6 "2023-09-13T13:56:06Z")

</div>

Hi Massi,

first of all my apologies for ignoring that post - the forum is not sending notifications to me ☹

One option to implement this would be a new pixel-detector class that takes care of all the different sub-matrices you have. Subpixel plots etc need to be defined for the different regions in that case. This can get rather complex…

You likely need to realign for each submatrix

---

<div class="post-metadata">

**Author:** ![maantone](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/df788c/32.png) [@maantone](https://corryvreckan-forum.web.cern.ch/u/maantone)\
**Post date:** [October 11, 2023, 9:23am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/7 "2023-10-11T09:23:20Z")

</div>

Dear @lhuth together with Chin-Chia we think we manage to change accordingly the code.  
I have created a new branch to try to keep the changes clear and we will try to ask a merge request as soon as we will be sure that everything works everywhere 🙂 but maybe we will need your help for the integration in corry official repository.  
Anyhow now we can align, use and analyse the data!

Cheers,  
Massi

---

<div class="post-metadata">

**Author:** ![lhuth](https://corryvreckan-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/6a8cbe/32.png) [@lhuth](https://corryvreckan-forum.web.cern.ch/u/lhuth)\
**Post date:** [October 11, 2023, 9:25am UTC](https://corryvreckan-forum.web.cern.ch/t/issues-with-a-sensors-with-different-pixel-sizes-as-dut/77/8 "2023-10-11T09:25:09Z")

</div>

cool - looking forward to the MR 🙂
