#include <Calibration/EcalCalibAlgos/interface/L3CalibBlock.h>
Public Member Functions | |
double | at (int) |
To retrieve the coefficients. | |
void | Fill (std::map< int, double >::const_iterator, std::map< int, double >::const_iterator, double pTk, double pSubtract, double sigma=1.) |
insert an entry | |
L3CalibBlock (const int numberOfElements, const int keventweight=1) | |
ctor | |
void | reset () |
reset the chi2 matrices | |
void | solve (int usingBlockSolver, double min, double max) |
solve the chi2 linear system | |
~L3CalibBlock () | |
dtor | |
Private Attributes | |
MinL3AlgoUniv< unsigned int > * | m_L3AlgoUniv |
the L3 algo |
Definition at line 28 of file L3CalibBlock.h.
ctor
Definition at line 17 of file L3CalibBlock.cc.
References reset().
00018 : 00019 VEcalCalibBlock (numberOfElements), 00020 m_L3AlgoUniv (new MinL3AlgoUniv<unsigned int>(keventweight)) 00021 { 00022 reset () ; 00023 }
L3CalibBlock::~L3CalibBlock | ( | ) |
dtor
Definition at line 29 of file L3CalibBlock.cc.
References m_L3AlgoUniv.
00030 { 00031 delete m_L3AlgoUniv ; 00032 }
double L3CalibBlock::at | ( | int | ) |
To retrieve the coefficients.
void L3CalibBlock::Fill | ( | std::map< int, double >::const_iterator | MapBegin, | |
std::map< int, double >::const_iterator | MapEnd, | |||
double | pTk, | |||
double | pSubtract, | |||
double | sigma = 1. | |||
) | [virtual] |
insert an entry
Implements VEcalCalibBlock.
Definition at line 39 of file L3CalibBlock.cc.
References MinL3AlgoUniv< IDdet >::addEvent(), relval_parameters_module::energy, and m_L3AlgoUniv.
00044 { 00045 // to feed the L3 algo 00046 std::vector<float> energy ; 00047 std::vector<unsigned int> position ; 00048 // loop over the energies map 00049 for (std::map<int,double>::const_iterator itMap = MapBegin ; 00050 itMap != MapEnd ; 00051 ++itMap) 00052 { 00053 // translation into vectors for the L3 algo 00054 position.push_back (itMap->first) ; 00055 energy.push_back (itMap->second) ; 00056 } // loop over the energies map 00057 m_L3AlgoUniv->addEvent (energy, position, pTk-pSubtract) ; 00058 00059 return ; 00060 }
reset the chi2 matrices
Implements VEcalCalibBlock.
Definition at line 78 of file L3CalibBlock.cc.
References m_L3AlgoUniv, and MinL3AlgoUniv< IDdet >::resetSolution().
Referenced by L3CalibBlock().
00079 { 00080 //PG FIXME could it be it is not wanted to be reset? 00081 m_L3AlgoUniv->resetSolution () ; 00082 return ; 00083 }
solve the chi2 linear system
Implements VEcalCalibBlock.
Definition at line 67 of file L3CalibBlock.cc.
References MinL3AlgoUniv< IDdet >::getSolution(), VEcalCalibBlock::m_coefficients, and m_L3AlgoUniv.
00068 { 00069 m_coefficients = m_L3AlgoUniv->getSolution () ; 00070 return ; 00071 }
MinL3AlgoUniv<unsigned int>* L3CalibBlock::m_L3AlgoUniv [private] |
the L3 algo
the universal L3 algo
Definition at line 56 of file L3CalibBlock.h.
Referenced by Fill(), reset(), solve(), and ~L3CalibBlock().