# What is the default/assumed induced charge when calculating electronics response function?

**URL:** <https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166>\
**Category:** Garfield++\
**Created:** [August 27, 2023, 5:26pm UTC](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166 "2023-08-27T17:26:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [August 27, 2023, 5:26pm UTC](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166/1 "2023-08-27T17:26:31Z")

</div>

Dear experts

When I’m using `Sensor::SetTransferFunction(const std::vector<double>& times, const std::vector<double>& values)` I expected that:  
when I set signal to 1 fC by using `SetSignal(label, bin, signal) `where bin = 0 and signal = 1, I should get the exact same waveform of transfer function, but seems I got a smaller peak value which I don’t understand why (actually it’s 5 times smaller)  
And, also I noticed that the unit of `std::vector<double>$ times` is actually `us` but not `ns`, is that written somewhere…? Because I saw the users guide says the time unit is ns.

Sorry those are 2 different questions above…

---

<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:** [August 27, 2023, 7:09pm UTC](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166/2 "2023-08-27T19:09:28Z")

</div>

Hi,

`SetSignal` sets the **current** in a given bin. What bin width did you use?

Regarding the time units, I guess you are referring to this example?

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

The times in the text file are indeed μs but the values are converted to ns when reading in the file (line 35).

---

<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:** [September 10, 2023, 7:10pm UTC](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166/3 "2023-09-10T19:10:15Z")

</div>

Closed on September 10, 2023, 7:10pm UTC

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