CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
VertexCompatibleWithBeam Class Reference

#include <VertexCompatibleWithBeam.h>

Public Member Functions

float distanceToBeam (const reco::Vertex &) const
 
float distanceToBeam (const reco::Vertex &, const VertexState &) const
 
virtual bool operator() (const reco::Vertex &) const
 
virtual bool operator() (const reco::Vertex &, const VertexState &) const
 
VertexCompatibleWithBeamoperator= (const VertexCompatibleWithBeam &other)
 
void setBeamSpot (const reco::BeamSpot &beamSpot)
 
 VertexCompatibleWithBeam (const VertexDistance &dist, float cut)
 
 VertexCompatibleWithBeam (const VertexDistance &dist, float cut, const reco::BeamSpot &beamSpot)
 
 VertexCompatibleWithBeam (const VertexCompatibleWithBeam &other)
 
virtual ~VertexCompatibleWithBeam ()
 

Private Attributes

VertexState theBeam
 
float theCut
 
VertexDistancetheDistance
 

Detailed Description

True if the distance between the beam spot and the vertex, computed by the dist algorithm, is smaller than cut.

Definition at line 15 of file VertexCompatibleWithBeam.h.

Constructor & Destructor Documentation

VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexDistance dist,
float  cut 
)
VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexDistance dist,
float  cut,
const reco::BeamSpot beamSpot 
)
VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexCompatibleWithBeam other)

Definition at line 17 of file VertexCompatibleWithBeam.cc.

VertexCompatibleWithBeam::~VertexCompatibleWithBeam ( )
virtual

Definition at line 20 of file VertexCompatibleWithBeam.cc.

References theDistance.

20 { delete theDistance; }

Member Function Documentation

float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v) const

Definition at line 40 of file VertexCompatibleWithBeam.cc.

References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theBeam, theDistance, and Measurement1D::value().

40  {
43  return theDistance->distance(vs, theBeam).value();
44 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:148
const Point & position() const
position
Definition: Vertex.h:127
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
double value() const
Definition: Measurement1D.h:25
float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v,
const VertexState bs 
) const

Definition at line 46 of file VertexCompatibleWithBeam.cc.

References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theDistance, and Measurement1D::value().

46  {
49  return theDistance->distance(vs, bs).value();
50 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:148
const Point & position() const
position
Definition: Vertex.h:127
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
double value() const
Definition: Measurement1D.h:25
bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v) const
virtual

Definition at line 34 of file VertexCompatibleWithBeam.cc.

References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theBeam, theCut, theDistance, and Measurement1D::value().

34  {
37  return (theDistance->distance(vs, theBeam).value() < theCut);
38 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:148
const Point & position() const
position
Definition: Vertex.h:127
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
double value() const
Definition: Measurement1D.h:25
bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v,
const VertexState bs 
) const
virtual

Definition at line 52 of file VertexCompatibleWithBeam.cc.

References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theCut, theDistance, and Measurement1D::value().

52  {
55  return (theDistance->distance(vs, bs).value() < theCut);
56 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:148
const Point & position() const
position
Definition: Vertex.h:127
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
double value() const
Definition: Measurement1D.h:25
VertexCompatibleWithBeam & VertexCompatibleWithBeam::operator= ( const VertexCompatibleWithBeam other)

Definition at line 22 of file VertexCompatibleWithBeam.cc.

References clone(), theBeam, theCut, and theDistance.

22  {
23  if (this == &other)
24  return *this;
25 
26  theDistance = (*other.theDistance).clone();
27  theCut = other.theCut;
28  theBeam = other.theBeam;
29  return *this;
30 }
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
void VertexCompatibleWithBeam::setBeamSpot ( const reco::BeamSpot beamSpot)

Definition at line 32 of file VertexCompatibleWithBeam.cc.

References theBeam.

Member Data Documentation

VertexState VertexCompatibleWithBeam::theBeam
private
float VertexCompatibleWithBeam::theCut
private

Definition at line 34 of file VertexCompatibleWithBeam.h.

Referenced by operator()(), and operator=().

VertexDistance* VertexCompatibleWithBeam::theDistance
private