Skip to content
Snippets Groups Projects
Commit 64b68c93 authored by Adrien Matta's avatar Adrien Matta :skull_crossbones:
Browse files

* Fixing bug in MinosUtility

        - operation of defining the maximum bin for fitting was done
        after the sampling, which uses this value leading to seg fault
        in some cases
parent 8699a79c
No related branches found
No related tags found
No related merge requests found
......@@ -74,10 +74,11 @@ double MinosUtility::Calibrate(const std::vector<unsigned short>* T,const std::v
return -10000;
}
sample_signal();
m_guess_t0_bin = m_qmaxbin-20;
m_minbin = m_guess_t0_bin;
m_maxbin = std::min(m_guess_t0_bin+40,m_signal_size);
sample_signal();
m_signal_min->Clear();
m_signal_min->SetLimitedVariable(0,"A",m_qmax*10,100,0,m_qmax*20);
m_signal_min->SetLimitedVariable(1,"t0",(*m_fitSignalT)[m_guess_t0_bin],1,0,(*m_fitSignalT)[m_qmaxbin]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment