[DEE] Add hardware thresholds to determine if a MDEEStripHit was a NearestNeighbor or not - #190
[DEE] Add hardware thresholds to determine if a MDEEStripHit was a NearestNeighbor or not#190fhagemann wants to merge 9 commits into
MDEEStripHit was a NearestNeighbor or not#190Conversation
…add NN strip hits if missing
|
In my last commit, I added a dummy hardware thresholds file, together with a corresponding dummy ecal. The "real" hardware threshold files are currently determined using the python tools by:
This, at some point, can be generated using the threshold app in #166. |
|
With the changes in this PR, the DEE would require a hardware threshold file, or it wouldn't run. |

Currently,
MSubModuleChargeTransportgenerates up to threeMDEEStripHitsfor each the HV and LV side, namely for the strip in which the original simulated hit took place, and the two adjacent strips. This part of the DEE does not know if aMDEEStripHitwill end up triggering, becoming a NN strip hit, or not being read out at all.In
MSubModuleStripReadout, we apply what I call a "hardware threshold", which is a strip-specific energy threshold in ADC units to determine if a strip triggered or not. The current logic is:MDEEStripHitexceeds its hardware threshold, then both neighbors should exist and be read outMDEEStripHitdid not exceed its hardware threshold, it will only be read out (as a NN strip), if at least ONE of the adjacent strips exceeded its hardware threshold.For this, I had to
m_IsNearestNeighborflag toMDEEStripHitMModuleEnergyCalibration), and code to apply it (inMSubModuleStripReadout)MDEEStripHitsafter the charge-transport simulations to:TriggeredStrips(above hardware threshold), allNeighborCandidateStrips(neighbors of strips above hardware threshold), allDeadStrips(without energy calibration)TriggeredStripMDEEStripHitsfor allNeighborCandidateStripsthat were not created duringMSubModuleChargeTransportHere is a sketch to illustrate the logic behind the final loop: