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) {
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 
35  GlobalPoint p(Basic3DVector<float>(v.position()));
36  VertexState vs(p, GlobalError(v.covariance()));
37  return (theDistance->distance(vs, theBeam).value() < theCut);
38 }
39 
41  GlobalPoint p(Basic3DVector<float>(v.position()));
42  VertexState vs(p, GlobalError(v.covariance()));
43  return theDistance->distance(vs, theBeam).value();
44 }
45 
47  GlobalPoint p(Basic3DVector<float>(v.position()));
48  VertexState vs(p, GlobalError(v.covariance()));
49  return theDistance->distance(vs, bs).value();
50 }
51 
53  GlobalPoint p(Basic3DVector<float>(v.position()));
54  VertexState vs(p, GlobalError(v.covariance()));
55  return (theDistance->distance(vs, bs).value() < theCut);
56 }
float distanceToBeam(const reco::Vertex &) const
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
virtual bool operator()(const reco::Vertex &) const
VertexCompatibleWithBeam(const VertexDistance &dist, float cut)
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
void setBeamSpot(const reco::BeamSpot &beamSpot)
d
Definition: ztail.py:151
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
double value() const
Definition: Measurement1D.h:25
fixed size matrix
VertexCompatibleWithBeam & operator=(const VertexCompatibleWithBeam &other)