PanTauAlgs: thread-safety fixes
Several fixes to get the package closer to pass the thread-checker:
- Remove caching of p4 in
PanTauSeed
andTauConstituent
.The caching of the 4-momentum is not thread-safe. If this is really needed one needs to be implement this properly. -
PanTauSeed
: avoidconst_cast
by storing non-const pointer toTauJet
- add const-correct
getFeatures
andgetPFO
methods
However, the package still has several const_cast
s that are used to modify EDM objects in place. This is likely not thread-safe at all and needs to be looked at by experts. cc @martindl