Correct assignment of energy to tracks in the HMS.#14
Open
vardant wants to merge 2 commits intoJeffersonLab:masterfrom
Open
Correct assignment of energy to tracks in the HMS.#14vardant wants to merge 2 commits intoJeffersonLab:masterfrom
vardant wants to merge 2 commits intoJeffersonLab:masterfrom
Conversation
out of acceptance, rather than to X = -1 cm as previously.
Change of assignment in h_clusters_cal.f:
* make sure hcluster_et .ne. zero so no divide by zero
if(hcluster_et(nc).gt.0.) then
hcluster_xc(nc)=hcluster_xc(nc)/hcluster_et(nc)
else
< hcluster_xc(nc)= -1.0 ! Set fraction negative for bad et
---
> hcluster_xc(nc)= -999999. ! Set out of the calorimeter volume
This excludes clusters with no energy deposition from further
analysis.
spectrometer tracks. Correct and simplify assignment of the closest to the track cluster in the h_tracks_cal subroutine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Correct association of clusters of calorimeter hits to tracks in the HMS. Affected subroutines are h_clusters_cal and h_tracks_cal. Clusters with zero energy deposition are eliminated from the association by assigning them a coordinate out of reach of tracks in h_clusters_cal. Linking of the closest to track cluster is corrected and simplified in h_tracks_cal. The corrected code was checked against hcana.