CA: Ideal Hit Producer
In this merge request, an ideal hit producer task ($VMCWORKDIR/reco/L1/utils/CbmCaIdealHitProducer.h) is introduced.
The ideal hit producer either creates hits directly from MC points or improve existing hits with information from matched MC points in selected tracking station. The task can be connected into FairRunAna reconstruction task tree after the hit finder tasks and before the CA tracking task. If it is active, it rewrites existing hit branches as well as hit match branches for the detectors, for which the ideal hit production was requested. The configuration of the ideal hit producer is carried out with a YAML configuration file (example: $VMCWORKDIR/macro/L1/configs/config_ideal_hit_finder.yaml), where one can select flag to determine the task behaviour in a particular tracking station, as well as the parameters of hit smearing (including the nominal uncertainties of hit position and time and a shape of probability distribution function, used for smearing).
At the moment, the ideal hit finder was tested for STS and TRD in mCBM mcbm_beam_2022_05_23_nickel setup and available for MuCh as well.
Modifications to the CbmMatchRecoToMC task:
By default, every next call of CbmMatchRecoToMC task rewrites match branches, if they already exist. In this merge request, a possibility to turn off rewriting of the cluster and hit match objects for MVD, STS, MuCh, TRD and TOF was introduced, so the hit match branches, created in the ideal hit producer, kept in the QA task tree.