/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
RecoVertex/VertexTools/interface/VertexCompatibleWithBeam.h
38 строк
1 KB
Cms Build
Clang-Format
31 май 2019, 13:16
31 май 2019, 13:16
38393ac
Код
Авторство
О чём код?
#ifndef VertexCompatibleWithBeam_H #define VertexCompatibleWithBeam_H #include "DataFormats/VertexReco/interface/Vertex.h" #include "RecoVertex/VertexPrimitives/interface/VertexState.h" #include "DataFormats/BeamSpot/interface/BeamSpot.h" class VertexDistance; /** * True if the distance between the beam spot and the vertex, * computed by the `dist` algorithm, is smaller than `cut`. */ class VertexCompatibleWithBeam { public: VertexCompatibleWithBeam(const VertexDistance &dist, float cut); VertexCompatibleWithBeam(const VertexDistance &dist, float cut, const reco::BeamSpot &beamSpot); VertexCompatibleWithBeam(const VertexCompatibleWithBeam &other); VertexCompatibleWithBeam &operator=(const VertexCompatibleWithBeam &other); virtual ~VertexCompatibleWithBeam(); void setBeamSpot(const reco::BeamSpot &beamSpot); virtual bool operator()(const reco::Vertex &) const; virtual bool operator()(const reco::Vertex &, const VertexState &) const; // return value of VertexDistance to beam float distanceToBeam(const reco::Vertex &) const; float distanceToBeam(const reco::Vertex &, const VertexState &) const; private: VertexDistance *theDistance; float theCut; VertexState theBeam; }; #endif