Skip to content
Snippets Groups Projects
Commit c686b241 authored by Zach Marshall's avatar Zach Marshall Committed by Graeme Stewart
Browse files

Quick multiplication by a float to try to fix Coverity defect 105534 (MCTruthBase-00-02-08)

	* src/AtlasTrajectory.cxx: Quick multiplication by a float to try to fix
	Coverity defect 105534
	* Tagging MCTruthBase-00-02-08
parent 970520f4
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ void AtlasTrajectory::DrawTrajectory(G4int i_mode) const ...@@ -71,7 +71,7 @@ void AtlasTrajectory::DrawTrajectory(G4int i_mode) const
G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance(); G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
if (!pVVisManager) return; if (!pVVisManager) return;
const G4double markerSize = abs(i_mode)/1000; const G4double markerSize = abs(i_mode)*0.001;
G4bool lineRequired (i_mode >= 0); G4bool lineRequired (i_mode >= 0);
G4bool markersRequired (markerSize > 0.); G4bool markersRequired (markerSize > 0.);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment