|
#include "Utilities.h"
#include <assert.h>
#include <iostream>
#include <TMath.h>
#include <TFile.h>
#include <TROOT.h>
Functions |
void | setXYZ (HepVector &v, double x, double y, double z) |
bool | equal (const double val1, const double val2, const double precision) |
void | GetSubMatrix (const HepSymMatrix &m, int startRow, int startColumn, int endRow, int endColumn, HepMatrix &sub) |
void | GetSubMatrix (const HepMatrix &m, int startRow, int startColumn, int endRow, int endColumn, HepMatrix &sub) |
void | SetSubMatrix (HepMatrix &m, int startRow, int startColumn, const HepMatrix &sub) |
void | SetSubMatrix (HepSymMatrix &m, int startRow, int startColumn, const HepMatrix &sub) |
HepVector | GetSubVector (const HepVector &v, int start, int end) |
void | SetSubVector (HepVector &v, int start, const HepVector &sub) |
void | CLHEPtoROOT (const HepMatrix &oldM, TMatrixD *newM) |
| Convert a CLHEP HepMatrix to ROOT TMatrixD.
|
void | CLHEPtoROOT (const HepSymMatrix &oldM, TMatrixDSym *newM) |
| Convert a CLHEP HepSymMatrix to ROOT TMatrixDSym.
|
void | CLHEPtoROOT (const HepVector &oldV, TVectorD *newV) |
| Convert a CLHEP HepVector to ROOT TVectorD.
|
TObject * | get_object (const char *objectname, const char *filename) |
TTree * | get_tree (const char *treename, const char *filename) |
TTree * | init_align_tree (const char *filename) |
Variables |
int | gLogLevel = 3 |
Detailed Description
Contains often used functions for vectors, matrices and other.
Function Documentation
bool equal |
( |
const double |
val1, |
|
|
const double |
val2, |
|
|
const double |
precision |
|
) |
| |
Test if two values are equal within a certain precision.
void GetSubMatrix |
( |
const HepMatrix & |
m, |
|
|
int |
startRow, |
|
|
int |
startColumn, |
|
|
int |
endRow, |
|
|
int |
endColumn, |
|
|
HepMatrix & |
sub |
|
) |
| |
Get a submatrix of matrix m. Counting starts at 0, and both start and end rows/columns are included. The matrix sub needs to have the correct size, already.
void GetSubMatrix |
( |
const HepSymMatrix & |
m, |
|
|
int |
startRow, |
|
|
int |
startColumn, |
|
|
int |
endRow, |
|
|
int |
endColumn, |
|
|
HepMatrix & |
sub |
|
) |
| |
Get a submatrix of matrix m. Counting starts at 0, and both start and end rows/columns are included. The matrix sub needs to have the correct size, already.
void SetSubMatrix |
( |
HepSymMatrix & |
m, |
|
|
int |
startRow, |
|
|
int |
startColumn, |
|
|
const HepMatrix & |
sub |
|
) |
| |
Set a submatrix of the covariance matrix. Counting starts at 0.
void SetSubMatrix |
( |
HepMatrix & |
m, |
|
|
int |
startRow, |
|
|
int |
startColumn, |
|
|
const HepMatrix & |
sub |
|
) |
| |
Set a submatrix of the covariance matrix. Counting starts at 0.
void setXYZ |
( |
HepVector & |
v, |
|
|
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Set X, Y and Z coordinate of a HepVector in one go.
|