Skip to content
Snippets Groups Projects
Commit b9837c58 authored by Marilena Bandieramonte's avatar Marilena Bandieramonte
Browse files

Fix gdml2gm composite

parent 35672a8d
No related branches found
No related tags found
1 merge request!350Fix gdml2gm composite
Pipeline #7929615 failed
...@@ -42,7 +42,7 @@ void elementHandler::ElementHandle() { ...@@ -42,7 +42,7 @@ void elementHandler::ElementHandle() {
} }
break; break;
} }
else if (nH=="fraction") { else if (nH=="fraction" || nH=="composite") {
fractionHandler* fH=dynamic_cast<fractionHandler*>(h); fractionHandler* fH=dynamic_cast<fractionHandler*>(h);
if (!fH) std::cout<<" something is wrong! can not retrieve fractionHandler!!!"<<std::endl; if (!fH) std::cout<<" something is wrong! can not retrieve fractionHandler!!!"<<std::endl;
e.addIsotope(fH->getFraction()); e.addIsotope(fH->getFraction());
......
...@@ -36,7 +36,7 @@ void materialHandler::ElementHandle() ...@@ -36,7 +36,7 @@ void materialHandler::ElementHandle()
{ {
std::string nH=h->GetName(); std::string nH=h->GetName();
//std::cout<<" handler name "<<nH<<std::endl; //std::cout<<" handler name "<<nH<<std::endl;
if (nH=="fraction") if (nH=="fraction" || nH=="composite")
{ {
fractionHandler* fH=dynamic_cast<fractionHandler*>(h); fractionHandler* fH=dynamic_cast<fractionHandler*>(h);
if (!fH) std::cout<<" something is wrong! can not retrieve fractionHandler!!!"<<std::endl; if (!fH) std::cout<<" something is wrong! can not retrieve fractionHandler!!!"<<std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment