CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/RecoVertex/GhostTrackFitter/src/GhostTrackPrediction.cc File Reference

#include <cmath>
#include <Math/SMatrix.h>
#include <Math/MatrixFunctions.h>
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/GeometryCommonDetAlgo/interface/GlobalError.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "TrackingTools/TrajectoryParametrization/interface/CurvilinearTrajectoryParameters.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include "TrackingTools/TrajectoryParametrization/interface/CurvilinearTrajectoryError.h"
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
#include "RecoVertex/GhostTrackFitter/interface/GhostTrackPrediction.h"

Go to the source code of this file.

Functions

static GhostTrackPrediction::Vector convert (const CurvilinearTrajectoryParameters &trajectory)
static GhostTrackPrediction::Error convert (const GhostTrackPrediction::Vector &pred, const CurvilinearTrajectoryError &error)
static GhostTrackPrediction::Vector convert (const GlobalTrajectoryParameters &trajectory)

Function Documentation

static GhostTrackPrediction::Vector convert ( const CurvilinearTrajectoryParameters trajectory) [static]
static GhostTrackPrediction::Error convert ( const GhostTrackPrediction::Vector pred,
const CurvilinearTrajectoryError error 
) [static]

Definition at line 50 of file GhostTrackPrediction.cc.

References CurvilinearTrajectoryError::matrix(), rho, and mathSSE::sqrt().

{
        using namespace ROOT::Math;

        double rho2 = pred[2] * pred[2] + 1.;
        double rho = std::sqrt(rho2);

        Matrix45 jacobian;
        jacobian(0, 1) = pred[0] * pred[2];
        jacobian(0, 4) = rho;
        jacobian(1, 3) = 1.;
        jacobian(2, 1) = rho2;
        jacobian(3, 2) = 1.;

        return Similarity(jacobian, error.matrix());
}
static GhostTrackPrediction::Vector convert ( const GlobalTrajectoryParameters trajectory) [inline, static]