CMS 3D CMS Logo

List of all members | Static Public Member Functions
VertexAnalysis Class Reference

Static Public Member Functions

static double cAlpha (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py)
 
static double cAlpha (const reco::Vertex *pvtx, const reco::Vertex *svtx, const TVector3 &cmom)
 
static void dist2D (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, float mass, double &ctauPV, double &ctauErrPV)
 
static void dist2D (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, double cosAlpha, float mass, double &ctauPV, double &ctauErrPV)
 

Detailed Description

Definition at line 50 of file BPHHistoSpecificDecay.cc.

Member Function Documentation

◆ cAlpha() [1/2]

static double VertexAnalysis::cAlpha ( const reco::Vertex pvtx,
const reco::Vertex svtx,
float  px,
float  py 
)
inlinestatic

Definition at line 52 of file BPHHistoSpecificDecay.cc.

References multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, reco::Vertex::x(), and reco::Vertex::y().

Referenced by BPHGenericVertexSelect::accept().

52  {
53  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
54  TVector3 cmom(px, py, 0);
55  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
56  }
double x() const
x coordinate
Definition: Vertex.h:130
double y() const
y coordinate
Definition: Vertex.h:132

◆ cAlpha() [2/2]

static double VertexAnalysis::cAlpha ( const reco::Vertex pvtx,
const reco::Vertex svtx,
const TVector3 &  cmom 
)
inlinestatic

Definition at line 57 of file BPHHistoSpecificDecay.cc.

References reco::Vertex::x(), and reco::Vertex::y().

57  {
58  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
59  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
60  }
double x() const
x coordinate
Definition: Vertex.h:130
double y() const
y coordinate
Definition: Vertex.h:132

◆ dist2D() [1/2]

static void VertexAnalysis::dist2D ( const reco::Vertex pvtx,
const reco::Vertex svtx,
float  px,
float  py,
float  mass,
double &  ctauPV,
double &  ctauErrPV 
)
inlinestatic

Definition at line 61 of file BPHHistoSpecificDecay.cc.

References EgHLTOffHistBins_cfi::mass, multPhiCorr_741_25nsDY_cfi::px, and multPhiCorr_741_25nsDY_cfi::py.

Referenced by BPHGenericVertexSelect::accept().

67  {
68  dist2D(pvtx, svtx, px, py, cAlpha(pvtx, svtx, px, py), mass, ctauPV, ctauErrPV);
69  return;
70  }
static void dist2D(const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, float mass, double &ctauPV, double &ctauErrPV)
static double cAlpha(const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py)

◆ dist2D() [2/2]

static void VertexAnalysis::dist2D ( const reco::Vertex pvtx,
const reco::Vertex svtx,
float  px,
float  py,
double  cosAlpha,
float  mass,
double &  ctauPV,
double &  ctauErrPV 
)
inlinestatic

Definition at line 71 of file BPHHistoSpecificDecay.cc.

References VertexDistanceXY::distance(), reco::Vertex::error(), EgHLTOffHistBins_cfi::mass, GlobalErrorBase< T, ErrorWeightType >::matrix(), multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, mathSSE::sqrt(), and Measurement1D::value().

78  {
79  TVector3 cmom(px, py, 0);
80  AlgebraicVector3 vmom(px, py, 0);
81  VertexDistanceXY vdistXY;
82  Measurement1D distXY = vdistXY.distance(*svtx, *pvtx);
83  ctauPV = distXY.value() * cosAlpha * mass / cmom.Perp();
84  GlobalError sve = svtx->error();
85  GlobalError pve = pvtx->error();
86  AlgebraicSymMatrix33 vXYe = sve.matrix() + pve.matrix();
87  ctauErrPV = sqrt(ROOT::Math::Similarity(vmom, vXYe)) * mass / cmom.Perp2();
88  return;
89  }
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Error error() const
return SMatrix
Definition: Vertex.h:164
T sqrt(T t)
Definition: SSEVec.h:23
const AlgebraicSymMatrix33 matrix() const
double value() const
Definition: Measurement1D.h:25
ROOT::Math::SVector< double, 3 > AlgebraicVector3
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33