#include <IMACalibBlock.h>
Public Member Functions | |
void | Fill (std::map< int, double >::const_iterator, std::map< int, double >::const_iterator, double pTk, double pSubtract, double sigma=1.) override |
insert an entry More... | |
IMACalibBlock (const int) | |
ctor More... | |
void | reset () override |
reset the chi2 matrices More... | |
int | solve (int usingBlockSolver, double min, double max) override |
solve the chi2 linear system More... | |
~IMACalibBlock () override | |
dtor More... | |
Public Member Functions inherited from VEcalCalibBlock | |
float | at (const unsigned int index) |
retrieve the coefficients More... | |
VEcalCalibBlock (int numberOfElements) | |
ctor More... | |
virtual | ~VEcalCalibBlock () |
dtor More... | |
Private Member Functions | |
void | complete () |
complete the triangolar chi2 matrix to a sym one More... | |
int | evalX2Size () |
give the size of a chi2 matrix More... | |
void | fillMap (const CLHEP::HepVector &result) |
fill the coefficients map from the CLHEP vector solution More... | |
void | riempiMtr (const std::vector< double > &piena, CLHEP::HepMatrix &vuota) |
copy a vector into a CLHEP object More... | |
void | riempiVtr (const std::vector< double > &pieno, CLHEP::HepVector &vuoto) |
copy a vector into a CLHEP object More... | |
Private Attributes | |
std::vector< double > | m_kaliMatrix |
matrix for the chi2 inversion More... | |
std::vector< double > | m_kaliVector |
vector for the chi2 inversion More... | |
Additional Inherited Members | |
Protected Attributes inherited from VEcalCalibBlock | |
std::map< unsigned int, float > | m_coefficients |
map of coefficients More... | |
unsigned int | m_numberOfElements |
The only parameter! More... | |
Definition at line 22 of file IMACalibBlock.h.
IMACalibBlock::IMACalibBlock | ( | const int | numberOfElements | ) |
ctor
Definition at line 15 of file IMACalibBlock.cc.
References reset().
|
override |
|
private |
complete the triangolar chi2 matrix to a sym one
Definition at line 77 of file IMACalibBlock.cc.
References mps_fire::i, m_kaliMatrix, VEcalCalibBlock::m_numberOfElements, and reco::return().
Referenced by solve().
|
inlineprivate |
give the size of a chi2 matrix
Definition at line 144 of file IMACalibBlock.cc.
References VEcalCalibBlock::m_numberOfElements.
|
overridevirtual |
insert an entry
Implements VEcalCalibBlock.
Definition at line 36 of file IMACalibBlock.cc.
References m_kaliMatrix, m_kaliVector, VEcalCalibBlock::m_numberOfElements, and reco::return().
|
private |
fill the coefficients map from the CLHEP vector solution
Definition at line 218 of file IMACalibBlock.cc.
References mps_fire::i, VEcalCalibBlock::m_coefficients, VEcalCalibBlock::m_numberOfElements, and reco::return().
Referenced by solve().
|
overridevirtual |
reset the chi2 matrices
Implements VEcalCalibBlock.
Definition at line 193 of file IMACalibBlock.cc.
References m_kaliMatrix, and m_kaliVector.
Referenced by MatrixReader.MatrixReader::__init__(), IMACalibBlock(), data_sources.json_list::next(), and MatrixReader.MatrixReader::showRaw().
|
private |
copy a vector into a CLHEP object
Definition at line 155 of file IMACalibBlock.cc.
References mps_fire::i, createfilelist::int, edm::isNotFinite(), VEcalCalibBlock::m_numberOfElements, SiStripPI::max, and reco::return().
Referenced by solve().
|
private |
copy a vector into a CLHEP object
Definition at line 175 of file IMACalibBlock.cc.
References mps_fire::i, edm::isNotFinite(), VEcalCalibBlock::m_numberOfElements, SiStripPI::max, and reco::return().
Referenced by solve().
|
overridevirtual |
solve the chi2 linear system
Implements VEcalCalibBlock.
Definition at line 99 of file IMACalibBlock.cc.
References complete(), fillMap(), mps_fire::i, m_kaliMatrix, m_kaliVector, VEcalCalibBlock::m_numberOfElements, mps_fire::result, riempiMtr(), and riempiVtr().
|
private |
matrix for the chi2 inversion
Definition at line 59 of file IMACalibBlock.h.
Referenced by complete(), Fill(), reset(), and solve().
|
private |
vector for the chi2 inversion
Definition at line 57 of file IMACalibBlock.h.