@@ -191,8 +191,8 @@ struct TableDiffWake {
191191 return ;
192192 // ------------------------------------------------------------
193193 // Translate values to less memory consuming values
194- int16_t substituteEp2 = ( int16_t ) (ep2 * 1000 );
195- int16_t substituteEp3 = ( int16_t ) (ep3 * 1000 );
194+ int16_t substituteEp2 = static_cast < int16_t > (ep2 * 1000 );
195+ int16_t substituteEp3 = static_cast < int16_t > (ep3 * 1000 );
196196
197197 testcol (col.globalIndex (),
198198 run,
@@ -226,44 +226,44 @@ struct TableDiffWake {
226226
227227 int64_t particlePx = (track.px () * 6000 );
228228 if (particlePx < 0 )
229- substituteP |= ( uint64_t ) 1 << uppermostBit;
229+ substituteP |= static_cast < uint64_t > 1 << uppermostBit;
230230 if (particlePx < 0 )
231231 particlePx = (-1 ) * particlePx;
232232 for (int8_t i_bit = lowermostBit; i_bit < uppermostBit; i_bit++) {
233- if ((particlePx & (( int64_t ) 1 << i_bit)))
234- substituteP |= ( uint64_t ) 1 << i_bit;
233+ if ((particlePx & (static_cast < int64_t > 1 << i_bit)))
234+ substituteP |= static_cast < uint64_t > 1 << i_bit;
235235 }
236236
237237 uppermostBit = 41 ;
238238 lowermostBit = 21 ;
239239 int64_t particlePy = (track.py () * 6000 );
240240 if (particlePy < 0 )
241- substituteP |= ( uint64_t ) 1 << uppermostBit;
241+ substituteP |= static_cast < uint64_t > 1 << uppermostBit;
242242 if (particlePy < 0 )
243243 particlePy = (-1 ) * particlePy;
244244 for (int8_t i_bit = lowermostBit; i_bit < uppermostBit; i_bit++) {
245- if ((particlePy & (( int64_t ) 1 << (i_bit - lowermostBit))))
246- substituteP |= ( uint64_t ) 1 << i_bit;
245+ if ((particlePy & (static_cast < int64_t > 1 << (i_bit - lowermostBit))))
246+ substituteP |= static_cast < uint64_t > 1 << i_bit;
247247 }
248248
249249 uppermostBit = 62 ;
250250 lowermostBit = 42 ;
251251 int64_t particlePz = (track.pz () * 6000 );
252252 if (particlePz < 0 )
253- substituteP |= ( uint64_t ) 1 << uppermostBit;
253+ substituteP |= static_cast < uint64_t > 1 << uppermostBit;
254254 if (particlePz < 0 )
255255 particlePz = (-1 ) * particlePz;
256256 for (int8_t i_bit = lowermostBit; i_bit < uppermostBit; i_bit++) {
257- if ((particlePz & (( int64_t ) 1 << (i_bit - lowermostBit))))
258- substituteP |= ( uint64_t ) 1 << i_bit;
257+ if ((particlePz & (static_cast < int64_t > 1 << (i_bit - lowermostBit))))
258+ substituteP |= static_cast < uint64_t > 1 << i_bit;
259259 }
260260
261261 // dEdx
262- uint16_t substituteDEDX = ( uint16_t ) (track.tpcSignal () * 10 );
262+ uint16_t substituteDEDX = static_cast < uint16_t > (track.tpcSignal () * 10 );
263263
264264 // DCA
265- int16_t substituteDCAXY = ( int16_t ) (track.dcaXY () * 100 );
266- int16_t substituteDCAZ = ( int16_t ) (track.dcaZ () * 100 );
265+ int16_t substituteDCAXY = static_cast < int16_t > (track.dcaXY () * 100 );
266+ int16_t substituteDCAZ = static_cast < int16_t > (track.dcaZ () * 100 );
267267
268268 // --------------- Fill track table ------------------
269269 testtrack (track.collisionId (),
0 commit comments