ATLAS Offline Software
|
#include <Clustering.h>
Public Member Functions | |
Cluster () | |
Cluster (const std::vector< double > &v, const std::vector< double > &v_sigma) | |
Cluster (const std::vector< double > &v, const std::vector< double > &v_sigma, const T &entry) | |
void | addEntry (const T &entry) |
Add an object of type T to the Cluster. More... | |
void | addEntryVector (const std::vector< T > &entry_vector) |
This can be used to combine the subsets stored in two vertices all in once while merging. More... | |
const std::vector< T > & | getEntries () const |
Return the objects that are part of the Cluster. More... | |
void | setClusterValue (const std::vector< double > &v, const std::vector< double > &v_sigma) |
The value of a vertex has to be set manually. More... | |
std::vector< double > | getValues () const |
Return the N-dimensional value of the Cluster. More... | |
const std::vector< double > & | getSigmas () const |
Return the N-dimensional resolution of the Cluster. More... | |
int | getNEntries () const |
Return the number of objects stored in the Cluster. More... | |
bool | mergeStatus () const |
Return true if the Cluster is the result of a merge. More... | |
void | setMergeStatus (bool status) |
int | getMergeIteration () const |
void | setMergeIteration (int iteration) |
bool | containsUnknowns () const |
void | setUnknownStatus (bool status) |
Private Attributes | |
int | m_debug_level = 0 |
std::vector< T > | m_entries { } |
double | m_combined_value { } |
double | m_combined_sigma { } |
std::vector< double > | m_combined_value_vector { } |
std::vector< double > | m_combined_sigma_vector { } |
bool | m_was_merged = false |
int | m_merge_iteration = 0 |
bool | m_contains_unknowns = false |
Definition at line 30 of file Clustering.h.
HGTD::Cluster< T >::Cluster |
Definition at line 172 of file Clustering.h.
HGTD::Cluster< T >::Cluster | ( | const std::vector< double > & | v, |
const std::vector< double > & | v_sigma | ||
) |
Definition at line 176 of file Clustering.h.
HGTD::Cluster< T >::Cluster | ( | const std::vector< double > & | v, |
const std::vector< double > & | v_sigma, | ||
const T & | entry | ||
) |
Definition at line 188 of file Clustering.h.
void HGTD::Cluster< T >::addEntry | ( | const T & | entry | ) |
void HGTD::Cluster< T >::addEntryVector | ( | const std::vector< T > & | entry_vector | ) |
This can be used to combine the subsets stored in two vertices all in once while merging.
[in] | entry_vector | Vector of objects (usually extracted from vertex to be merged with). |
Definition at line 215 of file Clustering.h.
bool HGTD::Cluster< T >::containsUnknowns |
Definition at line 258 of file Clustering.h.
const std::vector< T > & HGTD::Cluster< T >::getEntries |
Return the objects that are part of the Cluster.
Definition at line 210 of file Clustering.h.
int HGTD::Cluster< T >::getMergeIteration |
Definition at line 250 of file Clustering.h.
int HGTD::Cluster< T >::getNEntries |
Return the number of objects stored in the Cluster.
Definition at line 202 of file Clustering.h.
const std::vector< double > & HGTD::Cluster< T >::getSigmas |
Return the N-dimensional resolution of the Cluster.
Definition at line 240 of file Clustering.h.
std::vector< double > HGTD::Cluster< T >::getValues |
bool HGTD::Cluster< T >::mergeStatus |
void HGTD::Cluster< T >::setClusterValue | ( | const std::vector< double > & | v, |
const std::vector< double > & | v_sigma | ||
) |
The value of a vertex has to be set manually.
This is because we use a weighted time after vertex fusion, so this has to be accounted for (also gives the option to use different methods).
[in] | v | Global position of this Cluster. |
[in] | v_sigma | Global resolution of the position of this vertex. |
Definition at line 222 of file Clustering.h.
void HGTD::Cluster< T >::setMergeIteration | ( | int | iteration | ) |
Definition at line 254 of file Clustering.h.
void HGTD::Cluster< T >::setMergeStatus | ( | bool | status | ) |
Definition at line 244 of file Clustering.h.
void HGTD::Cluster< T >::setUnknownStatus | ( | bool | status | ) |
Definition at line 262 of file Clustering.h.
|
private |
Definition at line 109 of file Clustering.h.
|
private |
Definition at line 111 of file Clustering.h.
|
private |
Definition at line 108 of file Clustering.h.
|
private |
Definition at line 110 of file Clustering.h.
|
private |
Definition at line 114 of file Clustering.h.
|
private |
Definition at line 106 of file Clustering.h.
|
private |
Definition at line 107 of file Clustering.h.
|
private |
Definition at line 113 of file Clustering.h.
|
private |
Definition at line 112 of file Clustering.h.