-
Notifications
You must be signed in to change notification settings - Fork 1
Performance studies #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Performance studies #142
Conversation
5c85f89 to
7b8a75d
Compare
5142852 to
b60690d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v18.1.3
Click here for the full clang-format patch
diff --git a/src/g4appmt.h b/src/g4appmt.h
index f0f0020..88258fc 100644
--- a/src/g4appmt.h
+++ b/src/g4appmt.h
@@ -125,2 +125 @@ struct PhotonHit : public G4VHit
- G4cout << "Detector id: " << fid << " energy: " << fenergy << " nm"
- << " time: " << ftime << " ns"
+ G4cout << "Detector id: " << fid << " energy: " << fenergy << " nm" << " time: " << ftime << " ns"
Have any feedback or feature suggestions? Share it here.
c50baae to
c9db7a7
Compare
c9db7a7 to
fb9a812
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cpp-linter Review
Used clang-format v18.1.3
Click here for the full clang-format patch
diff --git a/CSG/csg_intersect_leaf_newcone.h b/CSG/csg_intersect_leaf_newcone.h
index 01a9845..fe8068e 100644
--- a/CSG/csg_intersect_leaf_newcone.h
+++ b/CSG/csg_intersect_leaf_newcone.h
@@ -101,2 +101,2 @@ void intersect_leaf_newcone( bool& valid_isect, float4& isect, const quad& q0, c
- const float t_cand = fminf(roots) ;
-
+ const float t_cand = fminf(roots) ;
+
@@ -106,11 +106,3 @@ void intersect_leaf_newcone( bool& valid_isect, float4& isect, const quad& q0, c
- float3 intersection_point = make_float3(
- o.x + t_cand * d.x,
- o.y + t_cand * d.y,
- o.z + t_cand * d.z
- );
- float3 n = normalize(make_float3(
- intersection_point.x,
- intersection_point.y,
- (z0 - intersection_point.z)*tth2
- ));
-
+ float3 intersection_point = make_float3(o.x + t_cand * d.x, o.y + t_cand * d.y, o.z + t_cand * d.z);
+ float3 n =
+ normalize(make_float3(intersection_point.x, intersection_point.y, (z0 - intersection_point.z) * tth2));
Have any feedback or feature suggestions? Share it here.
This reverts commit 8936907.
Move gun so the opticks_raindrop.gdml has photons created
|
I confirm that when moving the particlegun to 0,0,0 mm (I just pushed this change into the branch) and running I see performance data created in |
|
@plexoos could you take a look? |
|
Here is a basic test I use in CI to compare the G4 and OptiX outputs: Can we run it on the output from these performance jobs? |
Fix ordering so EIC-Opticks hits match up
|
Since we use the "Minimal" setting there are no such record files in my understanding, are there? I found a bug in the geometry. The ordering of the surfaces was incorrect, fixed it in 4101e08 Also I added printing out number of Geant4 hits in the executable in 7fd2968 Now when I run 2 events I get matching number of hits from EIC-Opticks and Geant4:
We agreed that this the requirement to merge this PR. If you need any more details please open an other PR. |
|
Have you verified that the hits have the same or similar coordinates? |
|
No, this PR should be for performance study, not a full validation. |
|
If you want feel free to open a "raindrop geometry validation" PR. |
|
How do we know that these jobs produce reasonable hits? |
|
Define reasonable |
|
Sure — here are a couple of metrics we could use, for example: The hit coordinate distributions statistically agree and are constrained by the sensitive detector |
|
Great! At least the circles seem to align. Can you point me to the output files? |
|
You did not specify which changes. |
|
You asked to validate the position of hits. I suggested let's do this in an other PR but you insisted. Therfore I had to print out number of hits that takes time, done in 7fd2968 . Also you asked me to plot hit positions. Therefore I had to change momentum of electron so that we can validate the hit positions. Done in 1715f2e |
|
Otherwise the electron would have exited. With this different energy different number of optical photons are created obviously. |
|
Okay, I’ll revert these changes and merge. There are many ways to run validations and present results. I didn’t expect to have to specify exactly how to do it. A histogram could work of course much better. |
This reverts commit 1715f2e.



No description provided.