#include <BasicGepClusterMaker.h>
Definition at line 14 of file BasicGepClusterMaker.h.
◆ BasicGepClusterMaker()
| Gep::BasicGepClusterMaker::BasicGepClusterMaker |
( |
| ) |
|
|
default |
◆ ~BasicGepClusterMaker()
| Gep::BasicGepClusterMaker::~BasicGepClusterMaker |
( |
| ) |
|
|
default |
◆ clusterFromCells()
Definition at line 62 of file BasicGepClusterMaker.cxx.
65 std::vector<Gep::GepCaloCell> v_clusterCells;
67 std::vector<Gep::GepCaloCell> cellsNextLayer, cellsThisLayer;
68 std::vector<unsigned int> seenCells;
71 v_clusterCells.push_back(seed);
72 cellsNextLayer.push_back(seed);
73 seenCells.push_back(
seed.id);
74 seenSeedCells.push_back(
seed.id);
78 while (!cellsNextLayer.empty() && i_shell <=
m_max_shells) {
80 cellsThisLayer.swap(cellsNextLayer);
81 cellsNextLayer.clear();
85 for (
unsigned int i_cell = 0; i_cell < cellsThisLayer.size(); ++i_cell) {
88 for (
unsigned int i_neighbour = 0; i_neighbour < (cellsThisLayer[i_cell]).neighbours.size(); ++i_neighbour) {
91 auto const& nghbr_itr = caloCellsMap->find((cellsThisLayer[i_cell]).neighbours[i_neighbour]);
92 if (nghbr_itr == caloCellsMap->end())
continue;
108 seenCells.push_back(neighbour.
id);
109 cellsNextLayer.push_back(neighbour);
110 v_clusterCells.push_back(neighbour);
116 cellsThisLayer.clear();
119 return v_clusterCells;
◆ getClusterFromListOfCells()
Definition at line 123 of file BasicGepClusterMaker.cxx.
126 std::vector<unsigned int> v_cellIDs;
128 TLorentzVector tlv_cluster;
129 for (
unsigned int i_cell = 0; i_cell <
cells.size(); ++i_cell) {
135 v_cellIDs.push_back(
cells[i_cell].
id);
140 cluster.
cell_id = std::move(v_cellIDs);
141 cluster.
setEtEtaPhi(tlv_cluster.Et(), tlv_cluster.Eta(), tlv_cluster.Phi());
◆ getName()
| std::string Gep::BasicGepClusterMaker::getName |
( |
| ) |
const |
|
overridevirtual |
◆ isInAllowedSampling()
| bool Gep::BasicGepClusterMaker::isInAllowedSampling |
( |
int |
sampling, |
|
|
const std::vector< int > & |
list_of_samplings |
|
) |
| const |
|
private |
Definition at line 42 of file BasicGepClusterMaker.cxx.
44 for (
unsigned int i = 0;
i < list_of_samplings.size(); ++
i) {
45 if (list_of_samplings[
i] == sampling)
return false;
◆ isNewCell()
| bool Gep::BasicGepClusterMaker::isNewCell |
( |
unsigned int |
id, |
|
|
const std::vector< unsigned int > & |
seenCells |
|
) |
| const |
|
private |
Definition at line 51 of file BasicGepClusterMaker.cxx.
53 for (
unsigned int i = 0;
i < seenCells.size(); ++
i) {
54 if (
id == seenCells[
i])
return false;
◆ isSeedCell()
| bool Gep::BasicGepClusterMaker::isSeedCell |
( |
const Gep::GepCaloCell & |
cell, |
|
|
const std::vector< unsigned int > & |
seenSeedCells |
|
) |
| const |
|
private |
◆ makeClusters()
Implements Gep::IClusterMaker.
Definition at line 8 of file BasicGepClusterMaker.cxx.
13 std::vector<unsigned int> seenSeedCells;
14 for (
auto const& cell_itr : *caloCellsMap) {
17 if (!
isSeedCell(cell_itr.second, seenSeedCells))
continue;
20 const std::vector<Gep::GepCaloCell> & cluster_cells =
clusterFromCells(cell_itr.second, caloCellsMap, seenSeedCells);
◆ m_clustering_threshold
| const float Gep::BasicGepClusterMaker::m_clustering_threshold = 2.0 |
|
private |
◆ m_disallowed_clustering_samplings
| const std::vector<int> Gep::BasicGepClusterMaker::m_disallowed_clustering_samplings = {} |
|
private |
◆ m_disallowed_seed_samplings
| const std::vector<int> Gep::BasicGepClusterMaker::m_disallowed_seed_samplings = {} |
|
private |
◆ m_max_shells
| const int Gep::BasicGepClusterMaker::m_max_shells = 9999 |
|
private |
◆ m_seed_threshold
| const float Gep::BasicGepClusterMaker::m_seed_threshold = 4.0 |
|
private |
The documentation for this class was generated from the following files:
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.