@@ -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// ________________________________________________________________________________
505505template <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