Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lcsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SLIC_software
lcsim
Commits
fad64ec2
Commit
fad64ec2
authored
Jun 26, 2017
by
David Blyth
Browse files
Options
Downloads
Patches
Plain Diff
Added Java Fast Math for fast acos()
parent
3c22706e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
detector-framework/pom.xml
+5
-0
5 additions, 0 deletions
detector-framework/pom.xml
detector-framework/src/main/java/org/lcsim/detector/solids/GeomOp3D.java
+2
-1
2 additions, 1 deletion
...ork/src/main/java/org/lcsim/detector/solids/GeomOp3D.java
with
7 additions
and
1 deletion
detector-framework/pom.xml
+
5
−
0
View file @
fad64ec2
...
@@ -105,6 +105,11 @@
...
@@ -105,6 +105,11 @@
<artifactId>
reflections
</artifactId>
<artifactId>
reflections
</artifactId>
<version>
0.9.9
</version>
<version>
0.9.9
</version>
</dependency>
</dependency>
<dependency>
<groupId>
net.jafama
</groupId>
<artifactId>
jafama
</artifactId>
<version>
2.1.0
</version>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
This diff is collapsed.
Click to expand it.
detector-framework/src/main/java/org/lcsim/detector/solids/GeomOp3D.java
+
2
−
1
View file @
fad64ec2
...
@@ -3,6 +3,7 @@ package org.lcsim.detector.solids;
...
@@ -3,6 +3,7 @@ package org.lcsim.detector.solids;
import
hep.physics.matrix.BasicMatrix
;
import
hep.physics.matrix.BasicMatrix
;
import
hep.physics.vec.Hep3Vector
;
import
hep.physics.vec.Hep3Vector
;
import
hep.physics.vec.VecOp
;
import
hep.physics.vec.VecOp
;
import
net.jafama.FastMath
;
import
java.util.List
;
import
java.util.List
;
...
@@ -130,7 +131,7 @@ public class GeomOp3D
...
@@ -130,7 +131,7 @@ public class GeomOp3D
}
}
else
else
{
{
angle_sum
+=
Math
.
acos
(
VecOp
.
dot
(
v1_vec
,
v2_vec
)/(
v1_mag
*
v2_mag
));
angle_sum
+=
net
.
jafama
.
Fast
Math
.
acos
(
VecOp
.
dot
(
v1_vec
,
v2_vec
)/(
v1_mag
*
v2_mag
));
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment