#include <ZDCFitWrapper.h>
|
| ZDCFitExpFermiLHCfPreExp (const std::string &tag, float tmin, float tmax, float tau1, float tau2, float defExpTau, float fixExpTau) |
|
| ~ZDCFitExpFermiLHCfPreExp () |
|
virtual void | DoInitialize (float initialAmp, float initialT0, float ampMin, float ampMax) override |
|
virtual void | SetT0FitLimits (float tMin, float tMax) override |
|
virtual void | SetInitialExpPulse (float amp) override |
|
virtual void | ConstrainFit () override |
|
virtual void | UnconstrainFit () 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 | GetExpAmp () const override |
|
virtual float | GetExpTau () 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 |
|
bool | fixExpTau () const |
|
float | getDefaultExpTau () const |
|
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 671 of file ZDCFitWrapper.h.
◆ ZDCFitExpFermiLHCfPreExp()
ZDCFitExpFermiLHCfPreExp::ZDCFitExpFermiLHCfPreExp |
( |
const std::string & |
tag, |
|
|
float |
tmin, |
|
|
float |
tmax, |
|
|
float |
tau1, |
|
|
float |
tau2, |
|
|
float |
defExpTau, |
|
|
float |
fixExpTau |
|
) |
| |
Definition at line 456 of file ZDCFitWrapper.cxx.
463 std::string funcNameRefFunc =
"ExpFermiLHCfPreExpRefFunc" +
tag;
482 theTF1->SetParName(0,
"Amp");
483 theTF1->SetParName(1,
"T0");
484 theTF1->SetParName(2,
"Tau1");
485 theTF1->SetParName(3,
"Tau2");
486 theTF1->SetParName(4,
"Amp_{pre}");
487 theTF1->SetParName(5,
"tau_{pre}");
488 theTF1->SetParName(6,
"bsqrt_{pre}");
489 theTF1->SetParName(7,
"ReflFrac");
491 theTF1->SetParLimits(1, tmin, tmax);
492 theTF1->SetParLimits(2, 1.0, 2);
493 theTF1->SetParLimits(3, 3.5, 5.5);
494 theTF1->SetParLimits(4, -1, 8196);
495 theTF1->SetParLimits(5, 4, 12);
496 theTF1->SetParLimits(6, -0.001, 0.001);
497 theTF1->SetParLimits(7, -1.0
e-4, 0.3);
◆ ~ZDCFitExpFermiLHCfPreExp()
ZDCFitExpFermiLHCfPreExp::~ZDCFitExpFermiLHCfPreExp |
( |
| ) |
|
|
inline |
◆ ConstrainFit()
void ZDCFitExpFermiLHCfPreExp::ConstrainFit |
( |
| ) |
|
|
overridevirtual |
◆ DoInitialize()
void ZDCFitExpFermiLHCfPreExp::DoInitialize |
( |
float |
initialAmp, |
|
|
float |
initialT0, |
|
|
float |
ampMin, |
|
|
float |
ampMax |
|
) |
| |
|
overridevirtual |
◆ fixExpTau()
bool ZDCPreExpFitWrapper::fixExpTau |
( |
| ) |
const |
|
inlineinherited |
◆ GetAmpError()
virtual float ZDCFitExpFermiLHCfPreExp::GetAmpError |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetAmplitude()
virtual float ZDCFitExpFermiLHCfPreExp::GetAmplitude |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetBkgdMaxFraction()
virtual float ZDCFitExpFermiLHCfPreExp::GetBkgdMaxFraction |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 728 of file ZDCFitWrapper.h.
731 double amp = theTF1->GetParameter(0);
732 if (amp <= 0)
return 1;
736 double expAmp = theTF1->GetParameter(4);
737 double expTau = theTF1->GetParameter(5);
738 double bexpSqrt = theTF1->GetParameter(6);
741 double expPre = expAmp * (
std::exp(-maxTime/expTau - bexpSqrt*maxTime*maxTime) -
std::exp(-tRef/expTau - bexpSqrt*tRef*tRef));
743 return expPre / (amp + expPre);
◆ getDefaultExpTau()
float ZDCPreExpFitWrapper::getDefaultExpTau |
( |
| ) |
const |
|
inlineinherited |
◆ GetExpAmp()
virtual float ZDCFitExpFermiLHCfPreExp::GetExpAmp |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetExpTau()
virtual float ZDCFitExpFermiLHCfPreExp::GetExpTau |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetMaxAmp()
float ZDCFitWrapper::GetMaxAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetMinAmp()
float ZDCFitWrapper::GetMinAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetShapeParameter()
virtual float ZDCFitExpFermiLHCfPreExp::GetShapeParameter |
( |
size_t |
index | ) |
const |
|
inlineoverridevirtual |
◆ GetT0Max()
float ZDCFitWrapper::GetT0Max |
( |
| ) |
const |
|
inlineinherited |
◆ GetT0Min()
float ZDCFitWrapper::GetT0Min |
( |
| ) |
const |
|
inlineinherited |
◆ GetTau1()
virtual float ZDCFitExpFermiLHCfPreExp::GetTau1 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTau2()
virtual float ZDCFitExpFermiLHCfPreExp::GetTau2 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTime()
virtual float ZDCFitExpFermiLHCfPreExp::GetTime |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 703 of file ZDCFitWrapper.h.
706 float fitT0 = theTF1->GetParameter(1);
708 float tau1 = theTF1->GetParameter(2);
709 float tau2 = theTF1->GetParameter(3);
713 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 ZDCFitExpFermiLHCfPreExp::operator() |
( |
const double * |
x, |
|
|
const double * |
p |
|
) |
| |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 746 of file ZDCFitWrapper.h.
756 double expAmp =
p[4];
757 double expTau =
p[5];
758 double bexpSqrt =
p[6];
759 double reflFrac =
p[7];
768 double deltaT =
t -
t0;
777 expPre = expAmp * (
std::exp(-
t/expTau - bexpSqrt*
t*
t) -
std::exp(-tRef/expTau - bexpSqrt*tRef*tRef));
779 return pulse + expPre;
◆ SetAmpMinMax()
void ZDCFitWrapper::SetAmpMinMax |
( |
float |
minAmp, |
|
|
float |
maxAmp |
|
) |
| |
|
inlineinherited |
◆ SetInitialExpPulse()
virtual void ZDCFitExpFermiLHCfPreExp::SetInitialExpPulse |
( |
float |
amp | ) |
|
|
inlineoverridevirtual |
◆ SetT0FitLimits()
void ZDCFitExpFermiLHCfPreExp::SetT0FitLimits |
( |
float |
tMin, |
|
|
float |
tMax |
|
) |
| |
|
overridevirtual |
◆ SetT0Range()
void ZDCFitWrapper::SetT0Range |
( |
float |
t0Min, |
|
|
float |
t0Max |
|
) |
| |
|
inlineinherited |
◆ UnconstrainFit()
void ZDCFitExpFermiLHCfPreExp::UnconstrainFit |
( |
| ) |
|
|
overridevirtual |
Implements ZDCFitWrapper.
Definition at line 541 of file ZDCFitWrapper.cxx.
545 theTF1->ReleaseParameter(5);
546 theTF1->SetParLimits(5, 6, 12);
548 theTF1->ReleaseParameter(6);
549 theTF1->SetParLimits(6, -0.001, 0.001);
552 theTF1->ReleaseParameter(7);
553 theTF1->SetParLimits(7, -1.0
e-4, 0.3);
◆ 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_defaultTau
float ZDCPreExpFitWrapper::m_defaultTau |
|
protectedinherited |
◆ m_expFermiLHCfFunc
std::shared_ptr<TF1> ZDCFitExpFermiLHCfPreExp::m_expFermiLHCfFunc {} |
|
private |
◆ m_expFermiLHCfPreFunc
std::shared_ptr<TF1> ZDCFitExpFermiLHCfPreExp::m_expFermiLHCfPreFunc {} |
|
private |
◆ m_fixTau
bool ZDCPreExpFitWrapper::m_fixTau |
|
protectedinherited |
◆ m_t0Max
float ZDCFitWrapper::m_t0Max {0} |
|
privateinherited |
◆ m_t0Min
float ZDCFitWrapper::m_t0Min {0} |
|
privateinherited |
◆ m_tau1
float ZDCFitExpFermiLHCfPreExp::m_tau1 {0} |
|
private |
◆ m_tau2
float ZDCFitExpFermiLHCfPreExp::m_tau2 {0} |
|
private |
◆ m_tempTmax
float ZDCFitWrapper::m_tempTmax {0} |
|
privateinherited |
◆ m_tempTmin
float ZDCFitWrapper::m_tempTmin {0} |
|
privateinherited |
◆ m_timeCorr
float ZDCFitExpFermiLHCfPreExp::m_timeCorr {0} |
|
private |
◆ 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: