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 5acde8ea authored by frey_m's avatar frey_m
Browse files

ParticleMatterInteraction: upper case string attribute

parent 7ef5e870
No related branches found
No related tags found
No related merge requests found
...@@ -55,10 +55,10 @@ ParticleMatterInteraction::ParticleMatterInteraction(): ...@@ -55,10 +55,10 @@ ParticleMatterInteraction::ParticleMatterInteraction():
"The \"SURFACE_PHYSICS\" statement defines data for the particle mater interaction handler " "The \"SURFACE_PHYSICS\" statement defines data for the particle mater interaction handler "
"on an element."), "on an element."),
handler_m(0) { handler_m(0) {
itsAttr[TYPE] = Attributes::makeString itsAttr[TYPE] = Attributes::makeUpperCaseString
("TYPE", "Specifies the particle mater interaction handler: Collimator"); ("TYPE", "Specifies the particle mater interaction handler: Collimator");
itsAttr[MATERIAL] = Attributes::makeString itsAttr[MATERIAL] = Attributes::makeUpperCaseString
("MATERIAL", "The material of the surface"); ("MATERIAL", "The material of the surface");
itsAttr[ENABLERUTHERFORD] = Attributes::makeBool("ENABLERUTHERFORD", itsAttr[ENABLERUTHERFORD] = Attributes::makeBool("ENABLERUTHERFORD",
...@@ -124,10 +124,10 @@ void ParticleMatterInteraction::update() { ...@@ -124,10 +124,10 @@ void ParticleMatterInteraction::update() {
void ParticleMatterInteraction::initParticleMatterInteractionHandler(ElementBase &element) { void ParticleMatterInteraction::initParticleMatterInteractionHandler(ElementBase &element) {
std::string material = Util::toUpper(Attributes::getString(itsAttr[MATERIAL])); std::string material = Attributes::getString(itsAttr[MATERIAL]);
bool enableRutherford = Attributes::getBool(itsAttr[ENABLERUTHERFORD]); bool enableRutherford = Attributes::getBool(itsAttr[ENABLERUTHERFORD]);
const std::string type = Util::toUpper(Attributes::getString(itsAttr[TYPE])); const std::string type = Attributes::getString(itsAttr[TYPE]);
if(type == "CCOLLIMATOR" || if(type == "CCOLLIMATOR" ||
type == "COLLIMATOR" || type == "COLLIMATOR" ||
type == "DEGRADER") { type == "DEGRADER") {
......
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