Skip to content
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

Update StFstFastSimMaker to write hits into the StFstHitCollection #700

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

jdbrice
Copy link
Contributor

@jdbrice jdbrice commented Jul 30, 2024

as is done for the real data reco chain. I continue to write hits into the StRnDCollection, but this is no longer used by downstream code.

Also add a function to StFstHit to allow setting the disk, wedge, and sensor for sim hits. Does not change the StFstHit data structure.

…ction (mimicing the real data reco chain)

Add a function to StFstHit to allow setting the disk, wedge, and sensor for sim hits.
@plexoos
Copy link
Member

plexoos commented Jul 31, 2024

The test error does not seem to be related to the code changes:

docker: Error response from daemon: Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
Error: Process completed with exit code 125.

Looks like a network glitch. I just restarted the failed job to see if it passes this time

@@ -221,10 +237,13 @@ void StFstFastSimMaker::FillSilicon(StEvent *event) {
double xc = X0[disk_index];
double yc = Y0[disk_index];

// This z-offset is used to shift the hits
// to the center of the FST where the tracking planes are defined
const double z_delta = 1.755;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance this value can be extracted from the geometry?


if ( mGEANTPassthrough ){
LOG_INFO << "FST Hits using GEANT xyz directly (no raster etc.)" << endm;
}

if (mRaster > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there still a need to randomize the X,Y center of each plane?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what you mean? Maybe you mean blur the position of the hits according to a resolution - thats not a bad idea. I can add that, but please let me know if you meant something different

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like I commented on the wrong line of code. Just so that we're on the same page, I'm referring to lines 157 and 158, and the if ( mRaster>0 ) block on line 164.

This code appears suspect to me. It doesn't smear the hit positions. It systematically shifts the (x,y) center of each disk to the vertices of a hexagon of 'radius' mRaster. As I recall, the idea was to provide a simple way to introduce a small stereo angle between the different planes, to improve tracking resolution during design studies. The class defaults to mRaster=0, so... it probably hasn't caused a problem. But it looks to me to be dead code that no longer serves a purpose, and thus should be cleaned up. Time being at a premium... at a minimum I would eliminate any setter methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this is taken care of in d8801c1. I removed the options to set Raster and removed the additional logic in the main code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@klendathu2k if you are good with this can you approve?

@jdbrice
Copy link
Contributor Author

jdbrice commented Aug 22, 2024

@klendathu2k - does this look good to you now?
If so please approve and I'll merge

@jdbrice jdbrice added the FWD Forward Upgrade label Aug 22, 2024
@akioogawa akioogawa merged commit 2fa4c61 into star-bnl:main Aug 27, 2024
148 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FWD Forward Upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants