Go to the documentation of this file. 1 #ifndef RecoLocalCalo_HcalRecAlgos_MahiFit_HH
2 #define RecoLocalCalo_HcalRecAlgos_MahiFit_HH
15 #include <Math/Functor.h>
99 bool iCalculateArrivalTime,
101 double iTimeSigmaHPD,
102 double iTimeSigmaSiPM,
103 const std::vector<int>& iActiveBXs,
106 double iDeltaChiSqThresh,
110 float& reconstructedEnergy,
111 float& reconstructedTime,
117 void doFit(std::array<float, 3>& correctedOutput,
const int nbx)
const;
185 std::unique_ptr<FitterFuncs::PulseShapeFunctor>
psfPtr_;
std::unique_ptr< ROOT::Math::Functor > pfunctor_
void updatePulseShape(const float itQ, FullSampleVector &pulseShape, FullSampleVector &pulseDeriv, FullSampleMatrix &pulseCov) const
MahiNnlsWorkspace nnlsWork_
float totalUCNoise[MaxSVSize]
void setPulseShapeTemplate(const HcalPulseShapes::Shape &ps, bool hasTimeInfo, const HcalTimeSlew *hcalTimeSlewDelay, unsigned int nSamples)
Eigen::Matrix< double, FullSampleVectorSize, FullSampleVectorSize > FullSampleMatrix
Eigen::Matrix< double, SampleVectorSize, SampleVectorSize > SampleMatrix
float inNoiseDC[MaxSVSize]
void phase1Apply(const HBHEChannelInfo &channelData, float &reconstructedEnergy, float &reconstructedTime, bool &useTriple, float &chi2) const
void resetWorkspace() const
void nnlsConstrainParameter(Index minratioidx) const
float calculateChiSq() const
std::unique_ptr< FitterFuncs::PulseShapeFunctor > psfPtr_
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, PulseVectorSize, 1 > PulseVector
static constexpr float timeLimit_
void setParameters(bool iDynamicPed, double iTS4Thresh, double chiSqSwitch, bool iApplyTimeSlew, HcalTimeSlew::BiasSetting slewFlavor, bool iCalculateArrivalTime, double iMeanTime, double iTimeSigmaHPD, double iTimeSigmaSiPM, const std::vector< int > &iActiveBXs, int iNMaxItersMin, int iNMaxItersNNLS, double iDeltaChiSqThresh, double iNnlsThresh)
float inNoisePhoto[MaxSVSize]
Eigen::LLT< SampleMatrix > SampleDecompLLT
bool calculateArrivalTime_
float ootPulse[7][MaxSVSize]
SamplePulseMatrix invcovp
static constexpr int pedestalBX_
void solveSubmatrix(PulseMatrix &mat, PulseVector &invec, PulseVector &outvec, unsigned nP) const
const float minimize() const
void phase1Debug(const HBHEChannelInfo &channelData, MahiDebugInfo &mdi) const
std::array< SampleMatrix, MaxPVSize > pulseCovArray
void updateCov(const SampleMatrix &invCovMat) const
Eigen::Matrix< double, SampleVectorSize, Eigen::Dynamic, 0, SampleVectorSize, PulseVectorSize > SamplePulseMatrix
SamplePulseMatrix pulseMat
void onePulseMinimize() const
Eigen::Matrix< double, SampleVectorSize, 1 > SampleVector
Eigen::Matrix< double, FullSampleVectorSize, 1 > FullSampleVector
const HcalTimeSlew * hcalTimeSlewDelay_
void resetPulseShapeTemplate(const HcalPulseShapes::Shape &ps, bool hasTimeInfo, unsigned int nSamples)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, 0, PulseVectorSize, PulseVectorSize > PulseMatrix
const HcalPulseShapes::Shape * currentPulseShape_
SampleDecompLLT covDecomp
HcalTimeSlew::BiasSetting slewFlavor_
float inNoiseADC[MaxSVSize]
void doFit(std::array< float, 3 > &correctedOutput, const int nbx) const
std::vector< int > activeBXs_
float inPedestal[MaxSVSize]
float calculateArrivalTime(unsigned int iBX) const
SamplePulseMatrix pulseDerivMat
void nnlsUnconstrainParameter(Index idxp) const