Subroutine TPC_RECONST_PREP
calculates distances between charged track impact points at the
calorimeter face and track helix hypothesis parameters; makes groups
of tracks at the calorimeter face.
Input for this program is the arrays of - coordinates of input point at the calorimeter inner surface, - particle momentum at this point and - particle charge.
Now program used COMMON / CALOINPUT / that consists of an ideal TPC information.
Detailed actions:
Subroutine initializes COMMONS.
Sorts TPC tracks in decreasing order of their momentum.
Calculates distance matrix for every two tracks at the calorimeter face. The simplest 3-d distance between two points at the calorimeter face is used now.
Sorts distances between TPC charged tracks in increasing order and creates pairs of the nearest TPC tracks.
Creates groups of the nearest tracks at the calorimeter face. The set of tracks is defined as a group if the distances between any pairs in group less then limit (see TPC_trk_Dist_Merge). The group configuration topologically described as graf by number of pairs and number of links between close tracks. Several group topologies exists: compact group - number of links more then number of pairs in group, extended group - number of links less then number of pairs in group, compact group with a tail and so on.
Calculates coordinates and momentum for group of tracks.
Creates the list of charged tracks that belong to some group.
Creates the list of charged tracks that do not belong to any group in decreasing momentum order.
Calculates parameters of predicted helix of charged particles in the calorimeter volume.
All calculated values are in /TPCTRACK/ and /CALOINPUT/ COMMONs.