#include <GenericMinL3Algorithm.h>
Public Member Functions | |
GenericMinL3Algorithm (bool normalise=false) | |
std::vector< float > | iterate (const std::vector< std::vector< float > > &eventMatrix, const std::vector< float > &energyVector) |
std::vector< float > | iterate (const std::vector< std::vector< float > > &eventMatrix, const std::vector< float > &energyVector, int nIter) |
~GenericMinL3Algorithm () | |
Destructor. More... | |
Private Attributes | |
bool | normaliseFlag |
Implementation of the L3 Collaboration algorithm to solve a system Ax = B by minimization of |Ax-B| using an iterative linear approach
Definition at line 14 of file GenericMinL3Algorithm.h.
GenericMinL3Algorithm::GenericMinL3Algorithm | ( | bool | normalise = false | ) |
Default constructor CAVEAT: use normalise = true only if you know what you're doing!
Definition at line 10 of file GenericMinL3Algorithm.cc.
GenericMinL3Algorithm::~GenericMinL3Algorithm | ( | ) |
std::vector< float > GenericMinL3Algorithm::iterate | ( | const std::vector< std::vector< float > > & | eventMatrix, |
const std::vector< float > & | energyVector | ||
) |
perform one iteration using the Minimization L3 Algorithm returns the vector of calibration coefficients
Definition at line 49 of file GenericMinL3Algorithm.cc.
References gather_cfg::cout, mps_fire::i, dqmiolumiharvest::j, normaliseFlag, L1EGammaCrystalsEmulatorProducer_cfi::scale, and w.
std::vector< float > GenericMinL3Algorithm::iterate | ( | const std::vector< std::vector< float > > & | eventMatrix, |
const std::vector< float > & | energyVector, | ||
int | nIter | ||
) |
run the Minimization L3 Algorithm "nIter" number of times, recalibrating the event matrix after each iteration with the new solution returns the vector of calibration coefficients built from all iteration solutions
Definition at line 17 of file GenericMinL3Algorithm.cc.
References mps_fire::i.
|
private |
Definition at line 36 of file GenericMinL3Algorithm.h.
Referenced by iterate().