CMS 3D CMS Logo

L3CalibBlock Class Reference

interface to the L3Univ class for testing More...

#include <Calibration/EcalCalibAlgos/interface/L3CalibBlock.h>

Inheritance diagram for L3CalibBlock:

VEcalCalibBlock

List of all members.

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


Detailed Description

interface to the L3Univ class for testing

Date
2008/02/25 17:50:39
Revision
1.2
Id
L3CalibBlock.h,v 1.2 2008/02/25 17:50:39 malberti Exp
Author:
Author
malberti

Definition at line 28 of file L3CalibBlock.h.


Constructor & Destructor Documentation

L3CalibBlock::L3CalibBlock ( const int  numberOfElements,
const int  keventweight = 1 
)

ctor

Date
2008/02/25 17:53:28
Revision
1.2
Id
L3CalibBlock.cc,v 1.2 2008/02/25 17:53:28 malberti Exp

Author:
Author
malberti

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 }


Member Function Documentation

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 }

void L3CalibBlock::reset ( void   )  [virtual]

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 }

void L3CalibBlock::solve ( int  usingBlockSolver,
double  min,
double  max 
) [virtual]

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 }


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:27:11 2009 for CMSSW by  doxygen 1.5.4