CMS 3D CMS Logo

Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/BTauReco/src/TrackIPTagInfo.cc File Reference

#include <cmath>
#include <map>
#include <Math/VectorUtil.h>
#include "DataFormats/Math/interface/Vector3D.h"
#include "DataFormats/BTauReco/interface/TrackIPTagInfo.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/GeometryVector/interface/VectorUtil.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/VertexReco/interface/Vertex.h"

Go to the source code of this file.

Functions

static double etaRel (const math::XYZVector &dir, const math::XYZVector &track)

Function Documentation

static double etaRel ( const math::XYZVector dir,
const math::XYZVector track 
) [static]

Definition at line 17 of file TrackIPTagInfo.cc.

References relval_parameters_module::energy, funct::log(), and mathSSE::sqrt().

Referenced by reco::TrackIPTagInfo::taggingVariables().

{
  double momPar = dir.Dot(track);
  double energy = sqrt(track.Mag2() + ROOT::Math::Square(0.13957));
  return 0.5 * log((energy + momPar) / (energy - momPar));
}