Skip to content
Snippets Groups Projects

Update to allow Alignment to run multithreaded

Merged Wouter Hulsbergen requested to merge updatemutexlockingstrategy_June2022 into master
4 files
+ 30
32
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -14,11 +14,9 @@
#include "Gaudi/Accumulators/Histogram.h"
#include "TAlignment/AlignmentElement.h"
#include "boost/lexical_cast.hpp"
namespace LHCb::Alignment {
template <typename OWNER>
struct AlElementHistos {
using Histogram2D = Gaudi::Accumulators::Histogram<2>;
using Histogram1D = Gaudi::Accumulators::Histogram<1>;
@@ -34,32 +32,33 @@ namespace LHCb::Alignment {
Histogram2D m_autoCorrHisto;
Histogram1D m_residualPullHistos[6];
template <typename OWNER>
AlElementHistos( const OWNER* owner, const Alignment::Element& elem, unsigned int numiter )
: m_name{elem.name()}
, m_index{elem.index()}
, m_dir{"element" + boost::lexical_cast<std::string>( elem.index() ) + "/"}
, m_dir{"element" + std::to_string( elem.index() ) + "/"}
, m_resmax{elem.histoResidualMax()}
, m_resHisto{owner,
m_dir + boost::lexical_cast<std::string>( 1000u ),
m_dir + std::to_string( 1000u ),
"Residual vs iteration for " + m_name,
{numiter, -0.5, numiter - 0.5},
{100, -m_resmax, +m_resmax}}
, m_unbiasedResHisto{owner,
m_dir + boost::lexical_cast<std::string>( 1001u ),
m_dir + std::to_string( 1001u ),
"Unbiased Residual vs iteration for " + m_name,
{numiter, -0.5, numiter - 0.5},
{100, -m_resmax, +m_resmax}}
, m_pullHisto{owner,
m_dir + boost::lexical_cast<std::string>( 2000u ),
m_dir + std::to_string( 2000u ),
"Pull vs iteration for " + m_name,
{numiter, -0.5, numiter - 0.5},
{100, -5.0, 5.0}}
, m_nHitsHisto{owner,
m_dir + boost::lexical_cast<std::string>( 3000u ),
m_dir + std::to_string( 3000u ),
"Number of hits vs iteration for " + m_name,
{numiter, -0.5, numiter - 0.5}}
, m_autoCorrHisto{owner,
m_dir + boost::lexical_cast<std::string>( 4000u ),
m_dir + std::to_string( 4000u ),
"hit residual scale factor in " + m_name + " vs iteration ",
{numiter, -0.5, numiter - 0.5},
{100, -1, 1}}
Loading