Skip to content

Commit cf09003

Browse files
committed
remove unused variable + remove unwanted comments
1 parent abab0f5 commit cf09003

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

Detectors/Upgrades/ALICE3/IOTOF/simulation/src/Digitizer.cxx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
123123

124124
// Get hit time and apply smearing
125125
// Hit time is in seconds, convert to ns and add event time
126-
double hitTime = hit.GetTime() * sec2ns; // convert to ns
127-
double eventTimeNS = mEventTime.getTimeNS(); // event time since orbit 0
128-
double eventTimeInBC = mEventTime.getTimeOffsetWrtBC();
129-
double hitTimeWrtBC = hitTime + eventTimeInBC; // absolute time
130-
double smearedTime = smearTime(hitTimeWrtBC); // apply detector resolution
126+
double hitTime = hit.GetTime() * sec2ns; // convert to ns
127+
double eventTimeInBC = mEventTime.getTimeOffsetWrtBC(); // event time wrt bc
128+
double hitTimeWrtBC = hitTime + eventTimeInBC; // hit time wrt bc
129+
double smearedTime = smearTime(hitTimeWrtBC); // apply detector resolution
131130

132131
if (chipID < 0 || chipID >= mGeometry->getSize() || mGeometry->getSize() < 1) {
133132
LOG(debug) << "Invalid detector ID: " << chipID << ", geometry size: " << mGeometry->getSize();
@@ -341,8 +340,6 @@ void Digitizer::fillOutputContainer()
341340
// mExtraLabelBuffer.pop_front();
342341
}
343342

344-
// have a addDigit function?
345-
346343
void Digitizer::registerDigits(Chip& chip, uint32_t roFrame, double time, int nROF,
347344
uint16_t row, uint16_t col, int nElectrons, o2::MCCompLabel& label)
348345
{

0 commit comments

Comments
 (0)