Algorithm that groups the Monte Carlo PSD hits based on a purely geometric criterion.
More...
Algorithm that groups the Monte Carlo PSD hits based on a purely geometric criterion.
This algorithm groups the neighboring PSD tiles/bars into bigger elements, by adding up the energy releases and assigning the total release to a new, bigger PSD element. The number of elements to be digitized is defined by the aggregation factors for each direction, which can be set as algorithm parameters. For example, setting an aggregation factor of 3 for the X direction of top STK means that big bars/tiles for the top PSD along X will be created by grouping 3 neighboring bars/tiles along X. The default aggregation factor is 1 in each direction, meaning that no aggregation is done if the user does not explicitly set the aggregation parameters. The digitization criterion is purely geometric and does not take into account important effects such as quenching, the photoelectron statistics, electronic noise, GeV->ADC conversion etc.
Needed event objects:
name | type | store | optional | description |
psdHitsCollMC | PsdHitsColl | evStore | no | The hits in the PSD produced by MC simulation. |
psdParticleHitsCollMC | PsdParticleHitsColl | evStore | yes | The particle hits in the PSD produced by MC simulation. |
Needed global objects:
name | type | store | optional | description |
psdGeoParamsColl | PsdGeoParamsColl | globStore | yes | Geometric parameters of the top PSD. |
Produced event objects:
name | alias | type | store | description |
psdHitsCollAggregated | psdHitsCollMC | PsdHitsColl | evStore | The hits in the digitized tiles/bars of the PSD. |
psdParticleHitsCollAggregated | psdParticleHitsCollMC | PsdParticleHitsColl | evStore | The particle hits in the digitized tiles/bars of the PSD. |
Produced global objects:
name | alias | type | store | description |
psdGeoParamsCollAggregated | psdGeoParamsColl | PsdGeoParamsColl | evStore | Geometric parameters of the digitized PSD. |
Parameters:
name | type | default value | description |
topAggrFactorX | int | 0 | Aggregation factor for top PSD elements along X. |
topAggrFactorY | int | 0 | Aggregation factor for top PSD elements along Y. |
latAggrFactorXY | int | 0 | Aggregation factor for lateral PSD elements along Z. |
latAggrFactorZ | int | 0 | Aggregation factor for lateral PSD elements along X or Y (depending on side). |
Aggregate hits for a single PSD detector.
This function aggregates the hits of a single (e.g. top) PSD detector. It fills the container passed as #hits argument with the digitized hits. To understand the meaning of the arguments assume the following geometric PSD configuration:
Y^ | ----------------— | | 3 7 11 15 19 23| | | 2 6 10 14 18 22| | | 1 5 9 13 17 21| | | 0 4 8 12 16 20| | ----------------— | ------------------------—>X
The PSD has 6 tiles along X and 4 along Y. The normal axis is Z, the main aggregation axis is Y (the axis where the tile IDs increase with steps of 1) and the secondary aggregation axis is X. The coordinates increase with tile ID along both the main and the secondary aggregation axes.
- Parameters
-
originalGeoParams | The original (i.e. not digitized) geometry parameters of the PSD detector. |
originalHits | The container of original hits for the PSD detector. |
originalParticleHits | The container of original particle hits for the PSD detector (ignored if nullptr). |
aggrFactors | The aggregation factors along each axis. |
aggregatedGeoParams | The aggregated geometry parameters. |
aggregatedHits | The container of aggregated hits. |
aggregatedParticleHits | The container of aggregated particle hits. |