Skip to content

Commit 09cf1a3

Browse files
Merge pull request #7 from alibuild/alibot-cleanup-15591
Please consider the following formatting changes to #15591
2 parents 13fd76e + 99fc212 commit 09cf1a3

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,17 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
130130
LOG(debug) << "Invalid detector ID: " << chipID << ", geometry size: " << mGeometry->getSize();
131131
return; // invalid detector ID
132132
}
133-
133+
134134
// Create the digit with time information
135135
o2::MCCompLabel label(hit.GetTrackID(), evID, srcID, false);
136136
const int roFrameAbs = 0; // For now, we can set this to 0 or calculate based on time if needed
137137
const int nROF = 1; // For now, we can assume the signal is contained in one ROF, this can be extended to multiple ROFs based on the time
138-
139-
138+
140139
if (digitizerParams.performStepping) {
141140
float** respMatrix = nullptr;
142141
int rowStart = 0, colStart = 0, rowSpan = 0, colSpan = 0;
143142
stepping(hit, respMatrix, rowStart, colStart, rowSpan, colSpan);
144-
143+
145144
for (int irow = rowSpan; irow--;) {
146145
uint16_t rowIS = irow + rowStart;
147146
for (int icol = colSpan; icol--;) {
@@ -152,7 +151,7 @@ void Digitizer::processHit(const o2::itsmft::Hit& hit, int evID, int srcID)
152151
}
153152
const int nElectronsSampled = gRandom->Poisson(electronsPerStep * nEleResp);
154153
// Noise can be added here if needed
155-
154+
156155
registerDigits(chip, roFrameAbs, smearedTime, nROF,
157156
static_cast<uint16_t>(rowIS), static_cast<uint16_t>(colIS), nElectronsSampled, label);
158157
}
@@ -266,7 +265,7 @@ void Digitizer::responseInTheMiddle(const o2::itsmft::Hit& hit, int& row, int& c
266265
const int chipID = hit.GetDetectorID();
267266

268267
math_utils::Vector3D<float> xyzPositionStart(matrix ^ (hit.GetPosStart())); // start position in sensor frame
269-
math_utils::Vector3D<float> xyzPositionEnd(matrix ^ (hit.GetPos())); // end position in sensor frame
268+
math_utils::Vector3D<float> xyzPositionEnd(matrix ^ (hit.GetPos())); // end position in sensor frame
270269

271270
// Calculate the middle position of the hit
272271
math_utils::Vector3D<float> xyzPositionMiddle = (xyzPositionStart + xyzPositionEnd) * 0.5f;

0 commit comments

Comments
 (0)