#include <PulseShapeFunctor.h>
Public Member Functions | |
const std::vector< float > & | acc25nsVec () const |
const std::vector< float > & | accVarLenIdxMinusOneVec () const |
const std::vector< float > & | accVarLenIdxZEROVec () const |
const std::vector< float > & | diff25nsItvlVec () const |
const std::vector< float > & | diffVarItvlIdxMinusOneVec () const |
const std::vector< float > & | diffVarItvlIdxZEROVec () const |
double | doublePulseShapeFunc (const double *x) |
void | EvalPulse (const float *pars) |
double | EvalPulseM2 (const double *pars, const unsigned nPar) |
int | getcntNANinfit () |
void | getPulseShape (std::array< double, hcal::constants::maxSamples > &fillPulseShape) |
double | getSiPMDarkCurrent (double darkCurrent, double fcByPE, double lambda) |
PulseShapeFunctor (const HcalPulseShapes::Shape &pulse, bool iPedestalConstraint, bool iTimeConstraint, bool iAddPulseJitter, double iPulseJitter, double iTimeMean, double iPedMean, unsigned int nSamplesToFit) | |
void | setDefaultcntNANinfit () |
void | setinvertpedSig2 (double x) |
void | setinverttimeSig2 (double x) |
void | setpsFiterry (double *erry) |
void | setpsFiterry2 (double *erry2) |
void | setpsFitslew (double *slew) |
void | setpsFitx (double *x) |
void | setpsFity (double *y) |
double | singlePulseShapeFunc (const double *x) |
void | singlePulseShapeFuncMahi (const float *x) |
double | triplePulseShapeFunc (const double *x) |
~PulseShapeFunctor () | |
Private Member Functions | |
void | funcShape (std::array< double, hcal::constants::maxSamples > &ntmpbin, const double pulseTime, const double pulseHeight, const double slew, bool scalePulse) |
Private Attributes | |
std::vector< float > | acc25nsVec_ |
std::vector< float > | accVarLenIdxMinusOneVec_ |
std::vector< float > | accVarLenIdxZEROVec_ |
bool | addPulseJitter_ |
int | cntNANinfit |
std::vector< float > | diff25nsItvlVec_ |
std::vector< float > | diffVarItvlIdxMinusOneVec_ |
std::vector< float > | diffVarItvlIdxZEROVec_ |
double | invertpedSig2_ |
double | inverttimeSig2_ |
unsigned | nSamplesToFit_ |
bool | pedestalConstraint_ |
double | pedMean_ |
double | psFit_erry [hcal::constants::maxSamples] |
double | psFit_erry2 [hcal::constants::maxSamples] |
double | psFit_slew [hcal::constants::maxSamples] |
double | psFit_x [hcal::constants::maxSamples] |
double | psFit_y [hcal::constants::maxSamples] |
std::array< float, hcal::constants::maxPSshapeBin > | pulse_hist |
std::array< double, hcal::constants::maxSamples > | pulse_shape_ |
std::array< double, hcal::constants::maxSamples > | pulse_shape_sum_ |
double | pulseJitter_ |
bool | timeConstraint_ |
double | timeMean_ |
double | timeShift_ |
double | timeSig_ |
bool | unConstrainedFit_ |
Definition at line 9 of file PulseShapeFunctor.h.
FitterFuncs::PulseShapeFunctor::PulseShapeFunctor | ( | const HcalPulseShapes::Shape & | pulse, |
bool | iPedestalConstraint, | ||
bool | iTimeConstraint, | ||
bool | iAddPulseJitter, | ||
double | iPulseJitter, | ||
double | iTimeMean, | ||
double | iPedMean, | ||
unsigned int | nSamplesToFit | ||
) |
Definition at line 10 of file PulseShapeFunctor.cc.
References acc25nsVec_, accVarLenIdxMinusOneVec_, accVarLenIdxZEROVec_, addPulseJitter_, diff25nsItvlVec_, diffVarItvlIdxMinusOneVec_, diffVarItvlIdxZEROVec_, mps_fire::i, dqmiolumiharvest::j, hcal::constants::maxPSshapeBin, hcal::constants::maxSamples, nSamplesToFit_, hcal::constants::nsPerBX, pedestalConstraint_, pedMean_, psFit_erry, psFit_erry2, psFit_slew, psFit_x, psFit_y, pulse(), pulse_hist, pulseJitter_, timeConstraint_, timeMean_, and timeShift_.
FitterFuncs::PulseShapeFunctor::~PulseShapeFunctor | ( | ) |
Definition at line 124 of file PulseShapeFunctor.cc.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 54 of file PulseShapeFunctor.h.
References EvalPulseM2().
Referenced by PulseShapeFitOOTPileupCorrection::resetPulseShapeTemplate().
void FitterFuncs::PulseShapeFunctor::EvalPulse | ( | const float * | pars | ) |
Definition at line 126 of file PulseShapeFunctor.cc.
References funcShape(), hcal::constants::invertnsPerBx, psFit_slew, pulse_shape_, protons_cff::time, timeMean_, and timeShift_.
Referenced by singlePulseShapeFuncMahi().
double FitterFuncs::PulseShapeFunctor::EvalPulseM2 | ( | const double * | pars, |
const unsigned | nPar | ||
) |
Definition at line 133 of file PulseShapeFunctor.cc.
References addPulseJitter_, cntNANinfit, ztail::d, funcShape(), mps_fire::i, hcal::constants::invertnsPerBx, invertpedSig2_, inverttimeSig2_, edm::isNotFinite(), dqmiolumiharvest::j, nSamplesToFit_, hcal::constants::nsPerBX, EcalCondDBWriter_cfi::pedestal, pedestalConstraint_, pedMean_, psFit_erry2, psFit_slew, psFit_y, pulse_shape_, pulse_shape_sum_, pulseJitter_, protons_cff::time, timeConstraint_, timeMean_, and timeShift_.
Referenced by doublePulseShapeFunc(), singlePulseShapeFunc(), and triplePulseShapeFunc().
|
private |
Definition at line 72 of file PulseShapeFunctor.cc.
References funct::abs(), acc25nsVec_, accVarLenIdxMinusOneVec_, accVarLenIdxZEROVec_, cntNANinfit, diff25nsItvlVec_, diffVarItvlIdxMinusOneVec_, diffVarItvlIdxZEROVec_, f, DQMScaleToClient_cfi::factor, mps_fire::i, hcal::constants::iniTimeShift, createfilelist::int, edm::isNotFinite(), hcal::constants::maxSamples, and hcal::constants::nsPerBX.
Referenced by EvalPulse(), and EvalPulseM2().
|
inline |
|
inline |
Definition at line 57 of file PulseShapeFunctor.h.
References pulse_shape_.
Referenced by MahiFit::updatePulseShape().
double FitterFuncs::PulseShapeFunctor::getSiPMDarkCurrent | ( | double | darkCurrent, |
double | fcByPE, | ||
double | lambda | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 35 of file PulseShapeFunctor.h.
References mps_fire::i, hcal::constants::maxSamples, and psFit_erry.
|
inline |
Definition at line 39 of file PulseShapeFunctor.h.
References mps_fire::i, hcal::constants::maxSamples, and psFit_erry2.
|
inline |
Definition at line 43 of file PulseShapeFunctor.h.
References mps_fire::i, hcal::constants::maxSamples, and psFit_slew.
|
inline |
Definition at line 27 of file PulseShapeFunctor.h.
References mps_fire::i, hcal::constants::maxSamples, and psFit_x.
|
inline |
Definition at line 31 of file PulseShapeFunctor.h.
References mps_fire::i, hcal::constants::maxSamples, and psFit_y.
|
inline |
Definition at line 53 of file PulseShapeFunctor.h.
References EvalPulseM2().
Referenced by PulseShapeFitOOTPileupCorrection::resetPulseShapeTemplate().
|
inline |
Definition at line 52 of file PulseShapeFunctor.h.
References EvalPulse().
Referenced by MahiFit::updatePulseShape().
|
inline |
Definition at line 55 of file PulseShapeFunctor.h.
References EvalPulseM2().
Referenced by PulseShapeFitOOTPileupCorrection::resetPulseShapeTemplate().
|
private |
Definition at line 73 of file PulseShapeFunctor.h.
Referenced by acc25nsVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 75 of file PulseShapeFunctor.h.
Referenced by accVarLenIdxMinusOneVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 74 of file PulseShapeFunctor.h.
Referenced by accVarLenIdxZEROVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 89 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 72 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), funcShape(), getcntNANinfit(), and setDefaultcntNANinfit().
|
private |
Definition at line 73 of file PulseShapeFunctor.h.
Referenced by diff25nsItvlVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 75 of file PulseShapeFunctor.h.
Referenced by diffVarItvlIdxMinusOneVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 74 of file PulseShapeFunctor.h.
Referenced by diffVarItvlIdxZEROVec(), funcShape(), and PulseShapeFunctor().
|
private |
Definition at line 98 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and setinvertpedSig2().
|
private |
Definition at line 97 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and setinverttimeSig2().
|
private |
Definition at line 86 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 87 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 94 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 82 of file PulseShapeFunctor.h.
Referenced by PulseShapeFunctor(), and setpsFiterry().
|
private |
Definition at line 82 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), PulseShapeFunctor(), and setpsFiterry2().
|
private |
Definition at line 82 of file PulseShapeFunctor.h.
Referenced by EvalPulse(), EvalPulseM2(), PulseShapeFunctor(), and setpsFitslew().
|
private |
Definition at line 82 of file PulseShapeFunctor.h.
Referenced by PulseShapeFunctor(), and setpsFitx().
|
private |
Definition at line 82 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), PulseShapeFunctor(), and setpsFity().
|
private |
Definition at line 70 of file PulseShapeFunctor.h.
Referenced by PulseShapeFunctor().
|
private |
Definition at line 99 of file PulseShapeFunctor.h.
Referenced by EvalPulse(), EvalPulseM2(), and getPulseShape().
|
private |
Definition at line 100 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2().
|
private |
Definition at line 91 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 88 of file PulseShapeFunctor.h.
Referenced by EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 92 of file PulseShapeFunctor.h.
Referenced by EvalPulse(), EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 95 of file PulseShapeFunctor.h.
Referenced by EvalPulse(), EvalPulseM2(), and PulseShapeFunctor().
|
private |
Definition at line 93 of file PulseShapeFunctor.h.
|
private |
Definition at line 90 of file PulseShapeFunctor.h.