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& soiPlusOneEnergy,
119 float& reconstructedTime,
125 void doFit(std::array<float, 4>& correctedOutput,
const int nbx)
const;
137 typedef std::pair<int, std::shared_ptr<FitterFuncs::PulseShapeFunctor> >
ShapeWithId;
Eigen::Matrix< double, SampleVectorSize, Eigen::Dynamic, 0, SampleVectorSize, PulseVectorSize > SamplePulseMatrix
void nnlsUnconstrainParameter(Index idxp) const
void setPulseShapeTemplate(int pulseShapeId, const HcalPulseShapes &ps, bool hasTimeInfo, const HcalTimeSlew *hcalTimeSlewDelay, unsigned int nSamples)
float ootPulse[7][MaxSVSize]
SamplePulseMatrix invcovp
HcalTimeSlew::BiasSetting slewFlavor_
void resetWorkspace() const
Eigen::Matrix< double, FullSampleVectorSize, FullSampleVectorSize > FullSampleMatrix
Eigen::LLT< SampleMatrix > SampleDecompLLT
MahiNnlsWorkspace nnlsWork_
void nnlsConstrainParameter(Index minratioidx) const
Eigen::Matrix< double, FullSampleVectorSize, 1 > FullSampleVector
static constexpr int pedestalBX_
std::array< SampleMatrix, MaxPVSize > pulseCovArray
SampleDecompLLT covDecomp
Eigen::Matrix< double, Eigen::Dynamic, 1, 0, PulseVectorSize, 1 > PulseVector
float totalUCNoise[MaxSVSize]
float inNoiseADC[MaxSVSize]
void onePulseMinimize() const
SamplePulseMatrix pulseDerivMat
void phase1Apply(const HBHEChannelInfo &channelData, float &reconstructedEnergy, float &soiPlusOneEnergy, float &reconstructedTime, bool &useTriple, float &chi2) const
float calculateChiSq() const
bool calculateArrivalTime_
float calculateArrivalTime(const unsigned int iBX) const
float inPedestal[MaxSVSize]
void solveSubmatrix(PulseMatrix &mat, PulseVector &invec, PulseVector &outvec, unsigned nP) const
const float minimize() const
void phase1Debug(const HBHEChannelInfo &channelData, MahiDebugInfo &mdi) const
std::vector< int > activeBXs_
static constexpr float timeLimit_
void resetPulseShapeTemplate(int pulseShapeId, const HcalPulseShapes &ps, unsigned int nSamples)
Eigen::Matrix< double, SampleVectorSize, 1 > SampleVector
void updateCov(const SampleMatrix &invCovMat) const
SamplePulseMatrix pulseMat
void doFit(std::array< float, 4 > &correctedOutput, const int nbx) const
Eigen::Matrix< double, SampleVectorSize, SampleVectorSize > SampleMatrix
float inNoisePhoto[MaxSVSize]
const HcalTimeSlew * hcalTimeSlewDelay_
std::pair< int, std::shared_ptr< FitterFuncs::PulseShapeFunctor > > ShapeWithId
float inNoiseDC[MaxSVSize]
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)
void updatePulseShape(const float itQ, FullSampleVector &pulseShape, FullSampleVector &pulseDeriv, FullSampleMatrix &pulseCov) const
FitterFuncs::PulseShapeFunctor * psfPtr_
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, 0, PulseVectorSize, PulseVectorSize > PulseMatrix
std::vector< ShapeWithId > knownPulseShapes_