Go to the documentation of this file. 1 #ifndef RecoLocalCalo_HcalRecAlgos_MahiFit_HH
2 #define RecoLocalCalo_HcalRecAlgos_MahiFit_HH
106 bool iCalculateArrivalTime,
108 double iTimeSigmaHPD,
109 double iTimeSigmaSiPM,
110 const std::vector<int>& iActiveBXs,
113 double iDeltaChiSqThresh,
117 float& reconstructedEnergy,
118 float& reconstructedTime,
124 void doFit(std::array<float, 3>& correctedOutput,
const int nbx)
const;
136 typedef std::pair<int, std::shared_ptr<FitterFuncs::PulseShapeFunctor> >
ShapeWithId;
void updatePulseShape(const float itQ, FullSampleVector &pulseShape, FullSampleVector &pulseDeriv, FullSampleMatrix &pulseCov) const
MahiNnlsWorkspace nnlsWork_
float totalUCNoise[MaxSVSize]
Eigen::Matrix< double, FullSampleVectorSize, FullSampleVectorSize > FullSampleMatrix
Eigen::Matrix< double, SampleVectorSize, SampleVectorSize > SampleMatrix
float inNoiseDC[MaxSVSize]
void resetPulseShapeTemplate(int pulseShapeId, const HcalPulseShapes &ps, unsigned int nSamples)
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
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
std::vector< ShapeWithId > knownPulseShapes_
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_
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, 0, PulseVectorSize, PulseVectorSize > PulseMatrix
void setPulseShapeTemplate(int pulseShapeId, const HcalPulseShapes &ps, bool hasTimeInfo, const HcalTimeSlew *hcalTimeSlewDelay, unsigned int nSamples)
SampleDecompLLT covDecomp
HcalTimeSlew::BiasSetting slewFlavor_
float inNoiseADC[MaxSVSize]
void doFit(std::array< float, 3 > &correctedOutput, const int nbx) const
FitterFuncs::PulseShapeFunctor * psfPtr_
float calculateArrivalTime(const unsigned int iBX) const
std::pair< int, std::shared_ptr< FitterFuncs::PulseShapeFunctor > > ShapeWithId
std::vector< int > activeBXs_
float inPedestal[MaxSVSize]
SamplePulseMatrix pulseDerivMat
void nnlsUnconstrainParameter(Index idxp) const