#include <VertexFinder.h>
Classes | |
struct | SortTracksByPt |
struct | SortTracksByZ0 |
Helper structs/classes. More... | |
Public Member Functions | |
void | adaptiveVertexReconstruction () |
Adaptive Vertex Reconstruction algorithm. More... | |
void | AdaptiveVertexReconstruction () |
Vertexing algorithms. More... | |
void | agglomerativeHierarchicalClustering () |
Simple Merge Algorithm. More... | |
void | AgglomerativeHierarchicalClustering () |
Simple Merge Algorithm. More... | |
void | associatePrimaryVertex (double trueZ0) |
Associate the primary vertex with the real one. More... | |
float | centralDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find distance between centres of two clusters. More... | |
float | CentralDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find distance between centres of two clusters. More... | |
void | computeAndSetVertexParameters (RecoVertex<> &vertex, const std::vector< float > &bin_centers, const std::vector< unsigned int > &counts) |
Compute the vertex parameters. More... | |
void | DBSCAN () |
DBSCAN algorithm. More... | |
void | fastHisto (const TrackerTopology *tTopo) |
Histogramming algorithm. More... | |
void | FastHisto (const TrackerTopology *tTopo) |
Histogramming algorithm. More... | |
void | fastHistoLooseAssociation () |
High pT Vertex Algorithm. More... | |
void | FastHistoLooseAssociation () |
TDR histogramming algorithmn. More... | |
void | findPrimaryVertex () |
Find the primary vertex. More... | |
const FitTrackCollection & | fitTracks () const |
Storage for tracks out of the L1 Track finder. More... | |
void | GapClustering () |
Gap Clustering Algorithm. More... | |
void | HPV () |
High pT Vertex Algorithm. More... | |
unsigned int | IterationsPerTrack () const |
Accessors. More... | |
unsigned int | iterationsPerTrack () const |
Number of iterations. More... | |
void | Kmeans () |
Kmeans Algorithm. More... | |
float | maxDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find maximum distance in two clusters of tracks. More... | |
float | MaxDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find maximum distance in two clusters of tracks. More... | |
float | meanDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find average distance in two clusters of tracks. More... | |
float | MeanDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find average distance in two clusters of tracks. More... | |
float | minDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find minimum distance in two clusters of tracks. More... | |
float | MinDistance (RecoVertex<> cluster0, RecoVertex<> cluster1) |
Find minimum distance in two clusters of tracks. More... | |
unsigned int | numInputTracks () const |
Storage for tracks out of the L1 Track finder. More... | |
unsigned int | NumIterations () const |
Number of iterations. More... | |
unsigned int | numIterations () const |
Number of iterations. More... | |
unsigned int | numVertices () const |
Number of reconstructed vertices. More... | |
RecoVertex | primaryVertex () const |
Reconstructed Primary Vertex. More... | |
unsigned int | primaryVertexId () const |
Reconstructed Primary Vertex Id. More... | |
void | PVR () |
Principal Vertex Reconstructor algorithm. More... | |
void | SortVerticesInPt () |
Sort vertices in pT. More... | |
void | SortVerticesInZ0 () |
Sort vertices in z. More... | |
template<typename ForwardIterator , typename T > | |
void | strided_iota (ForwardIterator first, ForwardIterator last, T value, T stride) |
VertexFinder (FitTrackCollection &fitTracks, const AlgoSettings &settings) | |
Constructor and destructor. More... | |
const std::vector< RecoVertex<> > & | vertices () const |
Returns the z positions of the reconstructed primary vertices. More... | |
~VertexFinder () | |
Private Attributes | |
FitTrackCollection | fitTracks_ |
unsigned int | iterations_ |
unsigned int | numMatchedVertices_ |
unsigned int | pv_index_ |
const AlgoSettings * | settings_ |
std::vector< RecoVertex<> > | vertices_ |
Definition at line 21 of file VertexFinder.h.
|
inline |
Constructor and destructor.
Definition at line 24 of file VertexFinder.h.
References fitTracks(), fitTracks_, and settings_.
|
inline |
Definition at line 28 of file VertexFinder.h.
void l1tVertexFinder::VertexFinder::adaptiveVertexReconstruction | ( | ) |
Adaptive Vertex Reconstruction algorithm.
Definition at line 306 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::chi2, l1tVertexFinder::RecoVertex< T >::insert(), or, command_line::start, HLT_FULL_cff::track, and l1tVertexFinder::L1Track::z0().
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::AdaptiveVertexReconstruction | ( | ) |
Vertexing algorithms.
Adaptive Vertex Reconstruction algorithm
void l1tVertexFinder::VertexFinder::agglomerativeHierarchicalClustering | ( | ) |
Simple Merge Algorithm.
Definition at line 124 of file VertexFinder.cc.
References mps_fire::i, or, HLT_FULL_cff::track, and tracks.
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::AgglomerativeHierarchicalClustering | ( | ) |
Simple Merge Algorithm.
void l1tVertexFinder::VertexFinder::associatePrimaryVertex | ( | double | trueZ0 | ) |
Associate the primary vertex with the real one.
Definition at line 452 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, and gpuClustering::id.
float l1tVertexFinder::VertexFinder::centralDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find distance between centres of two clusters.
Definition at line 117 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, and l1tVertexFinder::RecoVertex< T >::z0().
float l1tVertexFinder::VertexFinder::CentralDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find distance between centres of two clusters.
void l1tVertexFinder::VertexFinder::computeAndSetVertexParameters | ( | RecoVertex<> & | vertex, |
const std::vector< float > & | bin_centers, | ||
const std::vector< unsigned int > & | counts | ||
) |
Compute the vertex parameters.
Definition at line 7 of file VertexFinder.cc.
References funct::abs(), l1tVertexFinder::RecoVertex< T >::numTracks(), funct::pow(), DiDispStaMuonMonitor_cfi::pt, l1tVertexFinder::RecoVertex< T >::setParameters(), mathSSE::sqrt(), HLT_FULL_cff::track, listHistos::trackPt, and l1tVertexFinder::RecoVertex< T >::tracks().
void l1tVertexFinder::VertexFinder::DBSCAN | ( | ) |
DBSCAN algorithm.
Definition at line 177 of file VertexFinder.cc.
References funct::abs(), spr::find(), mps_fire::i, gpuClustering::id, l1tVertexFinder::RecoVertex< T >::insert(), isotrackApplyRegressor::k, l1tVertexFinder::RecoVertex< T >::numTracks(), DiDispStaMuonMonitor_cfi::pt, and class-composition::visited.
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::fastHisto | ( | const TrackerTopology * | tTopo | ) |
Histogramming algorithm.
Definition at line 486 of file VertexFinder.cc.
References funct::abs(), SplitLinear::begin, reco::ceil(), dqmiodumpmetadata::counts, HLT_FULL_cff::distance, spr::find(), newFWLiteAna::found, gpuVertexFinder::hist, mps_fire::i, dqmiolumiharvest::j, cuda_std::lower_bound(), hlt_dqm_clientPB-live_cfg::nbins, GetRecoTauVFromDQM_MC_cff::next, StripSubdetector::TID, TrackerTopology::tidRing(), StripSubdetector::TOB, TrackerTopology::tobLayer(), HLT_FULL_cff::track, align::Tracker, and cuda_std::upper_bound().
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::FastHisto | ( | const TrackerTopology * | tTopo | ) |
Histogramming algorithm.
void l1tVertexFinder::VertexFinder::fastHistoLooseAssociation | ( | ) |
High pT Vertex Algorithm.
Definition at line 462 of file VertexFinder.cc.
References funct::abs(), l1tVertexFinder::RecoVertex< T >::insert(), l1tVertexFinder::RecoVertex< T >::pt(), l1tVertexFinder::RecoVertex< T >::setZ0(), and HLT_FULL_cff::track.
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::FastHistoLooseAssociation | ( | ) |
TDR histogramming algorithmn.
void l1tVertexFinder::VertexFinder::findPrimaryVertex | ( | ) |
Find the primary vertex.
Definition at line 440 of file VertexFinder.cc.
References mps_fire::i, and DiDispStaMuonMonitor_cfi::pt.
Referenced by VertexProducer::produce().
|
inline |
Storage for tracks out of the L1 Track finder.
Definition at line 65 of file VertexFinder.h.
References fitTracks_.
Referenced by VertexFinder().
void l1tVertexFinder::VertexFinder::GapClustering | ( | ) |
Gap Clustering Algorithm.
Definition at line 60 of file VertexFinder.cc.
References l1tVertexFinder::RecoVertex< T >::clear(), mps_fire::i, l1tVertexFinder::RecoVertex< T >::insert(), l1tVertexFinder::RecoVertex< T >::numTracks(), and or.
Referenced by VertexProducer::produce().
void l1tVertexFinder::VertexFinder::HPV | ( | ) |
High pT Vertex Algorithm.
Definition at line 371 of file VertexFinder.cc.
References funct::abs(), first, and HLT_FULL_cff::track.
Referenced by VertexProducer::produce().
|
inline |
Accessors.
Number of iterations
Definition at line 44 of file VertexFinder.h.
References fitTracks_, and iterations_.
|
inline |
Number of iterations.
Definition at line 104 of file VertexFinder.h.
References fitTracks_, and iterations_.
void l1tVertexFinder::VertexFinder::Kmeans | ( | ) |
Kmeans Algorithm.
Definition at line 396 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, mps_fire::i, gpuClustering::id, fastsim::Constants::NA, and HLT_FULL_cff::track.
Referenced by VertexProducer::produce().
float l1tVertexFinder::VertexFinder::maxDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find maximum distance in two clusters of tracks.
Definition at line 78 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, and l1tVertexFinder::RecoVertex< T >::tracks().
float l1tVertexFinder::VertexFinder::MaxDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find maximum distance in two clusters of tracks.
float l1tVertexFinder::VertexFinder::meanDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find average distance in two clusters of tracks.
Definition at line 104 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, l1tVertexFinder::RecoVertex< T >::numTracks(), and l1tVertexFinder::RecoVertex< T >::tracks().
float l1tVertexFinder::VertexFinder::MeanDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find average distance in two clusters of tracks.
float l1tVertexFinder::VertexFinder::minDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find minimum distance in two clusters of tracks.
Definition at line 91 of file VertexFinder.cc.
References funct::abs(), HLT_FULL_cff::distance, and l1tVertexFinder::RecoVertex< T >::tracks().
float l1tVertexFinder::VertexFinder::MinDistance | ( | RecoVertex<> | cluster0, |
RecoVertex<> | cluster1 | ||
) |
Find minimum distance in two clusters of tracks.
|
inline |
Storage for tracks out of the L1 Track finder.
Definition at line 46 of file VertexFinder.h.
References fitTracks_.
|
inline |
|
inline |
|
inline |
Number of reconstructed vertices.
Definition at line 50 of file VertexFinder.h.
References vertices_.
|
inline |
Reconstructed Primary Vertex.
Definition at line 52 of file VertexFinder.h.
References pv_index_, and vertices_.
|
inline |
Reconstructed Primary Vertex Id.
Definition at line 61 of file VertexFinder.h.
References pv_index_.
void l1tVertexFinder::VertexFinder::PVR | ( | ) |
Principal Vertex Reconstructor algorithm.
Definition at line 241 of file VertexFinder.cc.
References funct::abs(), l1tVertexFinder::RecoVertex< T >::insert(), or, command_line::start, HLT_FULL_cff::track, and l1tVertexFinder::L1Track::z0().
Referenced by VertexProducer::produce().
|
inline |
Sort vertices in pT.
Definition at line 90 of file VertexFinder.h.
References l1tVertexFinder::RecoVertex< T >::pt(), and vertices_.
Referenced by VertexProducer::produce().
|
inline |
Sort vertices in z.
Definition at line 96 of file VertexFinder.h.
References vertices_, and l1tVertexFinder::RecoVertex< T >::z0().
|
inline |
Definition at line 107 of file VertexFinder.h.
References gpuPixelDoublets::stride, and relativeConstraints::value.
|
inline |
Returns the z positions of the reconstructed primary vertices.
Definition at line 63 of file VertexFinder.h.
References vertices_.
Referenced by VertexProducer::produce().
|
private |
Definition at line 149 of file VertexFinder.h.
Referenced by fitTracks(), IterationsPerTrack(), iterationsPerTrack(), numInputTracks(), and VertexFinder().
|
private |
Definition at line 151 of file VertexFinder.h.
Referenced by IterationsPerTrack(), iterationsPerTrack(), NumIterations(), and numIterations().
|
private |
Definition at line 148 of file VertexFinder.h.
|
private |
Definition at line 150 of file VertexFinder.h.
Referenced by primaryVertex(), and primaryVertexId().
|
private |
Definition at line 146 of file VertexFinder.h.
Referenced by VertexFinder().
|
private |
Definition at line 147 of file VertexFinder.h.
Referenced by numVertices(), primaryVertex(), SortVerticesInPt(), SortVerticesInZ0(), and vertices().