Open dudarboh opened 2 years ago
I think this can be fixed if one uses
createFinalisedLCIOTrack( ..., const EVENT::FloatVec& initial_cov_for_prefit
, ...)`
it constructs pre-fit automatically ensuring that there are enough 3D hits to reconstruct it.
instead of currently used:
createFinalisedLCIOTrack(..., EVENT::TrackState* pre_fit, ...)
Which immediately calls
int fit_status = createFit(hit_list, marlinTrk, pre_fit, bfield_z, fit_direction, maxChi2Increment);
even if the pre_fit is a nullptr
.
It was actually intentionally changed in the refit processor a while ago here: https://github.com/iLCSoft/MarlinTrkProcessors/commit/3a6683d06e294ebbee6b24a9579561589e404c4a?diff=unified#
@gaede do you recall the reason for this?
Issue
As title says RefitProcessor crashes with uncaught exception using default (-1) InitialTrackState option.
Reproduce
source /cvmfs/ilc.desy.de/sw/x86_64_gcc82_centos7/v02-02-03/init_ilcsoft.sh
steering file:
Output: