Skip to content
Snippets Groups Projects
Commit a364a68a authored by Brian Andrew Cole's avatar Brian Andrew Cole
Browse files

Cosmetic change to move parameter name setting ahead of limit setting, also update copyrights

parent 1e44d220
No related branches found
No related tags found
No related merge requests found
Pipeline #8461088 passed
......@@ -592,15 +592,10 @@ ZDCFitExpFermiLHCfPrePulse::ZDCFitExpFermiLHCfPrePulse(const std::string& tag, f
// Now set up the actual TF1
//
std::shared_ptr<TF1> theTF1 = ZDCFitWrapper::GetWrapperTF1();
// BAC, parameter 0 limits now is set in DoInitialize
theTF1->SetParLimits(1, tmin, tmax);
theTF1->SetParLimits(2, 1.0, 2);
theTF1->SetParLimits(3, 3.5, 5.5);
theTF1->SetParLimits(4, 1, 8196); // Increase the upper range to 2 times of ADC range to deal with large exponential tail case of pre-pulse.
theTF1->SetParLimits(5, -20, 10);
std::shared_ptr<TF1> theTF1 = ZDCFitWrapper::GetWrapperTF1();
// The actual paerameters we fit
//
theTF1->SetParName(0, "Amp");
theTF1->SetParName(1, "T0");
theTF1->SetParName(2, "tau1");
......@@ -608,6 +603,14 @@ ZDCFitExpFermiLHCfPrePulse::ZDCFitExpFermiLHCfPrePulse(const std::string& tag, f
theTF1->SetParName(4, "Amp_{pre}");
theTF1->SetParName(5, "T0_{pre}");
theTF1->SetParName(6, "C");
// BAC, parameter 0 limits now is set in DoInitialize
theTF1->SetParLimits(1, tmin, tmax);
theTF1->SetParLimits(2, 1.0, 2);
theTF1->SetParLimits(3, 3.5, 5.5);
theTF1->SetParLimits(4, 1, 8196); // Increase the upper range to 2 times of ADC range to deal with large exponential tail case of pre-pulse.
theTF1->SetParLimits(5, -20, 10);
}
void ZDCFitExpFermiLHCfPrePulse::ConstrainFit()
......
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