Skip to content

Correct assignment of energy to tracks in the HMS.#14

Open
vardant wants to merge 2 commits intoJeffersonLab:masterfrom
vardant:hms_calo_corr
Open

Correct assignment of energy to tracks in the HMS.#14
vardant wants to merge 2 commits intoJeffersonLab:masterfrom
vardant:hms_calo_corr

Conversation

@vardant
Copy link

@vardant vardant commented Oct 15, 2014

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant