CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AlignmentExtendedCorrelationsEntry.h
Go to the documentation of this file.
1 #ifndef Alignment_CommonAlignmentAlgorithm_AlignmentExtendedCorrelationsEntry_h
2 #define Alignment_CommonAlignmentAlgorithm_AlignmentExtendedCorrelationsEntry_h
3 
4 #include <vector>
6 
7 
11 
12 
14 {
15 
16 public:
17 
20 
22  explicit AlignmentExtendedCorrelationsEntry( short unsigned int nRows, short unsigned int nCols );
23 
25  explicit AlignmentExtendedCorrelationsEntry( short unsigned int nRows, short unsigned int nCols, const float init );
26 
29 
32 
34  inline float& operator()( short unsigned int iRow, short unsigned int jCol ) { return theData[iRow*theNCols+jCol]; }
35 
37  inline const float operator()( short unsigned int iRow, short unsigned int jCol ) const { return theData[iRow*theNCols+jCol]; }
38 
40  inline const short unsigned int numRow( void ) const { return theNRows; }
41 
43  inline const short unsigned int numCol( void ) const { return theNCols; }
44 
46  void operator*=( const float multiply );
47 
49  AlgebraicMatrix matrix( void ) const;
50 
51 // /// Get the counter's value.
52 // inline const int counter( void ) const { return theCounter; }
53 
54 // /// Increase the counter's value by 1.
55 // inline void incrementCounter( void ) { ++theCounter; }
56 
57 // /// Decrease the counter's value by 1.
58 // inline void decrementCounter( void ) { --theCounter; }
59 
60 private:
61 
62 // int theCounter;
63 
64  short unsigned int theNRows;
65  short unsigned int theNCols;
66 
67  std::vector< float > theData;
68 
69 };
70 
71 #endif
void operator*=(const float multiply)
Multiply all elements of the correlations matrix with a given number.
const float operator()(short unsigned int iRow, short unsigned int jCol) const
Read or write an element of the correlations matrix. NOTE: Indexing starts from [0,0].
int init
Definition: HydjetWrapper.h:67
AlignmentExtendedCorrelationsEntry(void)
Default constructor.
AlgebraicMatrix matrix(void) const
Retrieve the correlation matrix in a CLHEP matrix representation;.
const short unsigned int numRow(void) const
Get the number of rows of the correlation matrix.
const short unsigned int numCol(void) const
Get the number of columns of the correlation matrix.
CLHEP::HepMatrix AlgebraicMatrix
float & operator()(short unsigned int iRow, short unsigned int jCol)
Read or write an element of the correlations matrix. NOTE: Indexing starts from [0,0].