OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
SumErrSqRadialPeak.cpp
Go to the documentation of this file.
1//
2// Struct SumErrSqRadialPeak
3// A simple expression computing the sum of all peak errors (given as
4// first and second argument) for a range of peaks (third argument and fourth argument)
5// according to
6//
7// \f[
8// result = \frac{1}{n} * \sqrt{\sum_{i=start}^end (measurement_i - value_i)^2}
9// \f]
10//
11// Copyright (c) 2017 - 2018, Matthias Frey, Paul Scherrer Institut, Villigen PSI, Switzerland
12// All rights reserved
13//
14// Implemented as part of the PhD thesis
15// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
16// and the paper
17// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
18// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
19//
20// This file is part of OPAL.
21//
22// OPAL is free software: you can redistribute it and/or modify
23// it under the terms of the GNU General Public License as published by
24// the Free Software Foundation, either version 3 of the License, or
25// (at your option) any later version.
26//
27// You should have received a copy of the GNU General Public License
28// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
29//
31
32const std::string name = "SumErrSqRadialPeak";
const std::string name