#include <CLHEPHelpers.h>
Definition at line 37 of file CLHEPHelpers.h.
◆ basicVector3DToVector()
template<class T >
static void CLHEPHelpers::basicVector3DToVector |
( |
const T & |
bvec, |
|
|
std ::vector< double > & |
vec |
|
) |
| |
|
inlinestatic |
Convert HepGeom::BasicVector3D<double> to std :: vector<double> and vice versa.
Definition at line 85 of file CLHEPHelpers.h.
89 vec.push_back( bvec.x() );
90 vec.push_back( bvec.y() );
91 vec.push_back( bvec.z() );
◆ hepTransform3DToVector()
template<class T >
static void CLHEPHelpers::hepTransform3DToVector |
( |
const HepGeom::Transform3D & |
trans, |
|
|
T & |
vec |
|
) |
| |
|
inlinestatic |
Convert HepGeom::Transform3D to std :: vector<double>
Definition at line 43 of file CLHEPHelpers.h.
47 vec.push_back( trans.xx() );
48 vec.push_back( trans.xy() );
49 vec.push_back( trans.xz() );
50 vec.push_back( trans.dx() );
52 vec.push_back( trans.yx() );
53 vec.push_back( trans.yy() );
54 vec.push_back( trans.yz() );
55 vec.push_back( trans.dy() );
57 vec.push_back( trans.zx() );
58 vec.push_back( trans.zy() );
59 vec.push_back( trans.zz() );
60 vec.push_back( trans.dz() );
◆ hepVectorToVector()
static void CLHEPHelpers::hepVectorToVector |
( |
const CLHEP::HepVector & |
hvec, |
|
|
std ::vector< double > & |
vec |
|
) |
| |
|
inlinestatic |
Definition at line 106 of file CLHEPHelpers.h.
109 vec.reserve(hvec.num_row());
110 for(
int i = 0;
i < hvec.num_row();
i++ )
111 vec.push_back( hvec[
i] );
◆ vectorToBasicVector3D()
template<class T >
static void CLHEPHelpers::vectorToBasicVector3D |
( |
const std ::vector< double > & |
vec, |
|
|
T & |
bvec |
|
) |
| |
|
inlinestatic |
◆ vectorToHepTransform3D()
template<class T >
static void CLHEPHelpers::vectorToHepTransform3D |
( |
const T & |
vec, |
|
|
HepGeom::Transform3D & |
trans |
|
) |
| |
|
inlinestatic |
Convert std :: vector<double> to HepGeom::Transform3D.
Definition at line 65 of file CLHEPHelpers.h.
68 static_cast<SetTransform3D&
> (trans).setTransform (
◆ vectorToHepVector()
static void CLHEPHelpers::vectorToHepVector |
( |
const std ::vector< double > & |
vec, |
|
|
CLHEP::HepVector & |
hvec |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: