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 43 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 45 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().

45  {
46  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
47  TVector3 cmom(px, py, 0);
48  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
49  }
double x() const
x coordinate
Definition: Vertex.h:129
double y() const
y coordinate
Definition: Vertex.h:131

◆ cAlpha() [2/2]

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

Definition at line 50 of file BPHHistoSpecificDecay.cc.

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

50  {
51  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
52  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
53  }
double x() const
x coordinate
Definition: Vertex.h:129
double y() const
y coordinate
Definition: Vertex.h:131

◆ 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 54 of file BPHHistoSpecificDecay.cc.

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

Referenced by BPHGenericVertexSelect::accept().

60  {
61  dist2D(pvtx, svtx, px, py, cAlpha(pvtx, svtx, px, py), mass, ctauPV, ctauErrPV);
62  return;
63  }
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 64 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().

71  {
72  TVector3 cmom(px, py, 0);
73  AlgebraicVector3 vmom(px, py, 0);
74  VertexDistanceXY vdistXY;
75  Measurement1D distXY = vdistXY.distance(*svtx, *pvtx);
76  ctauPV = distXY.value() * cosAlpha * mass / cmom.Perp();
77  GlobalError sve = svtx->error();
78  GlobalError pve = pvtx->error();
79  AlgebraicSymMatrix33 vXYe = sve.matrix() + pve.matrix();
80  ctauErrPV = sqrt(ROOT::Math::Similarity(vmom, vXYe)) * mass / cmom.Perp2();
81  return;
82  }
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Error error() const
return SMatrix
Definition: Vertex.h:163
T sqrt(T t)
Definition: SSEVec.h:19
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