21 outputCollectionName_(iConfig.getParameter<
std::
string>(
"l1VertexCollectionName")),
26 case Algorithm::fastHisto:
27 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using the fastHisto binning algorithm";
29 case Algorithm::fastHistoEmulation:
31 <<
"VertexProducer::Finding vertices using the emulation version of the fastHisto binning algorithm";
33 case Algorithm::fastHistoLooseAssociation:
35 <<
"VertexProducer::Finding vertices using the fastHistoLooseAssociation binning algorithm";
37 case Algorithm::GapClustering:
38 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a gap clustering algorithm";
40 case Algorithm::agglomerativeHierarchical:
41 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a Simple Merge Clustering algorithm";
43 case Algorithm::DBSCAN:
44 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a DBSCAN algorithm";
47 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a PVR algorithm";
49 case Algorithm::adaptiveVertexReconstruction:
51 <<
"VertexProducer::Finding vertices using an AdaptiveVertexReconstruction algorithm";
54 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a Highest Pt Vertex algorithm";
56 case Algorithm::Kmeans:
57 edm::LogInfo(
"VertexProducer") <<
"VertexProducer::Finding vertices using a kmeans algorithm";
73 std::vector<l1tVertexFinder::L1Track>
l1Tracks;
76 edm::LogInfo(
"VertexProducer") <<
"produce::Processing " << l1TracksHandle->
size() <<
" tracks";
78 for (
const auto&
track : l1TracksHandle->
ptrs()) {
87 edm::LogInfo(
"VertexProducer") <<
"produce::Removing track with too low of a pt (" << l1track.pt() <<
")\n" 88 <<
" word = " << l1track.getTTTrackPtr()->getTrackWord().to_string(2);
93 edm::LogInfo(
"VertexProducer") <<
"produce::Processing " <<
l1Tracks.size() <<
" tracks after minimum pt cut of" 100 case Algorithm::fastHisto: {
105 case Algorithm::fastHistoEmulation:
108 case Algorithm::fastHistoLooseAssociation:
111 case Algorithm::GapClustering:
114 case Algorithm::agglomerativeHierarchical:
117 case Algorithm::DBSCAN:
123 case Algorithm::adaptiveVertexReconstruction:
129 case Algorithm::Kmeans:
139 std::unique_ptr<l1t::VertexWordCollection> product_emulation =
143 std::unique_ptr<l1t::VertexCollection> product(
new std::vector<l1t::Vertex>());
145 product->emplace_back(
vtx.vertex());
void fastHistoLooseAssociation()
High pT Vertex Algorithm.
std::vector< Ptr< value_type > > const & ptrs() const
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void GapClustering()
Gap Clustering Algorithm.
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken
void agglomerativeHierarchicalClustering()
Simple Merge Algorithm.
const std::string outputCollectionName_
unsigned int debug() const
void adaptiveVertexReconstruction()
Adaptive Vertex Reconstruction algorithm.
void findPrimaryVertex()
Find the primary vertex.
void fastHisto(const TrackerTopology *tTopo)
Histogramming algorithm.
float vx_TrackMinPt() const
const std::vector< RecoVertex<> > & vertices() const
Returns the z positions of the reconstructed primary vertices.
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
void sortVerticesInPt()
Sort vertices in pT.
VertexProducer(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
void PVR()
Find maximum distance in two clusters of tracks.
void fastHistoEmulation()
Histogramming algorithm (emulation)
void HPV()
High pT Vertex Algorithm.
const edm::EDGetTokenT< TTTrackCollectionView > l1TracksToken_
void Kmeans()
Kmeans Algorithm.
const l1t::VertexWordCollection & verticesEmulation() const
Returns the emulation primary vertices.
Algorithm vx_algo() const
void DBSCAN()
DBSCAN algorithm.
l1tVertexFinder::AlgoSettings settings_