Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 44afc057 authored by ext-calvo_p's avatar ext-calvo_p
Browse files

cleanup ParticleMatterInteraction class

parent 3d466f4d
No related branches found
No related tags found
1 merge request!466Resolve "Verifying particle matter interaction type"
......@@ -2,7 +2,7 @@
// Class ParticleMatterInteraction
// The class for the OPAL PARTICLEMATTERINTERACTION command.
//
// Copyright (c) 2012-2019, Andreas Adelmann, Paul Scherrer Institut, Villigen PSI, Switzerland
// Copyright (c) 2012-2021, Andreas Adelmann, Paul Scherrer Institut, Villigen PSI, Switzerland
// Christof Metzger-Kraus, Helmholtz-Zentrum Berlin
// Pedro Calvo, CIEMAT, Spain
// All rights reserved
......@@ -21,7 +21,6 @@
// You should have received a copy of the GNU General Public License
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
//
#include "Structure/ParticleMatterInteraction.h"
#include "AbsBeamline/ElementBase.h"
......@@ -37,9 +36,9 @@ extern Inform *gmsg;
namespace {
enum {
// DESCRIPTION OF SINGLE PARTICLE:
TYPE, // The type of the wake
MATERIAL, // From of the tube
// DESCRIPTION OF PARTICLE MATTER INTERACTION:
TYPE,
MATERIAL,
ENABLERUTHERFORD,
SIZE
};
......@@ -47,17 +46,17 @@ namespace {
ParticleMatterInteraction::ParticleMatterInteraction():
Definition(SIZE, "PARTICLEMATTERINTERACTION",
"The \"SURFACE_PHYSICS\" statement defines data for the particle mater interaction handler "
"on an element."),
"The \"PARTICLEMATTERINTERACTION\" statement defines data for "
"the particle mater interaction handler on an element."),
handler_m(0) {
itsAttr[TYPE] = Attributes::makeUpperCaseString
("TYPE", "Specifies the particle mater interaction handler: Collimator");
("TYPE", "Specifies the particle mater interaction handler: COLLIMATOR, DEGRADER, BEAMSTRIPPING");
itsAttr[MATERIAL] = Attributes::makeUpperCaseString
("MATERIAL", "The material of the surface");
("MATERIAL", "The material of the surface");
itsAttr[ENABLERUTHERFORD] = Attributes::makeBool("ENABLERUTHERFORD",
"Enable large angle scattering", true);
itsAttr[ENABLERUTHERFORD] = Attributes::makeBool
("ENABLERUTHERFORD", "Enable large angle scattering", true);
ParticleMatterInteraction *defParticleMatterInteraction = clone("UNNAMED_PARTICLEMATTERINTERACTION");
defParticleMatterInteraction->builtin = true;
......
......@@ -2,7 +2,7 @@
// Class ParticleMatterInteraction
// The class for the OPAL PARTICLEMATTERINTERACTION command.
//
// Copyright (c) 2012-2019, Andreas Adelmann, Paul Scherrer Institut, Villigen PSI, Switzerland
// Copyright (c) 2012-2021, Andreas Adelmann, Paul Scherrer Institut, Villigen PSI, Switzerland
// Christof Metzger-Kraus, Helmholtz-Zentrum Berlin
// Pedro Calvo, CIEMAT, Spain
// All rights reserved
......@@ -24,23 +24,6 @@
#ifndef OPAL_PARTICLEMATTERINTERACTION_HH
#define OPAL_PARTICLEMATTERINTERACTION_HH
// ------------------------------------------------------------------------
// $RCSfile: Wake.h,v $
// ------------------------------------------------------------------------
// $Revision: 1.1.1.1 $
// ------------------------------------------------------------------------
// Copyright: see Copyright.readme
// ------------------------------------------------------------------------
//
// Class: Wake
//
// ------------------------------------------------------------------------
//
// $Date: 2000/03/27 09:33:44 $
// $Author: Andreas Adelmann $
//
// ------------------------------------------------------------------------
#include "AbstractObjects/Definition.h"
#include "Algorithms/PartData.h"
#include "Solvers/ParticleMatterInteractionHandler.hh"
......@@ -48,13 +31,6 @@
class ElementBase;
class Inform;
// Class Wake
// ------------------------------------------------------------------------
/// The WAKE definition.
// A WAKE definition is used by most physics commands to define the
// particle charge and the reference momentum, together with some other
// data.
class ParticleMatterInteraction: public Definition {
public:
......@@ -103,4 +79,4 @@ inline std::ostream &operator<<(std::ostream &os, const ParticleMatterInteractio
return os;
}
#endif // OPAL_PARTICLEMATTERINTERACTION_HH
\ No newline at end of file
#endif // OPAL_PARTICLEMATTERINTERACTION_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment