#include <MinL3Algorithm.h>
Public Member Functions | |
void | addEvent (const std::vector< float > &eventSquare, const int &maxCeta, const int &maxCphi, const float &energy) |
add event to the calculation of the calibration vector More... | |
std::vector< float > | getSolution (bool resetsolution=true) |
get the solution at the end of the calibration More... | |
int | indexSqr2Reg (const int &sqrIndex, const int &maxCeta, const int &maxCphi) |
method to translate from square indices to region indices More... | |
std::vector< float > | iterate (const std::vector< std::vector< float > > &eventMatrix, const std::vector< int > &VmaxCeta, const std::vector< int > &VmaxCphi, const std::vector< float > &energyVector, const int &nIter, const bool &normalizeFlag=false) |
MinL3Algorithm (float kweight_=0., int squareMode_=5, int mineta_=1, int maxeta_=85, int minphi_=1, int maxphi_=20) | |
std::vector< float > | recalibrateEvent (const std::vector< float > &eventSquare, const int &maxCeta, const int &maxCphi, const std::vector< float > &recalibrateVector) |
recalibrate before next iteration: give previous solution vector as argument More... | |
void | resetSolution () |
reset for new iteration More... | |
~MinL3Algorithm () | |
Destructor. More... | |
Private Attributes | |
int | countEvents |
std::vector< float > | Ewsum |
float | kweight |
int | maxeta |
int | maxphi |
int | mineta |
int | minphi |
int | Nchannels |
int | Nxtals |
int | squareMode |
std::vector< float > | wsum |
Implementation of the L3 Collaboration algorithm to solve a system Ax = B by minimization of |Ax-B| using an iterative linear approach This class is specific for the ECAL calibration
13.03.2007: R.Ofierzynski
Definition at line 18 of file MinL3Algorithm.h.
MinL3Algorithm::MinL3Algorithm | ( | float | kweight_ = 0. , |
int | squareMode_ = 5 , |
||
int | mineta_ = 1 , |
||
int | maxeta_ = 85 , |
||
int | minphi_ = 1 , |
||
int | maxphi_ = 20 |
||
) |
MinL3Algorithm::~MinL3Algorithm | ( | ) |
void MinL3Algorithm::addEvent | ( | const std::vector< float > & | eventSquare, |
const int & | maxCeta, | ||
const int & | maxCphi, | ||
const float & | energy | ||
) |
add event to the calculation of the calibration vector
Definition at line 95 of file MinL3Algorithm.cc.
References countEvents, HCALHighEnergyHPDFilter_cfi::energy, Ewsum, mps_fire::i, indexSqr2Reg(), kweight, Nxtals, funct::pow(), w, and wsum.
Referenced by iterate().
std::vector< float > MinL3Algorithm::getSolution | ( | bool | resetsolution = true | ) |
get the solution at the end of the calibration
Definition at line 134 of file MinL3Algorithm.cc.
References Ewsum, mps_fire::i, Nchannels, resetSolution(), and wsum.
Referenced by iterate().
int MinL3Algorithm::indexSqr2Reg | ( | const int & | sqrIndex, |
const int & | maxCeta, | ||
const int & | maxCphi | ||
) |
method to translate from square indices to region indices
Definition at line 171 of file MinL3Algorithm.cc.
References maxeta, maxphi, mineta, minphi, and squareMode.
Referenced by addEvent(), and recalibrateEvent().
std::vector< float > MinL3Algorithm::iterate | ( | const std::vector< std::vector< float > > & | eventMatrix, |
const std::vector< int > & | VmaxCeta, | ||
const std::vector< int > & | VmaxCphi, | ||
const std::vector< float > & | energyVector, | ||
const int & | nIter, | ||
const bool & | normalizeFlag = false |
||
) |
method doing the full calibration running 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
to be used also as recipe on how to use the calibration methods one-by-one <<
Definition at line 35 of file MinL3Algorithm.cc.
References addEvent(), getSolution(), mps_fire::i, dqmiolumiharvest::j, Nchannels, Nxtals, recalibrateEvent(), and HLT_FULL_cff::scale.
Referenced by ElectronCalibration::endJob(), and ElectronCalibrationUniv::endJob().
std::vector< float > MinL3Algorithm::recalibrateEvent | ( | const std::vector< float > & | eventSquare, |
const int & | maxCeta, | ||
const int & | maxCphi, | ||
const std::vector< float > & | recalibrateVector | ||
) |
recalibrate before next iteration: give previous solution vector as argument
Definition at line 156 of file MinL3Algorithm.cc.
References mps_fire::i, indexSqr2Reg(), and Nxtals.
Referenced by iterate().
void MinL3Algorithm::resetSolution | ( | ) |
reset for new iteration
Definition at line 151 of file MinL3Algorithm.cc.
References Ewsum, Nchannels, and wsum.
Referenced by getSolution().
|
private |
Definition at line 60 of file MinL3Algorithm.h.
Referenced by addEvent().
|
private |
Definition at line 63 of file MinL3Algorithm.h.
Referenced by addEvent(), getSolution(), MinL3Algorithm(), and resetSolution().
|
private |
Definition at line 57 of file MinL3Algorithm.h.
Referenced by addEvent().
|
private |
Definition at line 59 of file MinL3Algorithm.h.
Referenced by indexSqr2Reg(), and MinL3Algorithm().
|
private |
Definition at line 59 of file MinL3Algorithm.h.
Referenced by indexSqr2Reg(), and MinL3Algorithm().
|
private |
Definition at line 59 of file MinL3Algorithm.h.
Referenced by indexSqr2Reg(), and MinL3Algorithm().
|
private |
Definition at line 59 of file MinL3Algorithm.h.
Referenced by indexSqr2Reg(), and MinL3Algorithm().
|
private |
Definition at line 61 of file MinL3Algorithm.h.
Referenced by getSolution(), iterate(), MinL3Algorithm(), and resetSolution().
|
private |
Definition at line 61 of file MinL3Algorithm.h.
Referenced by addEvent(), iterate(), MinL3Algorithm(), and recalibrateEvent().
|
private |
Definition at line 58 of file MinL3Algorithm.h.
Referenced by indexSqr2Reg(), and MinL3Algorithm().
|
private |
Definition at line 62 of file MinL3Algorithm.h.
Referenced by addEvent(), getSolution(), MinL3Algorithm(), and resetSolution().