Commit c18a1b02 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

no new alignment file written if not enough tracks for alignment produced

Former-commit-id: c99036bcedb9436a5cf00e7231e6ab492f15a254
parent af4b1227
......@@ -166,6 +166,9 @@ void MinimiseResiduals(Int_t &npar, Double_t *grad, Double_t &result, Double_t *
void Alignment::finalise(){
// If not enough tracks were produced, do nothing
if(m_alignmenttracks.size() < m_numberOfTracksForAlignment) return;
// Make the fitting object
TVirtualFitter* residualFitter = TVirtualFitter::Fitter(0,50);
Supports Markdown
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