#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, int nIter) |
std::vector< float > | iterate (const std::vector< std::vector< float > > &eventMatrix, const std::vector< float > &energyVector) |
~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 15 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 11 of file GenericMinL3Algorithm.cc.
GenericMinL3Algorithm::~GenericMinL3Algorithm | ( | ) |
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 23 of file GenericMinL3Algorithm.cc.
References i.
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 57 of file GenericMinL3Algorithm.cc.
References gather_cfg::cout, i, j, normaliseFlag, pileupReCalc_HLTpaths::scale, and w.
|
private |
Definition at line 37 of file GenericMinL3Algorithm.h.
Referenced by iterate().