Commit c35ebaf8 authored by Jin Zhang's avatar Jin Zhang
Browse files

suggestions to make lowercase and plural

parent d1588bd7
......@@ -51,7 +51,8 @@ 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>("coordinate");
std::string coordinate = detector_section.get<std::string>("coordinates");
std::transform(coordinate.begin(), coordinate.end(), coordinate.begin(), ::tolower);
// Check if we have a duplicate:
if(std::find_if(m_detectors.begin(), m_detectors.end(), [&name](std::shared_ptr<Detector> obj) {
......@@ -64,7 +65,7 @@ void ModuleManager::load_detectors() {
LOG_PROGRESS(STATUS, "DET_LOAD_LOOP") << "Loading detector " << name;
// @to do: other detector types, e.g., ATLAS endcap strip detector
std::shared_ptr<Detector> detector;
if(coordinate == "Cartesian")
if(coordinate == "cartesian")
detector = std::make_shared<PlanarDetector>(detector_section);
// Check if we already found a reference plane:
......
......@@ -9,7 +9,7 @@ time_resolution = 1s
material_budget = 0.0
type = "TLU"
role = "auxiliary"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_0]
mask_file = "maskfiles/mask_MIMOSA26_0.txt"
......@@ -22,7 +22,7 @@ spatial_resolution = 4um,4um
time_resolution = 230us
material_budget = 0.00075
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_1]
mask_file = "maskfiles/mask_MIMOSA26_1.txt"
......@@ -35,7 +35,7 @@ spatial_resolution = 4um,4um
time_resolution = 230us
material_budget = 0.00075
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_2]
mask_file = "maskfiles/mask_MIMOSA26_2.txt"
......@@ -49,7 +49,7 @@ time_resolution = 230us
material_budget = 0.00075
role = "reference"
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_3]
mask_file = "maskfiles/mask_MIMOSA26_3.txt"
......@@ -62,7 +62,7 @@ spatial_resolution = 4um,4um
time_resolution = 230us
material_budget = 0.00075
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_4]
mask_file = "maskfiles/mask_MIMOSA26_4.txt"
......@@ -75,7 +75,7 @@ spatial_resolution = 4um,4um
time_resolution = 230us
material_budget = 0.00075
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[MIMOSA26_5]
mask_file = "maskfiles/mask_MIMOSA26_5.txt"
......@@ -88,7 +88,7 @@ spatial_resolution = 4um,4um
time_resolution = 230us
material_budget = 0.00075
type = "MIMOSA26"
coordinate= "Cartesian"
coordinates = "cartesian"
[Timepix3_0]
number_of_pixels = 256,256
......@@ -101,4 +101,4 @@ time_resolution = 20ns
material_budget = 0.01068
role = "dut"
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
......@@ -8,7 +8,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_E03]
number_of_pixels = 256,256
......@@ -20,7 +20,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_G02]
number_of_pixels = 256,256
......@@ -32,7 +32,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_G03]
number_of_pixels = 256,256
......@@ -45,7 +45,7 @@ material_budget = 0.01068
time_resolution = 20ns
role = "reference"
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_J05]
number_of_pixels = 256,256
......@@ -57,7 +57,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_L09]
number_of_pixels = 256,256
......@@ -69,4 +69,4 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
......@@ -7,7 +7,7 @@ position = 923.402um,296.86um,0
spatial_resolution = 4um,4um
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_E03]
number_of_pixels = 256,256
......@@ -18,7 +18,7 @@ position = -249.154um,408.592um,21.5mm
spatial_resolution = 4um,4um
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_G02]
number_of_pixels = 256,256
......@@ -30,7 +30,7 @@ spatial_resolution = 4um,4um
time_resolution = 20ns
role = "dut"
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_G03]
number_of_pixels = 256,256
......@@ -42,7 +42,7 @@ spatial_resolution = 4um,4um
time_resolution = 20ns
role = "reference"
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_J05]
number_of_pixels = 256,256
......@@ -53,7 +53,7 @@ position = 452.897um,-578.683um,208.5mm
spatial_resolution = 4um,4um
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
[W0013_L09]
number_of_pixels = 256,256
......@@ -64,4 +64,4 @@ position = -1.08498mm,-16.204um,231.5mm
spatial_resolution = 4um,4um
time_resolution = 20ns
type = "Timepix3"
coordinate= "Cartesian"
coordinates = "cartesian"
......@@ -10,7 +10,7 @@ number_of_pixels = 256, 256
spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
coordinate= "Cartesian"
coordinates = "cartesian"
[telescope1]
position = -160.036um, 578.488um, 23.4301mm
......@@ -22,7 +22,7 @@ number_of_pixels = 256, 256
spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
coordinate= "Cartesian"
coordinates = "cartesian"
[telescope2]
position = -990.577um, 103.217um, 46.9283mm
......@@ -34,7 +34,7 @@ number_of_pixels = 256, 256
spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
coordinate= "Cartesian"
coordinates = "cartesian"
[dut]
position = 1.00939mm, 569.607um, 76.9855mm
......@@ -47,7 +47,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
role = dut
coordinate= "Cartesian"
coordinates = "cartesian"
[telescope3]
position = -137.008um, -952.808um, 106.619mm
......@@ -60,7 +60,7 @@ spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
role = reference
coordinate= "Cartesian"
coordinates = "cartesian"
[telescope4]
position = -344.137um, -2.37115mm, 128.061mm
......@@ -72,7 +72,7 @@ number_of_pixels = 256, 256
spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
coordinate= "Cartesian"
coordinates = "cartesian"
[telescope5]
position = -185.027um, 518.119um, 151.353mm
......@@ -84,4 +84,4 @@ number_of_pixels = 256, 256
spatial_resolution = 4um,4um
material_budget = 0.01068
time_resolution = 20ns
coordinate= "Cartesian"
coordinates = "cartesian"
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