OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
NumberOfPeaks.cpp
Go to the documentation of this file.
1 //
2 // Struct NumberOfPeaks
3 // A simple expression to check the number of turns in a circular machine. It checks
4 // probe files (*.peaks) and counts the number of turns.
5 //
6 // Copyright (c) 2018, Matthias Frey, Paul Scherrer Institut, Villigen PSI, Switzerland
7 // All rights reserved
8 //
9 // Implemented as part of the PhD thesis
10 // "Precise Simulations of Multibunches in High Intensity Cyclotrons"
11 // and the paper
12 // "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
13 // (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
14 //
15 // This file is part of OPAL.
16 //
17 // OPAL is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
24 //
26 
27 const std::string name = "NumberOfPeaks";
const std::string name