CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
VertexCompatibleWithBeam.cc
Go to the documentation of this file.
5 
6 using namespace reco;
7 
9  float cut)
10  : theDistance(d.clone()), theCut(cut)
11 {
12  BeamSpot beamSpot;
13  theBeam = VertexState(beamSpot);
14 }
15 
17  float cut, const BeamSpot & beamSpot)
18  : theDistance(d.clone()), theCut(cut), theBeam(beamSpot){}
19 
20 
22  const VertexCompatibleWithBeam & other) :
23  theDistance((*other.theDistance).clone()),
24  theCut(other.theCut), theBeam(other.theBeam) {}
25 
26 
28  delete theDistance;
29 }
30 
31 
34 {
35  if (this == &other) return *this;
36 
37  theDistance = (*other.theDistance).clone();
38  theCut = other.theCut;
39  theBeam = other.theBeam;
40  return *this;
41 }
42 
44  theBeam = VertexState(beamSpot);
45 }
46 
48 {
51  return (theDistance->distance(vs, theBeam).value() < theCut);
52 }
53 
54 
56 {
59  return theDistance->distance(vs, theBeam).value();
60 }
61 
62 
64 {
67  return theDistance->distance(vs, bs).value();
68 }
69 
70 
72 {
75  return (theDistance->distance(vs, bs).value() < theCut);
76 }
77 
78 
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:110
const Point & position() const
position
Definition: Vertex.h:93
VertexCompatibleWithBeam(const VertexDistance &dist, float cut)
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:11
void setBeamSpot(const reco::BeamSpot &beamSpot)
tuple cut
Definition: align_tpl.py:88
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
T * clone(const T *tp)
Definition: Ptr.h:42
double value() const
Definition: Measurement1D.h:28
float distanceToBeam(const reco::Vertex &) const
mathSSE::Vec4< T > v
VertexCompatibleWithBeam & operator=(const VertexCompatibleWithBeam &other)