39 :
maxFraction(params.getParameter<double>(
"maxFraction")),
53 auto recoVertices = std::make_unique<Product>();
55 recoVertices->push_back(*sv);
57 for (
typename Product::iterator sv = recoVertices->begin(); sv != recoVertices->end(); ++sv) {
60 for (
typename Product::iterator sv2 = recoVertices->begin(); sv2 != recoVertices->end(); ++sv2) {
72 sv = recoVertices->erase(sv) - 1;
reco::Vertex::Point convertPos(const GlobalPoint &p)
edm::EDGetTokenT< Product > token_secondaryVertex
TemplatedVertexMerger< reco::VertexCompositePtrCandidate > CandidateVertexMerger
#define DEFINE_FWK_MODULE(type)
reco::Vertex::Error convertError(const GlobalError &ge)
TemplatedVertexMerger(const edm::ParameterSet ¶ms)
std::vector< VTX > Product
double computeSharedTracks(const reco::Vertex &pv, const std::vector< reco::TrackRef > &svTracks, double minTrackWeight=0.5, float unused=0)
TemplatedVertexMerger< reco::Vertex > VertexMerger
T getParameter(std::string const &) const
bool trackFilter(const reco::TrackRef &track) const
void produce(edm::Event &event, const edm::EventSetup &es) override