File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,13 +344,13 @@ struct PidNSigma {
344344 {
345345 uint8_t TPCencoded = encodeNSigma (TPCnSigma);
346346 uint8_t TOFencoded = hasTOF ? encodeNSigma (TOFnSigma) : 0x0F ; // If TOF is not available, set all 4 bits to 1
347- flag = (TPCencoded << 4 ) | TOFencoded; // Upper 4 bits = TPC, Lower 4 bits = TOF
347+ flag = (TPCencoded << 4 ) | TOFencoded; // Upper 4 bits = TPC, Lower 4 bits = TOF
348348 }
349349
350350 // / @brief Encode 0.2 sigma interval to 0~10 range
351351 static uint8_t encodeNSigma (float nSigma)
352352 {
353- float encoded = std::abs ((nSigma - 1.5 ) / 0.2 ); // Convert to 0~10 range
353+ float encoded = std::abs ((nSigma - 1.5 ) / 0.2 ); // Convert to 0~10 range
354354 encoded = std::min (std::max (encoded, 0 .f ), 10 .f ); // Clamp to 0~10 range
355355 return (uint8_t )round (encoded);
356356 }
You can’t perform that action at this time.
0 commit comments