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, const TVector3 &cmom)
 
static double cAlpha (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py)
 
static void dist2D (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, double cosAlpha, float mass, double &ctauPV, double &ctauErrPV)
 
static void dist2D (const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, float mass, double &ctauPV, double &ctauErrPV)
 

Detailed Description

Definition at line 53 of file BPHHistoSpecificDecay.cc.

Member Function Documentation

◆ cAlpha() [1/2]

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

Definition at line 60 of file BPHHistoSpecificDecay.cc.

60  {
61  TVector3 disp(svtx->x() - pvtx->x(), svtx->y() - pvtx->y(), 0);
62  return disp.Dot(cmom) / (disp.Perp() * cmom.Perp());
63  }

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

◆ cAlpha() [2/2]

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.

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  }

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

Referenced by BPHGenericVertexSelect::accept().

◆ dist2D() [1/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 74 of file BPHHistoSpecificDecay.cc.

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  }

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

◆ dist2D() [2/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 64 of file BPHHistoSpecificDecay.cc.

70  {
71  dist2D(pvtx, svtx, px, py, cAlpha(pvtx, svtx, px, py), mass, ctauPV, ctauErrPV);
72  return;
73  }

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

Referenced by BPHGenericVertexSelect::accept().

AlgebraicVector3
ROOT::Math::SVector< double, 3 > AlgebraicVector3
Definition: AlgebraicROOTObjects.h:12
Measurement1D
Definition: Measurement1D.h:11
AlgebraicSymMatrix33
ROOT::Math::SMatrix< double, 3, 3, ROOT::Math::MatRepSym< double, 3 > > AlgebraicSymMatrix33
Definition: AlgebraicROOTObjects.h:21
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
Measurement1D::value
double value() const
Definition: Measurement1D.h:25
GlobalErrorBase::matrix
const AlgebraicSymMatrix33 matrix() const
Definition: GlobalErrorBase.h:121
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
reco::Vertex::x
double x() const
x coordinate
Definition: Vertex.h:129
reco::Vertex::error
Error error() const
return SMatrix
Definition: Vertex.h:163
VertexAnalysis::dist2D
static void dist2D(const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py, float mass, double &ctauPV, double &ctauErrPV)
Definition: BPHHistoSpecificDecay.cc:64
GlobalErrorBase< double, ErrorMatrixTag >
VertexDistanceXY
Definition: VertexDistanceXY.h:11
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
VertexAnalysis::cAlpha
static double cAlpha(const reco::Vertex *pvtx, const reco::Vertex *svtx, float px, float py)
Definition: BPHHistoSpecificDecay.cc:55
reco::Vertex::y
double y() const
y coordinate
Definition: Vertex.h:131
VertexDistanceXY::distance
Measurement1D distance(const GlobalPoint &vtx1Position, const GlobalError &vtx1PositionError, const GlobalPoint &vtx2Position, const GlobalError &vtx2PositionError) const override
Definition: VertexDistanceXY.cc:19
EgHLTOffHistBins_cfi.mass
mass
Definition: EgHLTOffHistBins_cfi.py:34