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 3536b22f authored by ext-calvo_p's avatar ext-calvo_p
Browse files

Merge branch '84-cyclotron-comet-does-not-read-rfmapfn-s' into 'master'

Resolve "Cyclotron (COMET) does not read RFMAPFN's"

Closes #84

See merge request !461
parents 47002da4 e75ed838
No related branches found
No related tags found
1 merge request!461Resolve "Cyclotron (COMET) does not read RFMAPFN's"
......@@ -80,9 +80,6 @@ OpalCyclotron::OpalCyclotron():
itsAttr[RFPHI] = Attributes::makeRealArray
("RFPHI", "Initial phase(s) of the electric field map(s) [deg]");
itsAttr[TYPE] = Attributes::makeUpperCaseString
("TYPE", "Used to identify special cyclotron types");
itsAttr[MINZ] = Attributes::makeReal
("MINZ","Minimal vertical extent of the machine [mm]",-10000.0);
......
......@@ -27,42 +27,37 @@ class OpalCyclotron: public OpalElement {
public:
/// The attributes of class OpalCyclotron.
/// Need to remove common, old TYPE = COMMON, prevents the identification of the fieldmap type in the Cyclotron
/// element issue #84
enum {
TYPE,
GEOMETRY, // geometry of boundary
CYHARMON, // The harmonic number of the cyclotron
SYMMETRY, // The symetry of the field
RINIT, // The initial radius [mm]
PRINIT, // The initial radial momentum [pr/p0] []
PHIINIT, // The initial phase [deg]
ZINIT, // The initial z coordinate [mm]
PZINIT, // The initial vertical momentum [pz/p0] []
RFFREQ, // First hamonic of the RF system [MHz]
FMAPFN, // The filename of the mid-plane fieldmap
RFMAPFN, // The filename(s) of the RF fieldmap
RFFCFN, // The filename(s) of coefficients for RF frequency function f(t)
RFVCFN, // The filename(s) of coefficients for RF voltage function v(t)
BSCALE, // A scalar to scale the B-field
ESCALE, // A scalar to scale the RF field
RFPHI, // the initial phase of RF field
SUPERPOSE, // whether the electric field map are superposed or not
MINZ, // minimal vertical extend of the machine
MAXZ, // maximal vertical extend of the machine
MINR, // minimal radial extend of the machine
MAXR, // maximal radial extend of the machine
FMLOWE, // minimal energy of the field map
FMHIGHE, // maximal energy of the field map
SPIRAL, // flag whether or not this is a spiral inflector simulation
TRIMCOILTHRESHOLD, // minimum B-field for which trim coils are applied
TRIMCOIL, // list of trim coils
GEOMETRY = COMMON, // geometry of boundary
CYHARMON, // The harmonic number of the cyclotron
SYMMETRY, // The symetry of the field
RINIT, // The initial radius [mm]
PRINIT, // The initial radial momentum [pr/p0] []
PHIINIT, // The initial phase [deg]
ZINIT, // The initial z coordinate [mm]
PZINIT, // The initial vertical momentum [pz/p0] []
RFFREQ, // First hamonic of the RF system [MHz]
FMAPFN, // The filename of the mid-plane fieldmap
RFMAPFN, // The filename(s) of the RF fieldmap
RFFCFN, // The filename(s) of coefficients for RF frequency function f(t)
RFVCFN, // The filename(s) of coefficients for RF voltage function v(t)
BSCALE, // A scalar to scale the B-field
ESCALE, // A scalar to scale the RF field
RFPHI, // the initial phase of RF field
SUPERPOSE, // whether the electric field map are superposed or not
MINZ, // minimal vertical extend of the machine
MAXZ, // maximal vertical extend of the machine
MINR, // minimal radial extend of the machine
MAXR, // maximal radial extend of the machine
FMLOWE, // minimal energy of the field map
FMHIGHE, // maximal energy of the field map
SPIRAL, // flag whether or not this is a spiral inflector simulation
TRIMCOILTHRESHOLD, // minimum B-field for which trim coils are applied
TRIMCOIL, // list of trim coils
SIZE
};
/// Exemplar constructor.
OpalCyclotron();
virtual ~OpalCyclotron();
......@@ -86,4 +81,4 @@ private:
};
#endif // OPAL_OpalCyclotron_HH
\ No newline at end of file
#endif // OPAL_OpalCyclotron_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