#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 VertexState &) const |
virtual bool | operator() (const reco::Vertex &) const |
VertexCompatibleWithBeam & | operator= (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 |
VertexDistance * | theDistance |
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.
VertexCompatibleWithBeam::VertexCompatibleWithBeam | ( | const VertexDistance & | dist, |
float | cut | ||
) |
Definition at line 8 of file VertexCompatibleWithBeam.cc.
References theBeam.
: theDistance(d.clone()), theCut(cut) { BeamSpot beamSpot; theBeam = VertexState(beamSpot); }
VertexCompatibleWithBeam::VertexCompatibleWithBeam | ( | const VertexDistance & | dist, |
float | cut, | ||
const reco::BeamSpot & | beamSpot | ||
) |
Definition at line 16 of file VertexCompatibleWithBeam.cc.
: theDistance(d.clone()), theCut(cut), theBeam(beamSpot){}
VertexCompatibleWithBeam::VertexCompatibleWithBeam | ( | const VertexCompatibleWithBeam & | other | ) |
Definition at line 21 of file VertexCompatibleWithBeam.cc.
: theDistance((*other.theDistance).clone()), theCut(other.theCut), theBeam(other.theBeam) {}
VertexCompatibleWithBeam::~VertexCompatibleWithBeam | ( | ) | [virtual] |
Definition at line 27 of file VertexCompatibleWithBeam.cc.
References theDistance.
{ delete theDistance; }
float VertexCompatibleWithBeam::distanceToBeam | ( | const reco::Vertex & | v | ) | const |
Definition at line 55 of file VertexCompatibleWithBeam.cc.
References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theBeam, theDistance, and Measurement1D::value().
{ GlobalPoint p(Basic3DVector<float> (v.position())); VertexState vs(p, GlobalError(v.covariance())); return theDistance->distance(vs, theBeam).value(); }
float VertexCompatibleWithBeam::distanceToBeam | ( | const reco::Vertex & | v, |
const VertexState & | bs | ||
) | const |
Definition at line 63 of file VertexCompatibleWithBeam.cc.
References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theDistance, and Measurement1D::value().
{ GlobalPoint p(Basic3DVector<float> (v.position())); VertexState vs(p, GlobalError(v.covariance())); return theDistance->distance(vs, bs).value(); }
bool VertexCompatibleWithBeam::operator() | ( | const reco::Vertex & | v, |
const VertexState & | bs | ||
) | const [virtual] |
Definition at line 71 of file VertexCompatibleWithBeam.cc.
References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theCut, theDistance, and Measurement1D::value().
{ GlobalPoint p(Basic3DVector<float> (v.position())); VertexState vs(p, GlobalError(v.covariance())); return (theDistance->distance(vs, bs).value() < theCut); }
bool VertexCompatibleWithBeam::operator() | ( | const reco::Vertex & | v | ) | const [virtual] |
Definition at line 47 of file VertexCompatibleWithBeam.cc.
References reco::Vertex::covariance(), VertexDistance::distance(), AlCaHLTBitMon_ParallelJobs::p, reco::Vertex::position(), theBeam, theCut, theDistance, and Measurement1D::value().
{ GlobalPoint p(Basic3DVector<float> (v.position())); VertexState vs(p, GlobalError(v.covariance())); return (theDistance->distance(vs, theBeam).value() < theCut); }
VertexCompatibleWithBeam & VertexCompatibleWithBeam::operator= | ( | const VertexCompatibleWithBeam & | other | ) |
Definition at line 33 of file VertexCompatibleWithBeam.cc.
References clone(), theBeam, theCut, and theDistance.
{ if (this == &other) return *this; theDistance = (*other.theDistance).clone(); theCut = other.theCut; theBeam = other.theBeam; return *this; }
void VertexCompatibleWithBeam::setBeamSpot | ( | const reco::BeamSpot & | beamSpot | ) |
Definition at line 43 of file VertexCompatibleWithBeam.cc.
References theBeam.
{ theBeam = VertexState(beamSpot); }
VertexState VertexCompatibleWithBeam::theBeam [private] |
Definition at line 39 of file VertexCompatibleWithBeam.h.
Referenced by distanceToBeam(), operator()(), operator=(), setBeamSpot(), and VertexCompatibleWithBeam().
float VertexCompatibleWithBeam::theCut [private] |
Definition at line 38 of file VertexCompatibleWithBeam.h.
Referenced by operator()(), and operator=().
Definition at line 37 of file VertexCompatibleWithBeam.h.
Referenced by distanceToBeam(), operator()(), operator=(), and ~VertexCompatibleWithBeam().