#include <ZDCFitWrapper.h>
|
| ZDCFitExpFermiVariableTaus (const std::string &tag, float tmin, float tmax, bool fixTau1, bool fixTau2, float tau1, float tau2) |
|
virtual void | DoInitialize (float initialAmp, float initialT0, float ampMin, float ampMax) override |
|
virtual void | SetT0FitLimits (float tMin, float tMax) override |
|
virtual float | GetAmplitude () const override |
|
virtual float | GetAmpError () const override |
|
virtual float | GetTau1 () const override |
|
virtual float | GetTau2 () const override |
|
virtual float | GetTime () const override |
|
virtual float | GetShapeParameter (size_t index) const override |
|
virtual float | GetBkgdMaxFraction () const override |
|
virtual double | operator() (const double *x, const double *p) override |
|
virtual void | ConstrainFit () override |
|
virtual void | UnconstrainFit () override |
|
void | Initialize (float initialAmp, float initialT0, float ampMin, float ampMax) |
|
void | Initialize (float initialAmp, float initialT0, float ampMin, float ampMax, float fitTmin, float fitTmax, float fitTRef) |
|
void | SetAmpMinMax (float minAmp, float maxAmp) |
|
void | SetT0Range (float t0Min, float t0Max) |
|
float | GetMinAmp () const |
|
float | GetMaxAmp () const |
|
float | GetTMin () const |
|
float | GetTMax () const |
|
float | GetT0Min () const |
|
float | GetT0Max () const |
|
float | GetTMinAdjust () const |
|
virtual std::shared_ptr< TF1 > | GetWrapperTF1 () |
|
virtual const TF1 * | GetWrapperTF1 () const |
|
virtual TF1 * | GetWrapperTF1RawPtr () const |
|
Definition at line 163 of file ZDCFitWrapper.h.
◆ ZDCFitExpFermiVariableTaus()
ZDCFitExpFermiVariableTaus::ZDCFitExpFermiVariableTaus |
( |
const std::string & |
tag, |
|
|
float |
tmin, |
|
|
float |
tmax, |
|
|
bool |
fixTau1, |
|
|
bool |
fixTau2, |
|
|
float |
tau1, |
|
|
float |
tau2 |
|
) |
| |
Definition at line 54 of file ZDCFitWrapper.cxx.
60 theTF1->SetParName(0,
"Amp");
61 theTF1->SetParName(1,
"T0");
62 theTF1->SetParName(2,
"#tau_{1}");
63 theTF1->SetParName(3,
"#tau_{2}");
64 theTF1->SetParName(4,
"C");
67 theTF1->SetParLimits(1, tmin, tmax);
68 theTF1->SetParLimits(2, 3, 6);
69 theTF1->SetParLimits(3, 10, 40);
◆ ConstrainFit()
void ZDCFitExpFermiVariableTaus::ConstrainFit |
( |
| ) |
|
|
overridevirtual |
◆ DoInitialize()
void ZDCFitExpFermiVariableTaus::DoInitialize |
( |
float |
initialAmp, |
|
|
float |
initialT0, |
|
|
float |
ampMin, |
|
|
float |
ampMax |
|
) |
| |
|
overridevirtual |
Implements ZDCFitWrapper.
Definition at line 75 of file ZDCFitWrapper.cxx.
79 theTF1->SetParameter(0, initialAmp);
80 theTF1->SetParameter(1, initialT0);
81 theTF1->SetParameter(4, 0);
83 theTF1->SetParLimits(0, ampMin, ampMax);
◆ GetAmpError()
virtual float ZDCFitExpFermiVariableTaus::GetAmpError |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetAmplitude()
virtual float ZDCFitExpFermiVariableTaus::GetAmplitude |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetBkgdMaxFraction()
virtual float ZDCFitExpFermiVariableTaus::GetBkgdMaxFraction |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetMaxAmp()
float ZDCFitWrapper::GetMaxAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetMinAmp()
float ZDCFitWrapper::GetMinAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetShapeParameter()
virtual float ZDCFitExpFermiVariableTaus::GetShapeParameter |
( |
size_t |
index | ) |
const |
|
inlineoverridevirtual |
◆ GetT0Max()
float ZDCFitWrapper::GetT0Max |
( |
| ) |
const |
|
inlineinherited |
◆ GetT0Min()
float ZDCFitWrapper::GetT0Min |
( |
| ) |
const |
|
inlineinherited |
◆ GetTau1()
virtual float ZDCFitExpFermiVariableTaus::GetTau1 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTau2()
virtual float ZDCFitExpFermiVariableTaus::GetTau2 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTime()
virtual float ZDCFitExpFermiVariableTaus::GetTime |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 185 of file ZDCFitWrapper.h.
188 float fitT0 = theTF1->GetParameter(1);
190 float tau1 = theTF1->GetParameter(2);
191 float tau2 = theTF1->GetParameter(3);
195 if (tau2 > tau1) fitT0 += tau1 *
std::log(tau2 / tau1 - 1.0);
◆ GetTMax()
float ZDCFitWrapper::GetTMax |
( |
| ) |
const |
|
inlineinherited |
◆ GetTMin()
float ZDCFitWrapper::GetTMin |
( |
| ) |
const |
|
inlineinherited |
◆ GetTMinAdjust()
float ZDCFitWrapper::GetTMinAdjust |
( |
| ) |
const |
|
inlineinherited |
◆ GetWrapperTF1() [1/2]
virtual std::shared_ptr<TF1> ZDCFitWrapper::GetWrapperTF1 |
( |
| ) |
|
|
inlinevirtualinherited |
◆ GetWrapperTF1() [2/2]
virtual const TF1* ZDCFitWrapper::GetWrapperTF1 |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ GetWrapperTF1RawPtr()
virtual TF1* ZDCFitWrapper::GetWrapperTF1RawPtr |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ Initialize() [1/2]
void ZDCFitWrapper::Initialize |
( |
float |
initialAmp, |
|
|
float |
initialT0, |
|
|
float |
ampMin, |
|
|
float |
ampMax |
|
) |
| |
|
inherited |
Definition at line 9 of file ZDCFitWrapper.cxx.
15 std::vector<double> zeroVec(npar, 0.0);
◆ Initialize() [2/2]
void ZDCFitWrapper::Initialize |
( |
float |
initialAmp, |
|
|
float |
initialT0, |
|
|
float |
ampMin, |
|
|
float |
ampMax, |
|
|
float |
fitTmin, |
|
|
float |
fitTmax, |
|
|
float |
fitTRef |
|
) |
| |
|
inherited |
◆ operator()()
virtual double ZDCFitExpFermiVariableTaus::operator() |
( |
const double * |
x, |
|
|
const double * |
p |
|
) |
| |
|
inlineoverridevirtual |
◆ SetAmpMinMax()
void ZDCFitWrapper::SetAmpMinMax |
( |
float |
minAmp, |
|
|
float |
maxAmp |
|
) |
| |
|
inlineinherited |
◆ SetT0FitLimits()
void ZDCFitExpFermiVariableTaus::SetT0FitLimits |
( |
float |
tMin, |
|
|
float |
tMax |
|
) |
| |
|
overridevirtual |
◆ SetT0Range()
void ZDCFitWrapper::SetT0Range |
( |
float |
t0Min, |
|
|
float |
t0Max |
|
) |
| |
|
inlineinherited |
◆ UnconstrainFit()
void ZDCFitExpFermiVariableTaus::UnconstrainFit |
( |
| ) |
|
|
overridevirtual |
◆ m_adjTLimitsEvent
bool ZDCFitWrapper::m_adjTLimitsEvent {false} |
|
privateinherited |
◆ m_ampMax
float ZDCFitWrapper::m_ampMax {0} |
|
privateinherited |
◆ m_ampMin
float ZDCFitWrapper::m_ampMin {0} |
|
privateinherited |
◆ m_fixTau1
bool ZDCFitExpFermiVariableTaus::m_fixTau1 {false} |
|
protected |
◆ m_fixTau2
bool ZDCFitExpFermiVariableTaus::m_fixTau2 {false} |
|
protected |
◆ m_t0Max
float ZDCFitWrapper::m_t0Max {0} |
|
privateinherited |
◆ m_t0Min
float ZDCFitWrapper::m_t0Min {0} |
|
privateinherited |
◆ m_tau1
float ZDCFitExpFermiVariableTaus::m_tau1 {0} |
|
protected |
◆ m_tau2
float ZDCFitExpFermiVariableTaus::m_tau2 {0} |
|
protected |
◆ m_tempTmax
float ZDCFitWrapper::m_tempTmax {0} |
|
privateinherited |
◆ m_tempTmin
float ZDCFitWrapper::m_tempTmin {0} |
|
privateinherited |
◆ m_tmax
float ZDCFitWrapper::m_tmax {0} |
|
privateinherited |
◆ m_tmin
float ZDCFitWrapper::m_tmin {0} |
|
privateinherited |
◆ m_tminAdjust
float ZDCFitWrapper::m_tminAdjust {0} |
|
privateinherited |
◆ m_wrapperTF1
std::shared_ptr<TF1> ZDCFitWrapper::m_wrapperTF1 {} |
|
privateinherited |
The documentation for this class was generated from the following files: