VecGeom-UCGP1.H6

Rule UCGP1.H6: Turn predicate loops into predicate functions

Directory VecGeom/VecCore/inc: 6 violations
VecCore/inc/BitSet.h:139:13: loop (using local variables `wordshift') should be encapsulated in a function
VecCore/inc/BitSet.h:144:13: loop (using local variables `wordshift', `offset', `sub_offset') should be encapsulated in a function
VecCore/inc/BitSet.h:163:13: loop (using local variables `limit', `wordshift') should be encapsulated in a function
VecCore/inc/BitSet.h:516:10: loop (using local variables `i', `nSafeBytes', `cArray') should be encapsulated in a function
VecCore/inc/BitSet.h:537:10: loop (using local variables `i', `nSafeBytes', `cArray') should be encapsulated in a function
VecCore/inc/BitSet.h:584:13: loop (using local variables `i', `count', `nbits') should be encapsulated in a function
Directory VecGeom/base: 27 violations
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:142:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:286:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/PlaneShell.h:311:5: loop (using local variables `dist', `point') should be encapsulated in a function
base/Vector.h:65:7: loop (using local variables `fDataNew') should be encapsulated in a function
base/Vector.h:65:7: loop (using local variables `fDataNew') should be encapsulated in a function
base/Vector.h:65:7: loop (using local variables `fDataNew') should be encapsulated in a function
Directory VecGeom/navigation: 3 violations
navigation/ABBoxNavigator.h:391:7: loop (using local variables `newstate', `currentstate') should be encapsulated in a function
navigation/NavigationState.h:420:7: loop (using local variables `ptr') should be encapsulated in a function
navigation/SimpleNavigator.h:305:7: loop (using local variables `currentmother', `tmp', `path') should be encapsulated in a function
Directory VecGeom/source: 33 violations
source/ABBoxManager.cpp:144:13: loop should be encapsulated in a function
source/ABBoxManager.cpp:206:9: loop (using local variables `ndaughters', `lvol', `boxes') should be encapsulated in a function
source/CppExporter.cpp:79:9: loop (using local variables `tvlist', `counter') should be encapsulated in a function
source/CppExporter.cpp:115:17: loop (using local variables `line', `tp') should be encapsulated in a function
source/CppExporter.cpp:137:5: loop (using local variables `lvlist', `counter') should be encapsulated in a function
source/CppExporter.cpp:390:9: loop (using local variables `l', `thisvolumevariable', `dumps') should be encapsulated in a function
source/LogicalVolume.cpp:108:3: loop (using local variables `indent') should be encapsulated in a function
source/LogicalVolume.cpp:116:3: loop (using local variables `indent') should be encapsulated in a function
source/LogicalVolume.cpp:128:3: loop (using local variables `indent') should be encapsulated in a function
source/LogicalVolume.cpp:132:5: loop (using local variables `indent') should be encapsulated in a function
source/NavigationState.cpp:99:9: loop (using local variables `indices', `counter') should be encapsulated in a function
source/PlacedVolume.cpp:60:3: loop (using local variables `indent') should be encapsulated in a function
source/PlacedVolume.cpp:80:5: loop (using local variables `indent') should be encapsulated in a function
source/Quadrilaterals.cpp:144:5: loop (using local variables `i') should be encapsulated in a function
source/Quadrilaterals.cpp:163:5: loop (using local variables `os', `quads', `i') should be encapsulated in a function
source/ShapeDebugger.cpp:375:5: loop (using local variables `point', `bounds', `rootShape') should be encapsulated in a function
source/ShapeDebugger.cpp:401:5: loop (using local variables `i', `iMax', `mismatchResults') should be encapsulated in a function
source/ShapeDebugger.cpp:375:5: loop (using local variables `point', `bounds', `rootShape') should be encapsulated in a function
source/ShapeDebugger.cpp:401:5: loop (using local variables `i', `iMax', `mismatchResults') should be encapsulated in a function
source/ShapeDebugger.cpp:149:5: loop (using local variables `point', `bounds', `rootShape') should be encapsulated in a function
source/ShapeDebugger.cpp:221:3: loop (using local variables `rays', `raysAdded', `visualizer') should be encapsulated in a function
source/ShapeDebugger.cpp:226:3: loop (using local variables `helperRays', `raysAdded', `visualizer') should be encapsulated in a function
source/ShapeDebugger.cpp:267:5: loop (using local variables `point', `bounds', `rootShape') should be encapsulated in a function
source/ShapeDebugger.cpp:326:3: loop (using local variables `rays', `raysAdded', `visualizer') should be encapsulated in a function
source/ShapeDebugger.cpp:331:3: loop (using local variables `helperRays', `raysAdded', `visualizer') should be encapsulated in a function
source/SimpleNavigator.cpp:262:5: loop (using local variables `indices', `counter', `header') should be encapsulated in a function
source/UnplacedPolycone.cpp:48:6: loop should be encapsulated in a function
source/UnplacedPolycone.cpp:51:6: loop should be encapsulated in a function
source/UnplacedPolycone.cpp:264:5: loop should be encapsulated in a function
source/UnplacedTrd.cpp:81:5: loop (using local variables `nChoice', `sumWeight', `prob') should be encapsulated in a function
source/UnplacedTube.cpp:105:5: loop (using local variables `Stotal', `S') should be encapsulated in a function
source/Visualizer.cpp:132:3: loop (using local variables `top') should be encapsulated in a function
source/Visualizer.cpp:137:3: loop should be encapsulated in a function
Directory VecGeom/source/benchmarking: 7 violations
source/benchmarking/NavigationBenchmarker.cpp:75:3: loop (using local variables `nPoints', `curStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:78:3: loop (using local variables `nPoints', `newStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:400:3: loop (using local variables `np', `origStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:403:3: loop (using local variables `np', `vgSerialStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:486:3: loop (using local variables `np', `vgVectorStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:586:3: loop (using local variables `np', `origStates') should be encapsulated in a function
source/benchmarking/NavigationBenchmarker.cpp:587:3: loop (using local variables `np', `vgSerialStates') should be encapsulated in a function
Directory VecGeom/test/core: 9 violations
test/core/BitSetTest.cpp:24:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:28:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:32:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:36:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:40:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:59:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:67:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:71:4: loop (using local variables `nbits', `s') should be encapsulated in a function
test/core/BitSetTest.cpp:75:4: loop (using local variables `nbits', `s') should be encapsulated in a function
Directory VecGeom/test/globalbenchmarks: 10 violations
test/globalbenchmarks/NavigationBenchmark.cpp:124:5: loop (using local variables `daughters', `visualizer') should be encapsulated in a function
test/globalbenchmarks/NavigationBenchmark.cpp:164:3: loop (using local variables `np', `maxSteps') should be encapsulated in a function
test/globalbenchmarks/TraceTrack.cpp:253:5: loop (using local variables `N', `newnavstates', `curnavstates') should be encapsulated in a function
test/globalbenchmarks/TraceTrack.cpp:264:5: loop (using local variables `N', `dirs', `dir') should be encapsulated in a function
test/globalbenchmarks/TraceTrack.cpp:272:5: loop (using local variables `N', `psteps') should be encapsulated in a function
test/globalbenchmarks/TraceTrack.cpp:498:3: loop (using local variables `argc', `argv') should be encapsulated in a function
test/globalbenchmarks/XRayBenchmarkFromROOTFile.cpp:401:5: loop (using local variables `N', `newnavstates', `curnavstates') should be encapsulated in a function
test/globalbenchmarks/XRayBenchmarkFromROOTFile.cpp:412:5: loop (using local variables `N', `dirs', `dir') should be encapsulated in a function
test/globalbenchmarks/XRayBenchmarkFromROOTFile.cpp:420:5: loop (using local variables `N', `psteps') should be encapsulated in a function
test/globalbenchmarks/XRayBenchmarkFromROOTFile.cpp:701:3: loop (using local variables `argc', `argv') should be encapsulated in a function
Directory VecGeom/test/root: 1 violation
test/root/ExitingOrEntering.cpp:85:5: loop (using local variables `vecgeompvol', `argv') should be encapsulated in a function
Directory VecGeom/test/visualization: 1 violation
test/visualization/VisualizeTube.cpp:13:5: loop (using local variables `sample', `tube') should be encapsulated in a function
Directory VecGeom/volumes: 50 violations
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/Quadrilaterals.h:339:5: loop (using local variables `valid', `intersection', `i') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:339:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
volumes/ShapeImplementationHelper.h:360:7: loop (using local variables `output', `i', `result') should be encapsulated in a function
Directory VecGeom/volumes/utilities: 5 violations
volumes/utilities/VolumeUtilities.h:176:5: loop (using local variables `hit', `h', `dirs') should be encapsulated in a function
volumes/utilities/VolumeUtilities.h:176:5: loop (using local variables `hit', `h', `dirs') should be encapsulated in a function
volumes/utilities/VolumeUtilities.h:378:5: loop (using local variables `insideVector', `i') should be encapsulated in a function
volumes/utilities/VolumeUtilities.h:407:5: loop (using local variables `insideVector', `i') should be encapsulated in a function
volumes/utilities/VolumeUtilities.h:176:5: loop (using local variables `hit', `h', `dirs') should be encapsulated in a function