# How to obtain the transfer function for front end electronics?

**URL:** <https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409>\
**Category:** Garfield++\
**Created:** [April 8, 2023, 4:13pm UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409 "2023-04-08T16:13:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uruj](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/a87d85/32.png) [@Uruj](https://root-forum.cern.ch/u/Uruj)\
**Post date:** [April 8, 2023, 4:13pm UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409/1 "2023-04-08T16:13:06Z")

</div>

Hello,

I am trying to simulate a drift chamber, but I don’t know how to write the transfer function for the front-end electronics. Can someone please provide me with some references for this?

Thank you

---

<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:** [April 10, 2023, 5:04pm UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409/2 "2023-04-10T17:04:01Z")

</div>

Hi,  
you can define a function which takes a `double` (time in ns) as input and returns a `double` (value of the transfer function) and pass a pointer to your “Sensor”:

> **[Examples/Tcad/pixel.C · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/Tcad/pixel.C)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

Or you can specify a list of times and corresponding values of the transfer function as is done in this example:

> **[Examples/DriftTube · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/tree/master/Examples/DriftTube)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

Or you could use the helper class “Shaper” which has predefined expressions for unipolar and bipolar shapers, see Section 7.1 of the user guide:

> **[UserGuide.pdf](https://garfieldpp.web.cern.ch/garfieldpp/documentation/UserGuide.pdf)**
>
> 719.35 KB

---

<div class="post-metadata">

**Author:** ![Uruj](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/u/a87d85/32.png) [@Uruj](https://root-forum.cern.ch/u/Uruj)\
**Post date:** [April 17, 2023, 10:00am UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409/3 "2023-04-17T10:00:31Z")

</div>

Thank you

---

<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:** [May 1, 2023, 10:01am UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409/4 "2023-05-01T10:01:12Z")

</div>

Closed on May 1, 2023, 10:01am UTC

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