You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Detectors/TRD/simulation/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,4 +80,4 @@ A B
80
80
```
81
81
In this example, we consider a trigger at `t=A`. The second signal contributes with `(B-C)*samplingRate` bins from its head onto the tail of the first signal. A third signal arrives at `t=E`, with `E>A+BUSY_TIME`, which can trigger the detector and be readout. The third signal will have `(D-E)*samplingRate` from the tail of the second signal onto its head. So, the requirement for a signal to be too old, and be dropped, is:
82
82
- new trigger arrives, and
83
-
- the time difference between the first time bin of the previous signal and the new trigger is greater than `READOUT_TIME`.
83
+
- the time difference between the first time bin of the previous signal and the new trigger is greater than `TRDSimParams.readoutTimeNS`.
Copy file name to clipboardExpand all lines: Detectors/TRD/simulation/src/PileupTool.cxx
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
// or submit itself to any jurisdiction.
11
11
12
12
#include"TRDSimulation/PileupTool.h"
13
+
#include"TRDSimulation/TRDSimParams.h"
13
14
14
15
usingnamespaceo2::trd;
15
16
usingnamespaceo2::trd::constants;
@@ -28,7 +29,7 @@ SignalContainer PileupTool::addSignals(std::deque<std::array<SignalContainer, co
28
29
// check if the signal is from a previous event
29
30
if (signalArray.firstTBtime < triggerTime) {
30
31
pileupSignalBecomesObsolete = true;
31
-
if ((triggerTime - signalArray.firstTBtime) > constants::READOUT_TIME) { // OS: READOUT_TIME should actually be drift time (we want to ignore signals which don't contribute signal anymore at triggerTime)
32
+
if ((triggerTime - signalArray.firstTBtime) > TRDSimParams::Instance().readoutTimeNS) { // OS: READOUT_TIME should actually be drift time (we want to ignore signals which don't contribute signal anymore at triggerTime)
//BUSY_TIME = READOUT_TIME + DEAD_TIME, if less than that, pile up the signals and update the last time
111
-
LOGF(debug, "Collision %lu Not creating new trigger at time %.2f since dT=%.2f ns < busy time of %.1f us", collID, currentTime.getTimeNS(), dT, constants::BUSY_TIME / 1000);
110
+
if (dT < mParams.busyTimeNS) {
111
+
//busyTimeNS = readoutTimeNS + deadTimeNS, if less than that, pile up the signals and update the last time
112
+
LOGF(debug, "Collision %lu Not creating new trigger at time %.2f since dT=%.2f ns < busy time of %.1f us", collID, currentTime.getTimeNS(), dT, mParams.busyTimeNS / 1000);
112
113
isNewTrigger = false;
113
114
mDigitizer.pileup();
114
115
} else {
@@ -131,7 +132,7 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer
131
132
triggerTime = currentTime;
132
133
digits.clear();
133
134
labels.clear();
134
-
if (triggerTime.getTimeNS() - previousTime.getTimeNS() > constants::BUSY_TIME) {
135
+
if (triggerTime.getTimeNS() - previousTime.getTimeNS() > mParams.busyTimeNS) {
135
136
// we safely clear all pileup signals, because any previous collision cannot contribute signal anymore
136
137
mDigitizer.clearPileupSignals();
137
138
}
@@ -195,6 +196,7 @@ class TRDDPLDigitizerTask : public o2::base::BaseDPLDigitizer
0 commit comments