# Different thresholds in multiple plane setup

**URL:** <https://allpix-squared-forum.web.cern.ch/t/different-thresholds-in-multiple-plane-setup/355>\
**Category:** Simulation / Configuration Questions\
**Created:** [January 21, 2023, 3:00pm UTC](https://allpix-squared-forum.web.cern.ch/t/different-thresholds-in-multiple-plane-setup/355 "2023-01-21T15:00:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sroux](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@sroux](https://allpix-squared-forum.web.cern.ch/u/sroux)\
**Post date:** [January 21, 2023, 3:00pm UTC](https://allpix-squared-forum.web.cern.ch/t/different-thresholds-in-multiple-plane-setup/355/1 "2023-01-21T15:00:54Z")

</div>

Dear allpix-squared developers,

Is there a possibility to set different thresholds for each detector plane in my 3-plane-telescope setup, instead of setting one global threshold for all three planes used?

Thanks very much in advance and regards,  
Sophie Roux

---

<div class="post-metadata">

**Author:** ![hwennlof](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/h/3ab097/32.png) [@hwennlof](https://allpix-squared-forum.web.cern.ch/u/hwennlof)\
**Post date:** [January 23, 2023, 7:54am UTC](https://allpix-squared-forum.web.cern.ch/t/different-thresholds-in-multiple-plane-setup/355/2 "2023-01-23T07:54:44Z")

</div>

Hi,

It is indeed possible, using the `name` keyword in the digitiser module configuration. This defines for which detector(s) the module is applied. The example `eudet_with_rd53a_dut` shows this, for the digitisation in particular;

```auto
[DefaultDigitizer]
name = "dut_0", "dut_1", "Reference"
electronics_noise = 50e
threshold = 1500e
threshold_smearing = 200e
qdc_smearing = 50e
output_plots = 1
qdc_resolution = 1

[DefaultDigitizer]
type = "mimosa26"
electronics_noise = 13e
threshold = 60e
threshold_smearing = 4e
qdc_smearing = 0e
output_plots = 1
qdc_resolution = 1

```

So, just add three digitisation modules with different thresholds, and specify which detector they apply to by using `name`. This also works e.g. for binding different electric fields to different detectors, so it’s a very handy keyword!

Kind regards,  
Håkan

---

<div class="post-metadata">

**Author:** ![sroux](https://allpix-squared-forum.web.cern.ch/letter_avatar_proxy/v4/letter/s/838e76/32.png) [@sroux](https://allpix-squared-forum.web.cern.ch/u/sroux)\
**Post date:** [January 31, 2023, 12:01pm UTC](https://allpix-squared-forum.web.cern.ch/t/different-thresholds-in-multiple-plane-setup/355/3 "2023-01-31T12:01:26Z")

</div>

Dear Hakan, thanks very much for your answer!  
Best,  
Sophie
