Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Vertex.cpp

Go to the documentation of this file.
00001 #include "Vertex.h"
00002 
00003 //-----------------------------------------------------------------------
00004 // Vertex member functions
00005 //-----------------------------------------------------------------------
00006  
00007 // default constructor
00008 Vertex::Vertex() { 
00009   HepSymMatrix temp(3,0);
00010   _cov_matrix.assign(temp);
00011   _cov_matrix(1,1) = -1.;
00012 }
00013 
00014 //-----------------------------------------------------------------------
00015 // construct Vertex from an Aleph vertex
00016 Vertex::Vertex(QvrtBase* vertex) {
00017   HepSymMatrix temp(3,0);
00018   _cov_matrix.assign(temp);
00019 
00020   _v3V.setX(vertex->QX());
00021   _v3V.setY(vertex->QY());
00022   _v3V.setZ(vertex->QZ()); 
00023   _cov_matrix = vertex->QVEM();
00024 }
00025     
00026 //-----------------------------------------------------------------------
00027 // set Vertex parameters according to a Aleph vertex
00028 void Vertex::setVertexParameters(QvrtBase* vertex) {
00029   _v3V.setX(vertex->QX());
00030   _v3V.setY(vertex->QY());
00031   _v3V.setZ(vertex->QZ()); 
00032   _cov_matrix = vertex->QVEM();
00033 } 
00034  
00035 //-----------------------------------------------------------------------
00036 // set Vertex position
00037 void Vertex::setVertexPosition(float x, float y, float z) {
00038   _v3V.setX(x);
00039   _v3V.setY(y);
00040   _v3V.setZ(z); 
00041 } 
00042 
00043 //-----------------------------------------------------------------------
00044 // set Vertex position
00045 void Vertex::setVertexPosition(Hep3Vector* pv) {
00046   _v3V = *pv;
00047 } 
00048 
00049 
00050 //-----------------------------------------------------------------------
00051 // set Vertex covariance matrix (single element)
00052 void Vertex::setVertexCov(int m, int n, float val) {
00053   _cov_matrix(m,n) = val;
00054 } 
00055 
00056 //-----------------------------------------------------------------------
00057 // set Vertex covariance matrix (single element)
00058 void Vertex::setVertexCov(HepSymMatrix* newMatrix) {
00059   _cov_matrix = *newMatrix;
00060 } 
00061 

Generated at Wed Jun 18 17:19:20 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001