Commit 0fec02d0 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Prealignment: move all but reference, not the reference itself

parent 65c1e163
Pipeline #684340 passed with stages
in 18 minutes and 11 seconds
......@@ -6,7 +6,6 @@ using namespace std;
Prealignment::Prealignment(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) {
LOG(INFO) << "Starting prealignment of detectors";
max_correlation_rms = m_config.get<double>("max_correlation_rms", static_cast<double>(Units::convert(6.0, "mm")));
damping_factor = m_config.get<double>("damping_factor", 1.0);
timingCut = m_config.get<double>("timing_cut", static_cast<double>(Units::convert(100, "ns")));
......@@ -97,7 +96,8 @@ void Prealignment::finalise() {
<< " , RMS Y = " << Units::display(rmsY, {"mm", "um"});
}
if(m_detector->isReference()) {
// Move all but the reference:
if(!m_detector->isReference()) {
double mean_X = correlationX->GetMean();
double mean_Y = correlationY->GetMean();
LOG(INFO) << "Detector " << m_detector->name() << ": x = " << Units::display(mean_X, {"mm", "um"})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment