RAII scheme for TOF online algorithms.
Implemented RAII scheme for cbm::algo::tof::Clusterizer
and cbm::algo::tof::Hitfind
.
Of interest to @fweig @j.decuveland @v.friese.
Interestingly, the way std::map
is used in cbm::algo::tof::Hitfind
now requires there to be a default constructor for cbm::algo::tof::Clusterizer
, even though we never use it. Probably, the compiler wants it to be there, just in case someone tries to access a map element that hasn't been assigned previously.