Skip to content
Snippets Groups Projects
Commit 43c110ac authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

SimulationToPython, temporarily supporting 2 det classes

parent 685bb62a
No related branches found
No related tags found
1 merge request!2189Detector2D now parameterized through width and center in phi,alpha (#854)
......@@ -118,6 +118,11 @@ std::string defineDetector(const IDetector& detector)
result << indent() << "detector = ba.OldDetec2D(" << det->axis(0).size() << ", "
<< det->axis(0).min() << ", " << det->axis(0).max() << ", " << det->axis(1).size()
<< ", " << det->axis(1).min() << ", " << det->axis(1).max() << ")\n";
} else if (const auto* const det = dynamic_cast<const NewDetec2D*>(&detector)) {
result << "\n";
result << indent() << "detector = ba.OldDetec2D(" << det->axis(0).size() << ", "
<< det->axis(0).min() << ", " << det->axis(0).max() << ", " << det->axis(1).size()
<< ", " << det->axis(1).min() << ", " << det->axis(1).max() << ")\n";
} else
ASSERT_NEVER; // unknown detector
......
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