#include "DataFormats/Math/interface/AlgebraicROOTObjects.h"
#include <cstring>
Go to the source code of this file.
Functions | |
template<unsigned int N1, unsigned int N2> | |
CLHEP::HepMatrix | asHepMatrix (const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm) |
template<unsigned int N1> | |
CLHEP::HepSymMatrix | asHepMatrix (const ROOT::Math::SMatrix< double, N1, N1, typename ROOT::Math::MatRepSym< double, N1 > > &rm) |
template<unsigned int N> | |
CLHEP::HepVector | asHepVector (const ROOT::Math::SVector< double, N > &v) |
template<unsigned int N1> | |
ROOT::Math::SMatrix< double, N1, N1, typename ROOT::Math::MatRepSym< double, N1 > > | asSMatrix (const CLHEP::HepSymMatrix &m) |
template<unsigned int N1, unsigned int N2> | |
ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > | asSMatrix (const CLHEP::HepMatrix &m) |
template<unsigned int N1> | |
ROOT::Math::SVector< double, N1 > | asSVector (const CLHEP::HepVector &m) |
CLHEP::HepMatrix asHepMatrix | ( | const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > & | rm | ) |
Definition at line 49 of file Migration.h.
References submit::rm.
Referenced by AlignableDetUnit::alignmentErrors(), AlignableDet::alignmentErrors(), AlignableBeamSpot::alignmentErrors(), TwoBodyDecayEstimator::constructMatrices(), CocoaDBMgr::GetAlignInfoErrorFromOptO(), MeasurementExtractor::measuredError(), GCC11_FINAL::parametersError(), and TwoBodyDecayTrajectoryState::propagateSingleState().
{ CLHEP::HepMatrix am(N1,N2); memcpy(&am(1,1), rm.Array(), N1*N2*sizeof(double)); return am; }
CLHEP::HepSymMatrix asHepMatrix | ( | const ROOT::Math::SMatrix< double, N1, N1, typename ROOT::Math::MatRepSym< double, N1 > > & | rm | ) |
Definition at line 56 of file Migration.h.
References submit::rm.
{ CLHEP::HepSymMatrix am(N1); memcpy(&am(1,1), rm.Array(), (N1*(N1+1))/2*sizeof(double)); return am; }
CLHEP::HepVector asHepVector | ( | const ROOT::Math::SVector< double, N > & | v | ) |
Definition at line 43 of file Migration.h.
References N.
Referenced by BzeroReferenceTrajectory::BzeroReferenceTrajectory(), TwoBodyDecayEstimator::constructMatrices(), MeasurementExtractor::measuredParameters(), GCC11_FINAL::parameters(), and reco::BeamSpot::rotatedCovariance3D().
ROOT::Math::SMatrix<double,N1,N1, typename ROOT::Math::MatRepSym<double,N1> > asSMatrix | ( | const CLHEP::HepSymMatrix & | m | ) |
Definition at line 32 of file Migration.h.
References m.
ROOT::Math::SMatrix<double,N1,N2, typename ROOT::Math::MatRepStd<double,N1,N2> > asSMatrix | ( | const CLHEP::HepMatrix & | m | ) |
ROOT::Math::SVector<double,N1> asSVector | ( | const CLHEP::HepVector & | m | ) |
Definition at line 39 of file Migration.h.
{ return ROOT::Math::SVector<double,N1> (&m[0], N1); }