CMS 3D CMS Logo

VEcalCalibBlock.h
Go to the documentation of this file.
1 #ifndef __CINT__
2 #ifndef VEcalCalibBlock_H
3 #define VEcalCalibBlock_H
4 
5 #include <map>
6 #include <string>
7 #include <vector>
8 
14 public:
16  VEcalCalibBlock(int numberOfElements) : m_numberOfElements(numberOfElements){};
18  virtual ~VEcalCalibBlock(){};
19 
21  virtual void Fill(std::map<int, double>::const_iterator,
22  std::map<int, double>::const_iterator,
23  double pTk,
24  double pSubtract,
25  double sigma = 1.) = 0;
26 
28  virtual void reset() = 0;
30  float at(const unsigned int index) { return m_coefficients[index]; }
32  virtual int solve(int usingBlockSolver, double min, double max) = 0;
33 
34 protected:
36  unsigned int m_numberOfElements;
38  std::map<unsigned int, float> m_coefficients;
39 };
40 
41 #endif
42 #endif
VEcalCalibBlock
element for the single ECAL block intercalibration
Definition: VEcalCalibBlock.h:13
VEcalCalibBlock::reset
virtual void reset()=0
reset the chi2 matrices
min
T min(T a, T b)
Definition: MathUtil.h:58
VEcalCalibBlock::VEcalCalibBlock
VEcalCalibBlock(int numberOfElements)
ctor
Definition: VEcalCalibBlock.h:16
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
VEcalCalibBlock::m_coefficients
std::map< unsigned int, float > m_coefficients
map of coefficients
Definition: VEcalCalibBlock.h:38
VEcalCalibBlock::m_numberOfElements
unsigned int m_numberOfElements
The only parameter!
Definition: VEcalCalibBlock.h:36
VEcalCalibBlock::at
float at(const unsigned int index)
retrieve the coefficients
Definition: VEcalCalibBlock.h:30
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
VEcalCalibBlock::solve
virtual int solve(int usingBlockSolver, double min, double max)=0
solve the chi2 linear system
VEcalCalibBlock::Fill
virtual void Fill(std::map< int, double >::const_iterator, std::map< int, double >::const_iterator, double pTk, double pSubtract, double sigma=1.)=0
insert an entry
VEcalCalibBlock::~VEcalCalibBlock
virtual ~VEcalCalibBlock()
dtor
Definition: VEcalCalibBlock.h:18