Functions | |
G4ErrorTrajErr | algebraicSymMatrix55ToG4ErrorTrajErr (const AlgebraicSymMatrix55 &e, const int q) |
AlgebraicSymMatrix55 | g4ErrorTrajErrToAlgebraicSymMatrix55 (const G4ErrorTrajErr &e, const int q) |
CLHEP::Hep3Vector | globalPointToHep3Vector (const GlobalPoint &r) |
HepGeom::Point3D< double > | globalPointToHepPoint3D (const GlobalPoint &r) |
CLHEP::Hep3Vector | globalVectorToHep3Vector (const GlobalVector &p) |
HepGeom::Normal3D< double > | globalVectorToHepNormal3D (const GlobalVector &p) |
GlobalPoint | hep3VectorToGlobalPoint (const CLHEP::Hep3Vector &v) |
GlobalVector | hep3VectorToGlobalVector (const CLHEP::Hep3Vector &p) |
GlobalVector | hepNormal3DToGlobalVector (const HepGeom::Normal3D< double > &p) |
GlobalPoint | hepPoint3DToGlobalPoint (const HepGeom::Point3D< double > &r) |
TkRotation< float > | hepRotationToTkRotationF (const CLHEP::HepRotation &r) |
CLHEP::HepRotation | tkRotationFToHepRotation (const TkRotation< float > &tkr) |
G4ErrorTrajErr TrackPropagation::algebraicSymMatrix55ToG4ErrorTrajErr | ( | const AlgebraicSymMatrix55 & | e, |
const int | q | ||
) |
Convert a CMS Algebraic Sym Matrix (for curv error) to a G4 Trajectory Error Matrix
Definition at line 141 of file ConvertFromToCLHEP.h.
Referenced by Geant4ePropagator::propagate().
AlgebraicSymMatrix55 TrackPropagation::g4ErrorTrajErrToAlgebraicSymMatrix55 | ( | const G4ErrorTrajErr & | e, |
const int | q | ||
) |
Convert a G4 Trajectory Error Matrix to the CMS Algebraic Sym Matrix CMS uses q/p as first parameter, G4 uses 1/p
Definition at line 125 of file ConvertFromToCLHEP.h.
Referenced by Geant4ePropagator::propagate().
{ //From DataFormats/CLHEP/interface/Migration.h //typedef ROOT::Math::SMatrix<double,5,5,ROOT::Math::MatRepSym<double,5> > AlgebraicSymMatrix55; AlgebraicSymMatrix55 m55; for (unsigned int i = 0; i < 5; i++) for (unsigned int j = 0; j < 5; j++) { m55(i, j) = e(i+1,j+1); if(i==0) m55(i,j) = q*m55(i,j); if(j==0) m55(i,j) = q*m55(i,j); } return m55; }
CLHEP::Hep3Vector TrackPropagation::globalPointToHep3Vector | ( | const GlobalPoint & | r | ) |
Convert a CMS GlobalPoint to a CLHEP CLHEP::Hep3Vector CMS uses cm while Geant4 uses mm. This is taken into account in the conversion.
Definition at line 82 of file ConvertFromToCLHEP.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Geant4ePropagator::propagate().
HepGeom::Point3D<double> TrackPropagation::globalPointToHepPoint3D | ( | const GlobalPoint & | r | ) |
Convert a CMS GlobalPoint to a CLHEP HepGeom::Point3D<double> CMS uses cm while Geant4 uses mm. This is taken into account in the conversion.
Definition at line 31 of file ConvertFromToCLHEP.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Geant4ePropagator::propagate().
CLHEP::Hep3Vector TrackPropagation::globalVectorToHep3Vector | ( | const GlobalVector & | p | ) |
Convert a CMS GlobalVector to a CLHEP CLHEP::Hep3Vector
Definition at line 65 of file ConvertFromToCLHEP.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Geant4ePropagator::propagate().
HepGeom::Normal3D<double> TrackPropagation::globalVectorToHepNormal3D | ( | const GlobalVector & | p | ) |
Convert a CMS GlobalVector to a CLHEP HepGeom::Normal3D<double> CMS uses GeV while G4 uses MeV
Definition at line 49 of file ConvertFromToCLHEP.h.
References PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by Geant4ePropagator::propagate().
GlobalPoint TrackPropagation::hep3VectorToGlobalPoint | ( | const CLHEP::Hep3Vector & | v | ) |
Convert a CLHEP CLHEP::Hep3Vector to a CMS GlobalPoint CMS uses cm while Geant4 uses mm. This is taken into account in the conversion.
Definition at line 90 of file ConvertFromToCLHEP.h.
{ return GlobalPoint(v.x()/cm, v.y()/cm, v.z()/cm); }
GlobalVector TrackPropagation::hep3VectorToGlobalVector | ( | const CLHEP::Hep3Vector & | p | ) |
Convert a CLHEP CLHEP::Hep3Vector to a CMS GlobalVector
Definition at line 71 of file ConvertFromToCLHEP.h.
Referenced by Geant4ePropagator::propagate().
{ return GlobalVector(p.x(), p.y(), p.z()); }
GlobalVector TrackPropagation::hepNormal3DToGlobalVector | ( | const HepGeom::Normal3D< double > & | p | ) |
Convert a CLHEP HepGeom::Normal3D<double> to a CMS GlobalVector CMS uses GeV while G4 uses MeV
Definition at line 56 of file ConvertFromToCLHEP.h.
{ return GlobalVector(p.x(), p.y(), p.z()); }
GlobalPoint TrackPropagation::hepPoint3DToGlobalPoint | ( | const HepGeom::Point3D< double > & | r | ) |
Convert a CLHEP HepGeom::Point3D<double> to a CMS GlobalPoint CMS uses cms while Geant4 uses mm. This is taken into account in the conversion.
Definition at line 41 of file ConvertFromToCLHEP.h.
Referenced by Geant4ePropagator::propagate().
{ return GlobalPoint(r.x()/cm, r.y()/cm, r.z()/cm); }
TkRotation<float> TrackPropagation::hepRotationToTkRotationF | ( | const CLHEP::HepRotation & | r | ) |
CLHEP::HepRotation TrackPropagation::tkRotationFToHepRotation | ( | const TkRotation< float > & | tkr | ) |
Convert a CMS TkRotation<float> to a CLHEP CLHEP::HepRotation=G4RotationMatrix
Definition at line 104 of file ConvertFromToCLHEP.h.
References TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by Geant4ePropagator::propagate().