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

Public Member Functions

 TRepVect ()
 
double Mag2 ()
 
double & operator[] (int i)
 
TRepVect operator- (const TRepVect vect)
 

Public Attributes

double entry [7]
 

Detailed Description

Definition at line 68 of file trafo_matrix_fit.C.

Constructor & Destructor Documentation

TRepVect::TRepVect ( )
inline

Definition at line 70 of file trafo_matrix_fit.C.

References i.

70  {
71  for (int i = 0; i < 7; i++){
72  entry[i] = 0;
73  }
74  }
Int_t i
Definition: run_full.C:25
double entry[7]

Member Function Documentation

double TRepVect::Mag2 ( )
inline

Definition at line 76 of file trafo_matrix_fit.C.

References i.

Referenced by Chi2().

76  {
77  double result = 0.;
78  for (int i = 0; i < 7; i++){
79  if (i < 4) result += entry[i]*entry[i];
80  // put a penalty on the normalized momentum direction vectors
81  // to have a good measure of the track direction
82  else result += entry[i]*entry[i];
83  }
84  return result;
85  }
Int_t i
Definition: run_full.C:25
double entry[7]
TRepVect TRepVect::operator- ( const TRepVect  vect)
inline

Definition at line 87 of file trafo_matrix_fit.C.

References entry, and i.

87  {
88  TRepVect result;
89  for (int i = 0; i < 7; i++){
90  result.entry[i] = this->entry[i]-vect.entry[i];
91  }
92  return result;
93  }
Int_t i
Definition: run_full.C:25
double entry[7]
double& TRepVect::operator[] ( int  i)
inline

Definition at line 86 of file trafo_matrix_fit.C.

References i.

86 {return entry[i];}
Int_t i
Definition: run_full.C:25
double entry[7]

Member Data Documentation

double TRepVect::entry[7]

Definition at line 75 of file trafo_matrix_fit.C.

Referenced by TRepMat::operator*(), and operator-().


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