Draft: Add AnalysisMCResidual module for MonteCarlo comparison for DUT hits
For the DUT: Compare Monte Carlo info (e.g. from allpix2) with the associated cluster found during reconstruction.
Parts of the logic adapted from AnalysisTelescope, which does something similar for the planes used in tracking - in particular the function ROOT::Math::XYZPoint mcParticleLocal = closestApproach(cluster->local(), mcParticles);
to select the matching MacParticles.
Suggestions for a better name would also be welcome (not AnalysisMcDUT though)
Edited by Annika Vauth