Algorithm that sort tracks according to their proximity to the CALO axis.
This algorithm sorts the tracks found by the Hough finder according to the proximity to the CALO axis. The absolute values of the track-axis distance are evaluated in each projection on a set of reference layers, and their mean is used to classify and order the tracks, the nearest ones being placed at the beginning of the tracks arrays.
The algorithm can optionally eliminate the tracks lying too far from the CALO axis: by setting the maxDistance parameter to a value greater than 0, the tracks whose mean distance from the axis on the reference layers is greater than maxDistance will be removed from the tracks vector.
By setting the controlPlots parameter to true the algorithm will also produce some control plots.
Needed event objects:
name | type | store | optional | description |
HoughTracks | Track2DColl | evStore | No | The Hough tracks. |
caloAxes | Tracks | evStore | No | The CALO axes. |
mcTruth | MCTruth | evStore | Yes | The MC truth |
Needed global objects: name | type | store | optional | description -----------------------—|-----------------—|----------—|-------—|----------------------—
Modified event objects:
name | type | alias | store | description |
tracks2DColl | Track2DColl | | evStore | Tracks will be sorted and eventually eliminated according to their proximity to the CALO axis. |
Produced global objects:
name | type | alias | store | description |
<algoName>_meanDist_{XZ,YZ,XY} | TH1I | | evStore | Control plots with mean axis-track absolute distances on the three views. |
<algoName>_meanDistSct_{XZ,YZ,XY} | TH2I | | evStore | Scatter plots with mean (axis-track vs mctrack-track) absolute distances on the three views. |
Parameters:
name | type | default value | description |
mainAxisType | std::string | "caloaxis" | "caloaxis" or "mctruth" |
maxDistance | float | 0. | The maximum allowed track-axis distance (cm). |
controlPlots | bool | false | If set to true then control plots will be produced. |
meanDistPlotsBins | std::vector<float> | {100, 0., 5} | Bins for the mean absolute distance control plots {nBins, minDist (cm), maxDist (cm)}. |