CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
VertexCompatibleWithBeam Class Reference

#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
 
virtual bool operator() (const reco::Vertex &, const VertexState &) const
 
VertexCompatibleWithBeamoperator= (const VertexCompatibleWithBeam &other)
 
void setBeamSpot (const reco::BeamSpot &beamSpot)
 
 VertexCompatibleWithBeam (const VertexCompatibleWithBeam &other)
 
 VertexCompatibleWithBeam (const VertexDistance &dist, float cut)
 
 VertexCompatibleWithBeam (const VertexDistance &dist, float cut, const reco::BeamSpot &beamSpot)
 
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() [1/3]

VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexDistance dist,
float  cut 
)

Definition at line 8 of file VertexCompatibleWithBeam.cc.

9  : theDistance(d.clone()), theCut(cut) {
12 }

References pwdgSkimBPark_cfi::beamSpot, and theBeam.

◆ VertexCompatibleWithBeam() [2/3]

VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexDistance dist,
float  cut,
const reco::BeamSpot beamSpot 
)

Definition at line 14 of file VertexCompatibleWithBeam.cc.

15  : theDistance(d.clone()), theCut(cut), theBeam(beamSpot) {}

◆ VertexCompatibleWithBeam() [3/3]

VertexCompatibleWithBeam::VertexCompatibleWithBeam ( const VertexCompatibleWithBeam other)

Definition at line 17 of file VertexCompatibleWithBeam.cc.

18  : theDistance((*other.theDistance).clone()), theCut(other.theCut), theBeam(other.theBeam) {}

◆ ~VertexCompatibleWithBeam()

VertexCompatibleWithBeam::~VertexCompatibleWithBeam ( )
virtual

Definition at line 20 of file VertexCompatibleWithBeam.cc.

20 { delete theDistance; }

References theDistance.

Member Function Documentation

◆ distanceToBeam() [1/2]

float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v) const

◆ distanceToBeam() [2/2]

float VertexCompatibleWithBeam::distanceToBeam ( const reco::Vertex v,
const VertexState bs 
) const

◆ operator()() [1/2]

bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v) const
virtual

◆ operator()() [2/2]

bool VertexCompatibleWithBeam::operator() ( const reco::Vertex v,
const VertexState bs 
) const
virtual

◆ operator=()

VertexCompatibleWithBeam & VertexCompatibleWithBeam::operator= ( const VertexCompatibleWithBeam other)

Definition at line 22 of file VertexCompatibleWithBeam.cc.

22  {
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 }

References clone(), trackingPlots::other, theBeam, theCut, and theDistance.

◆ setBeamSpot()

void VertexCompatibleWithBeam::setBeamSpot ( const reco::BeamSpot beamSpot)

Definition at line 32 of file VertexCompatibleWithBeam.cc.

References pwdgSkimBPark_cfi::beamSpot, and theBeam.

Member Data Documentation

◆ theBeam

VertexState VertexCompatibleWithBeam::theBeam
private

◆ theCut

float VertexCompatibleWithBeam::theCut
private

Definition at line 34 of file VertexCompatibleWithBeam.h.

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

◆ theDistance

VertexDistance* VertexCompatibleWithBeam::theDistance
private
VertexCompatibleWithBeam::theDistance
VertexDistance * theDistance
Definition: VertexCompatibleWithBeam.h:33
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
Measurement1D::value
double value() const
Definition: Measurement1D.h:25
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
findQualityFiles.v
v
Definition: findQualityFiles.py:179
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
cms::cuda::bs
bs
Definition: HistoContainer.h:127
VertexDistance::distance
Measurement1D distance(const reco::Vertex &, const reco::Vertex &) const
Definition: VertexDistance.cc:26
clone
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Definition: eve_macros.cc:135
reco::BeamSpot
Definition: BeamSpot.h:21
trackingPlots.other
other
Definition: trackingPlots.py:1467
Point3DBase< float, GlobalTag >
VertexCompatibleWithBeam::theBeam
VertexState theBeam
Definition: VertexCompatibleWithBeam.h:35
VertexCompatibleWithBeam::theCut
float theCut
Definition: VertexCompatibleWithBeam.h:34
VertexState
Definition: VertexState.h:13
ztail.d
d
Definition: ztail.py:151
Basic3DVector< float >