Skip to content
Snippets Groups Projects

Update to allow Alignment to run multithreaded

Merged Wouter Hulsbergen requested to merge updatemutexlockingstrategy_June2022 into master
10 files
+ 214
257
Compare changes
  • Side-by-side
  • Inline
Files
10
  • ec67ca0b
    - rewrote AlElementHistos to use Accumulator::Histogram
    - changed from mutex to shared_mutex to profit from readonly locks
    - create AlEquations object in each event call on the stack and add at
      end of event
    - AlignAlgorithm no longer derives from GaudiHistoAlg
@@ -34,7 +34,7 @@ namespace LHCb::Alignment {
Gaudi::Matrix6x6& matrix() { return m_matrix; }
const Gaudi::Matrix6x6& matrix() const { return m_matrix; }
size_t numTracks() const { return m_numTracks; }
auto& numTracks() { return m_numTracks; }
auto& numTracks() { return m_numTracks; }
size_t numHits() const { return m_numHits; }
template <class T>
void add( const T& m ) {
@@ -67,7 +67,7 @@ namespace LHCb::Alignment {
m_alpha = alpha;
m_alphaIsSet = true;
}
auto alphaIsSet() const { return m_alphaIsSet ; }
auto alphaIsSet() const { return m_alphaIsSet; }
void setAlignFrame( const Gaudi::Vector6& alignframe ) { m_alignframe = alignframe; }
const Gaudi::Vector6& alignFrame() const { return m_alignframe; }
Loading