# Question about SignalScalingFactor

**URL:** <https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126>\
**Category:** Garfield++\
**Created:** [September 8, 2025, 2:19am UTC](https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126 "2025-09-08T02:19:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Migu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Migu](https://root-forum.cern.ch/u/Migu)\
**Post date:** [September 8, 2025, 2:19am UTC](https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126/1 "2025-09-08T02:19:51Z")

</div>

Hi,

I found that using `SetElectronSignalScalingFactor()` increases the signal amplitude while drifting electrons using `AvalancheMC()`.

Here is the code,

1.With ScalingFactor:

```auto
for (const auto& cluster : tr.GetClusters()) {
    AvalancheMC mc(&sensor);
    mc.SetDistanceSteps(0.005);
    mc.SetElectronSignalScalingFactor(cluster.n);
    mc.AvalancheElectron(cluster.x, cluster.y, cluster.z, cluster.t);
}

```

 ![factorele](https://root-forum.cern.ch/uploads/default/original/3X/e/d/edef1fb309acbcff03ae6fce8de6e410ea48c05e.jpeg)

2.No ScalingFactor:

```auto
for (const auto& cluster : tr.GetClusters()) {
    for (int k = 0; k < cluster.n; ++k) {
      AvalancheMC driftelectron(&sensor);
      driftelectron.SetDistanceSteps(0.005);
      driftelectron.AvalancheElectron(cluster.x, cluster.y, cluster.z, cluster.t);
  }
}

```

 ![normalele](https://root-forum.cern.ch/uploads/default/original/3X/6/d/6d6e8592c2d86c4c13d244ca588a606af5265662.jpeg)

Is it because my scale factor was set incorrectly? What should I do if I want to use `SetElectronSignalScalingFactor()` while also obtaining a signal amplitude similar to that of drift each electron?

---

<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:** [September 8, 2025, 3:06am UTC](https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126/2 "2025-09-08T03:06:40Z")

</div>

Hi,  
how significant is the difference? Could it be statistical fluctuations?

---

<div class="post-metadata">

**Author:** ![Migu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/b487fb/32.png) [@Migu](https://root-forum.cern.ch/u/Migu)\
**Post date:** [September 8, 2025, 9:43am UTC](https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126/3 "2025-09-08T09:43:35Z")

</div>

Hi,

Thanks for the reply. From the graph, it can be seen that the overall amplitude of the electronic signal has doubled by nearly 100 times.

Track generated using `TrackSrim` within each cluster, all electrons have the same starting point, and I think that there should not be such a large difference in signal amplitude.

After adding ion drift:

```auto
for (const auto& cluster : tr.GetClusters()) {
    AvalancheMC mc(&sensor);
    mc.SetDistanceSteps(0.005);
    mc.SetElectronSignalScalingFactor(cluster.n);
    AvalancheMC mcion(&sensor);
    mcion.SetDistanceSteps(0.005);
    mcion.SetIonSignalScalingFactor(cluster.n);
    mc.AvalancheElectron(cluster.x, cluster.y, cluster.z, cluster.t);
    for (const auto& electron : mc.GetElectrons()) {
      const auto& p0 = electron.path[0];
      mcion.DriftIon(p0.x, p0.y, p0.z, p0.t);
    }
  }

```

 ![ion](https://root-forum.cern.ch/uploads/default/original/3X/8/0/805b6f564d7c8d087512acb277ff969b1f946cdf.jpeg)

The sensor I am simulating is a proportional counter, a voltage of 1100V is set on the central anode wire, and there is a large amount of avalanche generated by electrons near it. Due to the short drift line of electrons, the signal caused by this will be smaller than that generated by ions. But the use of ScalingFactor resulted in electron signals exceeding ion signals.

---

<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 22, 2025, 9:43am UTC](https://root-forum.cern.ch/t/question-about-signalscalingfactor/64126/4 "2025-09-22T09:43:38Z")

</div>

Closed on September 22, 2025, 9:43am UTC

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