Fixed accelerator invalid target temperature
This commit is contained in:
parent
c0d665ab61
commit
51f8661a65
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ public class AcceleratorSetup extends GlobalPosition {
|
|||
addToBoundingBox(trajectoryPoint, 2);
|
||||
|
||||
// count main magnets
|
||||
final int indexTier = trajectoryPoint.type & TrajectoryPoint.MASK_TIERS - 1;
|
||||
final int indexTier = (trajectoryPoint.type & TrajectoryPoint.MASK_TIERS) - 1;
|
||||
if ((trajectoryPoint.type & TrajectoryPoint.MAGNETS_HORIZONTAL) != 0) {
|
||||
countMagnets[indexTier] += 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue