CMS 3D CMS Logo

VertexCompatibleWithBeam.cc
Go to the documentation of this file.
5 
6 using namespace reco;
7 
9  : theDistance(d.clone()), theCut(cut) {
11  theBeam = VertexState(beamSpot);
12 }
13 
15  : theDistance(d.clone()), theCut(cut), theBeam(beamSpot) {}
16 
18  : theDistance((*other.theDistance).clone()), theCut(other.theCut), theBeam(other.theBeam) {}
19 
21 
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 }
31 
33 
37  return (theDistance->distance(vs, theBeam).value() < theCut);
38 }
39 
43  return theDistance->distance(vs, theBeam).value();
44 }
45 
49  return theDistance->distance(vs, bs).value();
50 }
51 
55  return (theDistance->distance(vs, bs).value() < theCut);
56 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
virtual bool operator()(const reco::Vertex &) const
double covariance(int i, int j) const
(i, j)-th element of error matrix, i, j = 0, ... 2
Definition: Vertex.h:134
const Point & position() const
position
Definition: Vertex.h:113
VertexCompatibleWithBeam(const VertexDistance &dist, float cut)
void setBeamSpot(const reco::BeamSpot &beamSpot)
d
Definition: ztail.py:151
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
double value() const
Definition: Measurement1D.h:25
fixed size matrix
float distanceToBeam(const reco::Vertex &) const
VertexCompatibleWithBeam & operator=(const VertexCompatibleWithBeam &other)