CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 53 of file BPHHistoSpecificDecay.cc.

Member Function Documentation

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

Definition at line 55 of file BPHHistoSpecificDecay.cc.

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

Referenced by BPHGenericVertexSelect::accept().

55  {
56  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
57  TVector3 cmom(px, py, 0);
58  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
59  }
double y() const
y coordinate
Definition: Vertex.h:131
double x() const
x coordinate
Definition: Vertex.h:129
static double VertexAnalysis::cAlpha ( const reco::Vertex pvtx,
const reco::Vertex svtx,
const TVector3 &  cmom 
)
inlinestatic

Definition at line 60 of file BPHHistoSpecificDecay.cc.

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

60  {
61  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
62  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
63  }
double y() const
y coordinate
Definition: Vertex.h:131
double x() const
x coordinate
Definition: Vertex.h:129
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 64 of file BPHHistoSpecificDecay.cc.

Referenced by BPHGenericVertexSelect::accept().

70  {
71  dist2D(pvtx, svtx, px, py, cAlpha(pvtx, svtx, px, py), mass, ctauPV, ctauErrPV);
72  return;
73  }
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)
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 74 of file BPHHistoSpecificDecay.cc.

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

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