# How to use the AddWhiteNoise() function to input your own expected noise?

**URL:** <https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635>\
**Category:** Garfield++\
**Created:** [July 2, 2022, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635 "2022-07-02T13:14:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yinxiaohao](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/e79b87/32.png) [@yinxiaohao](https://root-forum.cern.ch/u/yinxiaohao)\
**Post date:** [July 2, 2022, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635/1 "2022-07-02T13:14:05Z")

</div>

Hello,  
I have a question, does the magnitude of the equivalent noise charge (ENC), the first parameter in the AddWhiteNoise() function, have an effect on the magnitude and frequency of the noise we input?

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [July 4, 2022, 7:32am UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635/2 "2022-07-04T07:32:44Z")

</div>

Hello,

Perhaps @hschindl can give a hand? Thanks!

---

<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:** [July 5, 2022, 9:04am UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635/3 "2022-07-05T09:04:55Z")

</div>

Hi,  
apologies for the late reply. Yes, the ENC does affect the number of noise pulses (if the `poisson` flag is set to `true`) added to the induced current signal or the σ of the noise added to each signal bin (with `poisson == false`) .

For a more detailed description see page 87, section 7.1.1 of the [user guide](https://garfieldpp.web.cern.ch/garfieldpp/documentation/UserGuide.pdf).

---

<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 19, 2022, 9:05am UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-to-input-your-own-expected-noise/50635/4 "2022-07-19T09:05:02Z")

</div>

Closed on July 19, 2022, 9:05am UTC

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