Commit db3237dd authored by frey_m's avatar frey_m
Browse files

Merge branch '501-file-header-trimcoil-classes' into 'master'

File header to trim coil classes

Closes #501

See merge request !320
parents e574dc13 8f7955a1
//
// Class OpalTrimCoil
// A TRIMCOIL definition is used to define a trim coil which can be applied
// to a Cyclotron.
//
// Copyright (c) 2018 - 2019, Matthias Frey and Jochem Snuverink,
// Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoils/OpalTrimCoil.h" #include "TrimCoils/OpalTrimCoil.h"
#include "AbstractObjects/OpalData.h" #include "AbstractObjects/OpalData.h"
...@@ -11,10 +36,6 @@ ...@@ -11,10 +36,6 @@
extern Inform *gmsg; extern Inform *gmsg;
// Class OpalTrimCoil
// ------------------------------------------------------------------------
// The attributes of class OpalTrimCoil. // The attributes of class OpalTrimCoil.
namespace { namespace {
enum { enum {
......
//
// Class OpalTrimCoil
// A TRIMCOIL definition is used to define a trim coil which can be applied
// to a Cyclotron.
//
// Copyright (c) 2018 - 2019, Matthias Frey and Jochem Snuverink,
// Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef OPAL_TRIM_COIL_H #ifndef OPAL_TRIM_COIL_H
#define OPAL_TRIM_COIL_H #define OPAL_TRIM_COIL_H
...@@ -8,12 +33,6 @@ ...@@ -8,12 +33,6 @@
class Attribute; class Attribute;
class TrimCoil; class TrimCoil;
// Class OpalTrimCoil
// ------------------------------------------------------------------------
/// The TRIMCOIL definition.
// A TRIMCOIL definition is used to define a trim coil which can be applied
// to a Cyclotron
class OpalTrimCoil: public Definition { class OpalTrimCoil: public Definition {
public: public:
......
//
// Class TrimCoil
// Abstract TrimCoil class.
//
// Copyright (c) 2018 - 2019, Matthias Frey and Jochem Snuverink,
// Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoil.h" #include "TrimCoil.h"
#include <cmath> #include <cmath>
......
//
// Class TrimCoil
// Abstract TrimCoil class.
//
// Copyright (c) 2018 - 2019, Matthias Frey and Jochem Snuverink,
// Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef TRIM_COIL_H #ifndef TRIM_COIL_H
#define TRIM_COIL_H #define TRIM_COIL_H
#include "Physics/Physics.h" #include "Physics/Physics.h"
/// Abstract TrimCoil class
class TrimCoil { class TrimCoil {
public: public:
......
//
// Class TrimCoilBFit
// General rational function fit
// https://gitlab.psi.ch/OPAL/src/issues/157
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoils/TrimCoilBFit.h" #include "TrimCoils/TrimCoilBFit.h"
TrimCoilBFit::TrimCoilBFit(double bmax, TrimCoilBFit::TrimCoilBFit(double bmax,
......
//
// Class TrimCoilBFit
// General rational function fit
// https://gitlab.psi.ch/OPAL/src/issues/157
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef TRIM_COILBFIT_H #ifndef TRIM_COILBFIT_H
#define TRIM_COILBFIT_H #define TRIM_COILBFIT_H
...@@ -5,10 +29,6 @@ ...@@ -5,10 +29,6 @@
#include <vector> #include <vector>
/// TrimCoilBFit class
/// General rational function fit
/// https://gitlab.psi.ch/OPAL/src/issues/157
class TrimCoilBFit : public TrimCoilFit { class TrimCoilBFit : public TrimCoilFit {
public: public:
......
//
// Class TrimCoilFit
// Abstract TrimCoilFit class
// General rational function fit
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoils/TrimCoilFit.h" #include "TrimCoils/TrimCoilFit.h"
#include <cmath> #include <cmath>
......
//
// Class TrimCoilFit
// Abstract TrimCoilFit class
// General rational function fit
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef TRIM_COILFIT_H #ifndef TRIM_COILFIT_H
#define TRIM_COILFIT_H #define TRIM_COILFIT_H
...@@ -5,9 +29,6 @@ ...@@ -5,9 +29,6 @@
#include <vector> #include <vector>
/// Abstract TrimCoilFit class
/// General rational function fit
class TrimCoilFit : public TrimCoil { class TrimCoilFit : public TrimCoil {
public: public:
......
//
// Class TrimCoilMirrored
// Shape mirrored from TC-15 shape
// http://accelconf.web.cern.ch/AccelConf/ipac2017/papers/thpab077.pdf
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoils/TrimCoilMirrored.h" #include "TrimCoils/TrimCoilMirrored.h"
#include "Utility/IpplInfo.h" #include "Utility/IpplInfo.h"
......
//
// Class TrimCoilMirrored
// Shape mirrored from TC-15 shape
// http://accelconf.web.cern.ch/AccelConf/ipac2017/papers/thpab077.pdf
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef TRIM_COILMIRRORED_H #ifndef TRIM_COILMIRRORED_H
#define TRIM_COILMIRRORED_H #define TRIM_COILMIRRORED_H
#include "TrimCoils/TrimCoil.h" #include "TrimCoils/TrimCoil.h"
/// TrimCoilMirrored class
/// Shape mirrored from TC-15 shape
/// http://accelconf.web.cern.ch/AccelConf/ipac2017/papers/thpab077.pdf
class TrimCoilMirrored : public TrimCoil{ class TrimCoilMirrored : public TrimCoil{
public: public:
......
//
// Class TrimCoilPhaseFit
// General rational function fit of the phase shift
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "TrimCoils/TrimCoilPhaseFit.h" #include "TrimCoils/TrimCoilPhaseFit.h"
TrimCoilPhaseFit::TrimCoilPhaseFit(double bmax, TrimCoilPhaseFit::TrimCoilPhaseFit(double bmax,
......
//
// Class TrimCoilPhaseFit
// General rational function fit of the phase shift
//
// Copyright (c) 2018 - 2019, Jochem Snuverink, Paul Scherrer Institut, Villigen PSI, Switzerland
// All rights reserved
//
// Implemented as part of the PhD thesis
// "Precise Simulations of Multibunches in High Intensity Cyclotrons"
// and the paper
// "Matching of turn pattern measurements for cyclotrons using multiobjective optimization"
// (https://doi.org/10.1103/PhysRevAccelBeams.22.064602)
//
// This file is part of OPAL.
//
// OPAL is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#ifndef TRIM_COILPHASEFIT_H #ifndef TRIM_COILPHASEFIT_H
#define TRIM_COILPHASEFIT_H #define TRIM_COILPHASEFIT_H
...@@ -5,9 +28,6 @@ ...@@ -5,9 +28,6 @@
#include <vector> #include <vector>
/// TrimCoilPhaseFit class
/// General rational function fit of the phase shift
class TrimCoilPhaseFit : public TrimCoilFit { class TrimCoilPhaseFit : public TrimCoilFit {
public: public:
......
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