FairRoot/PandaRoot
Public Member Functions | Public Attributes | List of all members
TRepMat Class Reference

Public Member Functions

 TRepMat ()
 
 TRepMat (const double *mat)
 
double & operator[] (int const ij)
 
double & GetSet (int col, int row)
 
double * Get ()
 
TRepVect operator* (const TRepVect vect)
 
TRepMat operator* (const TRepMat mat)
 
void Print ()
 

Public Attributes

double M [7][7]
 

Detailed Description

Definition at line 121 of file trafo_matrix_fit.C.

Constructor & Destructor Documentation

TRepMat::TRepMat ( )
inline

Definition at line 124 of file trafo_matrix_fit.C.

References i.

124  {
125  for (int i = 0; i < 7; i++){
126  for (int j = 0; j < 7; j++){
127  M[i][j] = 0;
128  }
129  }
130  }
Int_t i
Definition: run_full.C:25
double M[7][7]
TRepMat::TRepMat ( const double *  mat)
inline

Definition at line 133 of file trafo_matrix_fit.C.

References i.

133  {
134  for (int i = 0; i < 7*7; i++){
135  (*this)[i] = mat[i];
136  }
137  }
Int_t i
Definition: run_full.C:25

Member Function Documentation

double* TRepMat::Get ( )
inline

Definition at line 144 of file trafo_matrix_fit.C.

References i.

144  {
145  double* result = new double[7*7];
146  for (int i = 0; i < 7*7; i++){
147  result[i] = (*this)[i];
148  }
149  return result;
150  }
Int_t i
Definition: run_full.C:25
double& TRepMat::GetSet ( int  col,
int  row 
)
inline

Definition at line 141 of file trafo_matrix_fit.C.

References col, and row.

141  {
142  return M[col][row];
143  }
int row
Definition: anaLmdDigi.C:67
int col
Definition: anaLmdDigi.C:67
double M[7][7]
TRepVect TRepMat::operator* ( const TRepVect  vect)
inline

Definition at line 151 of file trafo_matrix_fit.C.

References TRepVect::entry, and i.

151  {
152  TRepVect result;
153  for (int i = 0; i < 7; i++){
154  for (int j = 0; j < 7; j++){
155  result.entry[i] += this->M[i][j] * vect.entry[j];
156  }
157  }
158  return result;
159  }
Int_t i
Definition: run_full.C:25
double entry[7]
double M[7][7]
TRepMat TRepMat::operator* ( const TRepMat  mat)
inline

Definition at line 160 of file trafo_matrix_fit.C.

References i, and M.

160  {
161  TRepMat result;
162  for (int i = 0; i < 7; i++){
163  for (int j = 0; j < 7; j++){
164  for (int k = 0; k < 7; k++){
165  result.M[i][j] += this->M[i][k] * mat.M[k][j];
166  }
167  }
168  }
169  return result;
170  }
Int_t i
Definition: run_full.C:25
double M[7][7]
double& TRepMat::operator[] ( int const  ij)
inline

Definition at line 138 of file trafo_matrix_fit.C.

138  {
139  return M[ij/7][ij%7];
140  }
double M[7][7]
void TRepMat::Print ( )
inline

Definition at line 171 of file trafo_matrix_fit.C.

References i.

Referenced by trafo_matrix_fit().

171  {
172  cout << " The numbers are " << endl;
173  for (int i = 0; i < 7; i++){
174  for (int j = 0; j < 7; j++){
175  cout << std::setprecision(4) << "\t" << M[i][j] << ", ";
176  }
177  cout << endl;
178  }
179  }
Int_t i
Definition: run_full.C:25
double M[7][7]

Member Data Documentation

double TRepMat::M[7][7]

Definition at line 123 of file trafo_matrix_fit.C.

Referenced by operator*().


The documentation for this class was generated from the following file: