#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 14 of file IMACalibBlock.cc.
References reset().
|
override |
|
private |
complete the triangolar chi2 matrix to a sym one
Definition at line 56 of file IMACalibBlock.cc.
References mps_fire::i, dqmiolumiharvest::j, m_kaliMatrix, and VEcalCalibBlock::m_numberOfElements.
Referenced by solve().
|
inlineprivate |
give the size of a chi2 matrix
Definition at line 108 of file IMACalibBlock.cc.
References VEcalCalibBlock::m_numberOfElements.
|
overridevirtual |
insert an entry
Implements VEcalCalibBlock.
Definition at line 25 of file IMACalibBlock.cc.
References m_kaliMatrix, m_kaliVector, and VEcalCalibBlock::m_numberOfElements.
|
private |
fill the coefficients map from the CLHEP vector solution
Definition at line 157 of file IMACalibBlock.cc.
References mps_fire::i, VEcalCalibBlock::m_coefficients, VEcalCalibBlock::m_numberOfElements, and mps_fire::result.
Referenced by solve().
|
overridevirtual |
reset the chi2 matrices
Implements VEcalCalibBlock.
Definition at line 144 of file IMACalibBlock.cc.
References m_kaliMatrix, and m_kaliVector.
Referenced by MatrixReader.MatrixReader::__init__(), data_sources.json_list::__next__(), IMACalibBlock(), and MatrixReader.MatrixReader::showRaw().
|
private |
copy a vector into a CLHEP object
Definition at line 112 of file IMACalibBlock.cc.
References cms::cuda::assert(), mps_fire::i, createfilelist::int, edm::isNotFinite(), dqmiolumiharvest::j, VEcalCalibBlock::m_numberOfElements, and SiStripPI::max.
Referenced by solve().
|
private |
copy a vector into a CLHEP object
Definition at line 130 of file IMACalibBlock.cc.
References cms::cuda::assert(), mps_fire::i, edm::isNotFinite(), VEcalCalibBlock::m_numberOfElements, and SiStripPI::max.
Referenced by solve().
|
overridevirtual |
solve the chi2 linear system
Implements VEcalCalibBlock.
Definition at line 72 of file IMACalibBlock.cc.
References complete(), fillMap(), mps_fire::i, m_kaliMatrix, m_kaliVector, VEcalCalibBlock::m_numberOfElements, SiStripPI::max, SiStripPI::min, mps_fire::result, riempiMtr(), and riempiVtr().
|
private |
matrix for the chi2 inversion
Definition at line 57 of file IMACalibBlock.h.
Referenced by complete(), Fill(), reset(), and solve().
|
private |
vector for the chi2 inversion
Definition at line 55 of file IMACalibBlock.h.