#include "CPPFORT/lcvtx.h"#include "lcio.h"#include "IMPL/VertexImpl.h"#include "IMPL/ReconstructedParticleImpl.h"#include <iostream>Include dependency graph for lcvtx.cc:

Go to the source code of this file.
Functions | |
| PTRTYPE | lcvtxcreate () | 
| int | lcvtxdelete (PTRTYPE vertex) | 
| int | lcvtxid (PTRTYPE vertex) | 
| bool | lcvtxisprimary (PTRTYPE vertex) | 
| char * | lcvtxgetalgorithmtype (PTRTYPE vertex) | 
| float | lcvtxgetchi2 (PTRTYPE vertex) | 
| float | lcvtxgetprobability (PTRTYPE vertex) | 
| int | lcvtxgetposition (PTRTYPE vertex, float pos[3]) | 
| int | lcvtxgetcovmatrix (PTRTYPE vertex, float cvmtx[VTXCOVMATRIX]) | 
| int | lcvtxgetparameters (PTRTYPE vertex, float *vec, int *nvec) | 
| PTRTYPE | lcvtxgetassociatedparticle (PTRTYPE vertex) | 
| int | lcvtxsetprimary (PTRTYPE vertex, bool pri) | 
| int | lcvtxsetalgorithmtype (PTRTYPE vertex, char *type) | 
| int | lcvtxsetchi2 (PTRTYPE vertex, float chi2) | 
| int | lcvtxsetprobability (PTRTYPE vertex, float probability) | 
| int | lcvtxsetposition (PTRTYPE vertex, float pos[3]) | 
| int | lcvtxsetcovmatrix (PTRTYPE vertex, float cvmtx[VTXCOVMATRIX]) | 
| int | lcvtxaddparameter (PTRTYPE vertex, float param) | 
| int | lcvtxsetassociatedparticle (PTRTYPE vertex, PTRTYPE particle) | 
| PTRTYPE lcvtxcreate | ( | ) | 
| int lcvtxdelete | ( | PTRTYPE | vertex | ) | 
| int lcvtxid | ( | PTRTYPE | vertex | ) | 
| bool lcvtxisprimary | ( | PTRTYPE | vertex | ) | 
| char* lcvtxgetalgorithmtype | ( | PTRTYPE | vertex | ) | 
| float lcvtxgetchi2 | ( | PTRTYPE | vertex | ) | 
| float lcvtxgetprobability | ( | PTRTYPE | vertex | ) | 
| int lcvtxgetposition | ( | PTRTYPE | vertex, | |
| float | pos[3] | |||
| ) | 
| int lcvtxgetcovmatrix | ( | PTRTYPE | vertex, | |
| float | cvmtx[VTXCOVMATRIX] | |||
| ) | 
| int lcvtxgetparameters | ( | PTRTYPE | vertex, | |
| float * | vec, | |||
| int * | nvec | |||
| ) | 
Definition at line 63 of file lcvtx.cc.
00063 { 00064 VertexImpl* vtx = f2c_pointer<VertexImpl,LCObject>( vertex ) ; 00065 int ntot = *nvec - 1 ; 00066 const FloatVec* floatVec = &vtx->getParameters() ; 00067 for(unsigned int l=0; l < floatVec->size(); l++){ 00068 if ( l > (unsigned)(ntot) ) { 00069 std::cout << "LCVertex: in getParameters more than " << ntot << "parameters to store" << std::endl ; 00070 return LCIO::ERROR ; 00071 } 00072 *vec++ = (*floatVec)[l] ; 00073 } 00074 *nvec = (int)(floatVec->size() + 1); 00075 return LCIO::SUCCESS ; 00076 }
| PTRTYPE lcvtxgetassociatedparticle | ( | PTRTYPE | vertex | ) | 
Definition at line 78 of file lcvtx.cc.
00078 { 00079 Vertex* vtx = f2c_pointer<Vertex,LCObject>( vertex ) ; 00080 ReconstructedParticle* recP = vtx->getAssociatedParticle(); 00081 return reinterpret_cast<PTRTYPE>( recP ); 00082 }
| int lcvtxsetprimary | ( | PTRTYPE | vertex, | |
| bool | pri | |||
| ) | 
| int lcvtxsetalgorithmtype | ( | PTRTYPE | vertex, | |
| char * | type | |||
| ) | 
| int lcvtxsetchi2 | ( | PTRTYPE | vertex, | |
| float | chi2 | |||
| ) | 
| int lcvtxsetprobability | ( | PTRTYPE | vertex, | |
| float | probability | |||
| ) | 
| int lcvtxsetposition | ( | PTRTYPE | vertex, | |
| float | pos[3] | |||
| ) | 
| int lcvtxsetcovmatrix | ( | PTRTYPE | vertex, | |
| float | cvmtx[VTXCOVMATRIX] | |||
| ) | 
| int lcvtxaddparameter | ( | PTRTYPE | vertex, | |
| float | param | |||
| ) | 
| int lcvtxsetassociatedparticle | ( | PTRTYPE | vertex, | |
| PTRTYPE | particle | |||
| ) | 
Definition at line 129 of file lcvtx.cc.
00129 { 00130 VertexImpl* vtx = f2c_pointer<VertexImpl,LCObject>( vertex ) ; 00131 ReconstructedParticle* rcp = f2c_pointer<ReconstructedParticle,LCObject>( particle ) ; 00132 vtx->setAssociatedParticle( rcp ) ; 00133 return LCIO::SUCCESS ; 00134 }
 1.4.7