Commit 55c92524 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

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

parent 50909035
......@@ -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;
......@@ -180,8 +179,6 @@ void AlignmentTrackChi2::finalise() {
residualFitter->SetParameter(
det * 6 + 1, (detectorID + "_displacementY").c_str(), detector->displacement().Y(), 0, -50, 50);
}
residualFitter->SetParameter(
det * 6 + 2, (detectorID + "_displacementZ").c_str(), detector->displacement().Z(), 0, -10, 500);
if(m_alignOrientation) {
residualFitter->SetParameter(
......@@ -217,8 +214,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 +274,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