Commit adbdf125 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'remove_z_tgraph_alignmenttrackchi2' into 'master'

AlignmentTrackChi2: remove TGraph showing shift in Z which is trivially always zero

See merge request !212
parents ce41f1ad d5f23fc2
Pipeline #1258587 passed with stages
in 12 minutes and 36 seconds
......@@ -143,7 +143,6 @@ void AlignmentTrackChi2::finalise() {
// Store the alignment shifts per detector:
std::map<std::string, std::vector<double>> shiftsX;
std::map<std::string, std::vector<double>> shiftsY;
std::map<std::string, std::vector<double>> shiftsZ;
std::map<std::string, std::vector<double>> rotX;
std::map<std::string, std::vector<double>> rotY;
std::map<std::string, std::vector<double>> rotZ;
......@@ -217,8 +216,6 @@ void AlignmentTrackChi2::finalise() {
static_cast<double>(Units::convert(detector->displacement().X() - old_position.X(), "um")));
shiftsY[detectorID].push_back(
static_cast<double>(Units::convert(detector->displacement().Y() - old_position.Y(), "um")));
shiftsZ[detectorID].push_back(
static_cast<double>(Units::convert(detector->displacement().Z() - old_position.Z(), "um")));
rotX[detectorID].push_back(
static_cast<double>(Units::convert(detector->rotation().X() - old_orientation.X(), "deg")));
rotY[detectorID].push_back(
......@@ -279,13 +276,6 @@ void AlignmentTrackChi2::finalise() {
align_correction_shiftY[detector->name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftY[detector->name()]->Write(name.c_str());
name = "alignment_correction_displacementZ_" + detector->name();
align_correction_shiftZ[detector->name()] =
new TGraph(static_cast<int>(shiftsZ[detector->name()].size()), &iterations[0], &shiftsZ[detector->name()][0]);
align_correction_shiftZ[detector->name()]->GetXaxis()->SetTitle("# iteration");
align_correction_shiftZ[detector->name()]->GetYaxis()->SetTitle("correction [#mum]");
align_correction_shiftZ[detector->name()]->Write(name.c_str());
name = "alignment_correction_rotationX_" + detector->name();
align_correction_rotX[detector->name()] =
new TGraph(static_cast<int>(rotX[detector->name()].size()), &iterations[0], &rotX[detector->name()][0]);
......
......@@ -44,7 +44,6 @@ namespace corryvreckan {
std::map<std::string, TGraph*> align_correction_shiftX;
std::map<std::string, TGraph*> align_correction_shiftY;
std::map<std::string, TGraph*> align_correction_shiftZ;
std::map<std::string, TGraph*> align_correction_rotX;
std::map<std::string, TGraph*> align_correction_rotY;
std::map<std::string, TGraph*> align_correction_rotZ;
......
......@@ -22,7 +22,6 @@ For each detector the following plots are produced:
* Translational shift along X-axis vs. iteration number
* Translational shift along Y-axis vs. iteration number
* Translational shift along Z-axis vs. iteration number
* Rotational shift around X-axis vs. iteration number
* Rotational shift around Y-axis vs. iteration number
* Rotational shift around Z-axis vs. iteration number
......
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