Skip to content

Commit 77eeeb1

Browse files
committed
[ALICE3] TRKFT3: Digitizer.cxx pass the correct time relative to ROF to registerDigits
1 parent 83bcc99 commit 77eeeb1

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎Detectors/Upgrades/ALICE3/TRKFT3/common/simulation/include/TRKFT3Simulation/Digitizer.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class Digitizer
9494

9595
private:
9696
void processHit(const o2::trkft3::Hit& hit, uint32_t& maxFr, int evID, int srcID, int rofLayer);
97-
void registerDigits(o2::trkft3::ChipDigitsContainer& chip, uint32_t roFrame, float tInROF, int nROF,
98-
uint16_t row, uint16_t col, int nEle, o2::MCCompLabel& lbl, int layer, float toa);
97+
void registerDigits(o2::trkft3::ChipDigitsContainer& chip, uint32_t roFrame, float toaInROF, int nROF,
98+
uint16_t row, uint16_t col, int nEle, o2::MCCompLabel& lbl, int layer);
9999

100100
ExtraDig* getExtraDigBuffer(uint32_t roFrame)
101101
{

‎Detectors/Upgrades/ALICE3/TRKFT3/common/simulation/src/Digitizer.cxx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -496,23 +496,23 @@ void Digitizer<DetID>::processHit(const o2::trkft3::Hit& hit, uint32_t& maxFr, i
496496
if (mDeadChanMap && mDeadChanMap->isNoisy(chipID, rowIS, colIS)) {
497497
continue;
498498
}
499-
registerDigits(chip, roFrameAbs, timeInROF, nFrames, rowIS, colIS, nEle, lbl, rofLayer, toaInROF);
499+
registerDigits(chip, roFrameAbs, toaInROF, nFrames, rowIS, colIS, nEle, lbl, rofLayer);
500500
}
501501
}
502502
}
503503

504504
//________________________________________________________________________________
505505
template <int DetID>
506-
void Digitizer<DetID>::registerDigits(o2::trkft3::ChipDigitsContainer& chip, uint32_t roFrame, float tInROF, int nROF,
507-
uint16_t row, uint16_t col, int nEle, o2::MCCompLabel& lbl, int layer, float toaInROF)
506+
void Digitizer<DetID>::registerDigits(o2::trkft3::ChipDigitsContainer& chip, uint32_t roFrame, float toaInROF, int nROF,
507+
uint16_t row, uint16_t col, int nEle, o2::MCCompLabel& lbl, int layer)
508508
{
509509
// Register digits for given pixel, accounting for the possible signal contribution to
510-
// multiple ROFrame. The signal starts at time tInROF wrt the start of provided roFrame
510+
// multiple ROFrame. The signal starts at time toaInROF wrt the start of provided roFrame
511511
// In every ROFrame we check the collected signal during strobe
512512
LOG(debug) << "Registering digits for chip " << chip.getChipIndex() << " at ROFrame " << roFrame
513513
<< " row " << row << " col " << col << " nEle " << nEle << " label " << lbl << " layer " << layer << " toa " << toaInROF;
514-
float tStrobe = mParams.getStrobeDelay(layer) - tInROF; // strobe start wrt signal start
515-
for (int i = 0; i < nROF; i++) { // loop on all the ROFs occupied by the same signal to calculate the charge accumulated in that ROF
514+
float tStrobe = mParams.getStrobeDelay(layer) - toaInROF; // strobe start wrt signal start
515+
for (int i = 0; i < nROF; i++) { // loop on all the ROFs occupied by the same signal to calculate the charge accumulated in that ROF
516516
uint32_t roFr = roFrame + i;
517517
float toaROF = toaInROF - i * mParams.getROFrameLength(layer); // ToA w.r.t. start of ROF
518518
int nEleROF = mParams.getSignalShape().getCollectedCharge(nEle, tStrobe, tStrobe + mParams.getStrobeLength(layer));

0 commit comments

Comments
 (0)