#include <ZDCFitWrapper.h>
|
| ZDCFitExpFermiPreExp (const std::string &tag, float tmin, float tmax, float tau1, float tau2, float defExpTau, float fixExpTau) |
|
| ~ZDCFitExpFermiPreExp () |
|
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 580 of file ZDCFitWrapper.h.
◆ ZDCFitExpFermiPreExp()
ZDCFitExpFermiPreExp::ZDCFitExpFermiPreExp |
( |
const std::string & |
tag, |
|
|
float |
tmin, |
|
|
float |
tmax, |
|
|
float |
tau1, |
|
|
float |
tau2, |
|
|
float |
defExpTau, |
|
|
float |
fixExpTau |
|
) |
| |
Definition at line 363 of file ZDCFitWrapper.cxx.
370 std::string funcNameRefFunc =
"ExpFermiPreExpRefFunc" +
tag;
388 theTF1->SetParName(0,
"Amp");
389 theTF1->SetParName(1,
"T0");
390 theTF1->SetParName(2,
"Amp_{pre}");
391 theTF1->SetParName(3,
"tau_{pre}");
392 theTF1->SetParName(4,
"tausqrt_{pre}");
393 theTF1->SetParName(5,
"C");
395 theTF1->SetParLimits(1, tmin, tmax);
396 theTF1->SetParLimits(2, -1, 8196);
397 theTF1->SetParLimits(3, 6, 30);
398 theTF1->SetParLimits(4, -0.2, 0.2);
399 theTF1->SetParLimits(5, -50, 50);
◆ ~ZDCFitExpFermiPreExp()
ZDCFitExpFermiPreExp::~ZDCFitExpFermiPreExp |
( |
| ) |
|
|
inline |
◆ ConstrainFit()
void ZDCFitExpFermiPreExp::ConstrainFit |
( |
| ) |
|
|
overridevirtual |
◆ DoInitialize()
void ZDCFitExpFermiPreExp::DoInitialize |
( |
float |
initialAmp, |
|
|
float |
initialT0, |
|
|
float |
ampMin, |
|
|
float |
ampMax |
|
) |
| |
|
overridevirtual |
◆ fixExpTau()
bool ZDCPreExpFitWrapper::fixExpTau |
( |
| ) |
const |
|
inlineinherited |
◆ GetAmpError()
virtual float ZDCFitExpFermiPreExp::GetAmpError |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetAmplitude()
virtual float ZDCFitExpFermiPreExp::GetAmplitude |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetBkgdMaxFraction()
virtual float ZDCFitExpFermiPreExp::GetBkgdMaxFraction |
( |
| ) |
const |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 628 of file ZDCFitWrapper.h.
633 double amp = theTF1->GetParameter(0);
634 if (amp <= 0)
return -1;
636 double preAmp = theTF1->GetParameter(2);
637 double preT0 = theTF1->GetParameter(3);
639 double deltaTPre = maxTime - preT0;
642 return background / (amp + background);
◆ getDefaultExpTau()
float ZDCPreExpFitWrapper::getDefaultExpTau |
( |
| ) |
const |
|
inlineinherited |
◆ GetExpAmp()
virtual float ZDCFitExpFermiPreExp::GetExpAmp |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetExpTau()
virtual float ZDCFitExpFermiPreExp::GetExpTau |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetMaxAmp()
float ZDCFitWrapper::GetMaxAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetMinAmp()
float ZDCFitWrapper::GetMinAmp |
( |
| ) |
const |
|
inlineinherited |
◆ GetShapeParameter()
virtual float ZDCFitExpFermiPreExp::GetShapeParameter |
( |
size_t |
index | ) |
const |
|
inlineoverridevirtual |
◆ GetT0Max()
float ZDCFitWrapper::GetT0Max |
( |
| ) |
const |
|
inlineinherited |
◆ GetT0Min()
float ZDCFitWrapper::GetT0Min |
( |
| ) |
const |
|
inlineinherited |
◆ GetTau1()
virtual float ZDCFitExpFermiPreExp::GetTau1 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTau2()
virtual float ZDCFitExpFermiPreExp::GetTau2 |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetTime()
virtual float ZDCFitExpFermiPreExp::GetTime |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ 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 ZDCFitExpFermiPreExp::operator() |
( |
const double * |
x, |
|
|
const double * |
p |
|
) |
| |
|
inlineoverridevirtual |
Implements ZDCFitWrapper.
Definition at line 645 of file ZDCFitWrapper.h.
651 double expAmp =
p[2];
652 double expTau =
p[3];
653 double expSqrtTau =
p[4];
656 double deltaT =
t -
t0;
664 if (
t > 0 && std::abs(expSqrtTau)>1
e-6) expPre = expAmp * (
std::exp(-
t/expTau-expSqrtTau*std::sqrt(
t)) -
std::exp(-tRef/expTau));
667 return C + pulse + expPre;
◆ SetAmpMinMax()
void ZDCFitWrapper::SetAmpMinMax |
( |
float |
minAmp, |
|
|
float |
maxAmp |
|
) |
| |
|
inlineinherited |
◆ SetInitialExpPulse()
virtual void ZDCFitExpFermiPreExp::SetInitialExpPulse |
( |
float |
amp | ) |
|
|
inlineoverridevirtual |
◆ SetT0FitLimits()
void ZDCFitExpFermiPreExp::SetT0FitLimits |
( |
float |
tMin, |
|
|
float |
tMax |
|
) |
| |
|
overridevirtual |
◆ SetT0Range()
void ZDCFitWrapper::SetT0Range |
( |
float |
t0Min, |
|
|
float |
t0Max |
|
) |
| |
|
inlineinherited |
◆ UnconstrainFit()
void ZDCFitExpFermiPreExp::UnconstrainFit |
( |
| ) |
|
|
overridevirtual |
Implements ZDCFitWrapper.
Definition at line 412 of file ZDCFitWrapper.cxx.
416 theTF1->ReleaseParameter(2);
417 theTF1->SetParLimits(2, -1, 8196);
419 theTF1->ReleaseParameter(3);
420 theTF1->SetParLimits(3, 6, 30);
423 theTF1->ReleaseParameter(5);
424 theTF1->SetParLimits(5, -50, 50);
425 theTF1->SetParameter(5, 0);
◆ 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_expFermiFunc
std::shared_ptr<TF1> ZDCFitExpFermiPreExp::m_expFermiFunc {0} |
|
private |
◆ m_expFermiPreFunc
std::shared_ptr<TF1> ZDCFitExpFermiPreExp::m_expFermiPreFunc {0} |
|
private |
◆ m_fixTau
bool ZDCPreExpFitWrapper::m_fixTau |
|
protectedinherited |
◆ m_norm
double ZDCFitExpFermiPreExp::m_norm |
|
private |
◆ m_t0Max
float ZDCFitWrapper::m_t0Max {0} |
|
privateinherited |
◆ m_t0Min
float ZDCFitWrapper::m_t0Min {0} |
|
privateinherited |
◆ m_tau1
float ZDCFitExpFermiPreExp::m_tau1 {0} |
|
private |
◆ m_tau2
float ZDCFitExpFermiPreExp::m_tau2 {0} |
|
private |
◆ m_tempTmax
float ZDCFitWrapper::m_tempTmax {0} |
|
privateinherited |
◆ m_tempTmin
float ZDCFitWrapper::m_tempTmin {0} |
|
privateinherited |
◆ m_timeCorr
float ZDCFitExpFermiPreExp::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: