CMS 3D CMS Logo

Public Member Functions | Private Attributes

VertexCompatibleWithBeam Class Reference

#include <VertexCompatibleWithBeam.h>

List of all members.

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
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 
)

Definition at line 8 of file VertexCompatibleWithBeam.cc.

References SiPixelRawToDigiRegional_cfi::beamSpot, and 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;
}

Member Function Documentation

float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v) const
float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v,
const VertexState bs 
) const
bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v,
const VertexState bs 
) const [virtual]
bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v) const [virtual]
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);
}

Member Data Documentation

Definition at line 38 of file VertexCompatibleWithBeam.h.

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