Commit 944a5b70 authored by Jin Zhang's avatar Jin Zhang
Browse files

follow the suggestions of default option

parent 4dd4298a
......@@ -51,7 +51,7 @@ void ModuleManager::load_detectors() {
for(auto& detector_section : conf_manager_->getDetectorConfigurations()) {
std::string name = detector_section.getName();
std::string coordinate = detector_section.get<std::string>("coordinates");
std::string coordinate = detector_section.get<std::string>("coordinates", "cartesian");
std::transform(coordinate.begin(), coordinate.end(), coordinate.begin(), ::tolower);
// Check if we have a duplicate:
......@@ -66,7 +66,7 @@ void ModuleManager::load_detectors() {
// @to do: other detector types, e.g., ATLAS endcap strip detector
// default coordinate is cartesian coordinate
std::shared_ptr<Detector> detector;
if(coordinate == "cartesian" || coordinate == "")
if(coordinate == "cartesian")
detector = std::make_shared<PlanarDetector>(detector_section);
// Check if we already found a reference plane:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment