#include <WFSClusterMaker.h>
|
float | m_seed_threshold = 4.0 |
|
float | m_clustering_threshold = 2.0 |
|
int | m_max_shells = 8 |
|
std::vector< int > | m_allowed_seed_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} |
|
std::vector< int > | m_allowed_clustering_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} |
|
Definition at line 14 of file WFSClusterMaker.h.
◆ WFSClusterMaker()
Gep::WFSClusterMaker::WFSClusterMaker |
( |
| ) |
|
|
inline |
◆ ~WFSClusterMaker()
Gep::WFSClusterMaker::~WFSClusterMaker |
( |
| ) |
|
|
inline |
◆ calculateClusterPhi()
double Gep::WFSClusterMaker::calculateClusterPhi |
( |
double |
seed_phi, |
|
|
double |
delta_phi |
|
) |
| const |
|
private |
◆ clusterFromCells()
Definition at line 62 of file WFSClusterMaker.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);
77 while (!cellsNextLayer.empty() && i_shell <=
m_max_shells) {
79 cellsThisLayer = cellsNextLayer;
80 cellsNextLayer.clear();
84 for (
unsigned int i_cell = 0; i_cell < cellsThisLayer.size(); ++i_cell) {
87 for (
unsigned int i_neighbour = 0; i_neighbour < (cellsThisLayer[i_cell]).neighbours.size(); ++i_neighbour) {
90 auto const& nghbr_itr = caloCellsMap->find((cellsThisLayer[i_cell]).neighbours[i_neighbour]);
91 if (nghbr_itr == caloCellsMap->end())
continue;
107 seenCells.push_back(neighbour.
id);
108 cellsNextLayer.push_back(neighbour);
109 v_clusterCells.push_back(neighbour);
112 cellsThisLayer.clear();
115 return v_clusterCells;
◆ getClusterFromListOfCells()
Definition at line 119 of file WFSClusterMaker.cxx.
123 std::vector<unsigned int> v_cellIDs;
124 double cluster_e = 0.0;
130 double seed_phi =
cells[0].phi;
131 for (
unsigned int i_cell = 0; i_cell <
cells.size(); ++i_cell) {
132 float cell_e =
cells[i_cell].et * TMath::CosH(
cells[i_cell].
eta);
134 abs_e += fabs(cell_e);
135 v_cellIDs.push_back(
cells[i_cell].
id);
136 etaSum += fabs(cell_e) *
cells[i_cell].eta;
145 double cluster_eta = etaSum / abs_e;
147 double cluster_et = (cluster_e * (1.0 / std::cosh(cluster_eta))) /
weight;
148 cluster.
setEtEtaPhi(cluster_et, cluster_eta, cluster_phi);
◆ getDeltaPhi()
double Gep::WFSClusterMaker::getDeltaPhi |
( |
double |
phi, |
|
|
double |
seed_phi |
|
) |
| const |
|
private |
◆ getName()
std::string Gep::WFSClusterMaker::getName |
( |
| ) |
const |
|
overridevirtual |
◆ isInAllowedSampling()
bool Gep::WFSClusterMaker::isInAllowedSampling |
( |
int |
sampling, |
|
|
const std::vector< int > & |
list_of_samplings |
|
) |
| const |
|
private |
Definition at line 42 of file WFSClusterMaker.cxx.
44 for (
unsigned int i = 0;
i < list_of_samplings.size(); ++
i) {
45 if (list_of_samplings[
i] == sampling)
return true;
◆ isNewCell()
bool Gep::WFSClusterMaker::isNewCell |
( |
unsigned int |
id, |
|
|
const std::vector< unsigned int > & |
seenCells |
|
) |
| const |
|
private |
Definition at line 51 of file WFSClusterMaker.cxx.
53 for (
unsigned int i = 0;
i < seenCells.size(); ++
i) {
54 if (
id == seenCells[
i])
return false;
◆ isSeedCell()
◆ makeClusters()
◆ orderClustersInEt()
void Gep::WFSClusterMaker::orderClustersInEt |
( |
std::vector< Gep::Cluster > & |
v_clusters | ) |
const |
|
private |
Definition at line 170 of file WFSClusterMaker.cxx.
172 std::vector<Gep::Cluster> v_ordered;
173 for (
unsigned int i_cluster = 0; i_cluster < v_clusters.size(); ++i_cluster) {
174 float et = v_clusters[i_cluster].et();
177 if (v_ordered.empty()) {
178 v_ordered.push_back(v_clusters[i_cluster]);
183 for (
unsigned int i = 0;
i < v_ordered.size(); ++
i) {
184 if (v_ordered[
i].
et() <
et) {
185 v_ordered.insert(v_ordered.begin()+
i, v_clusters[i_cluster]);
191 if (v_ordered.size() != i_cluster+1) v_ordered.push_back(v_clusters[i_cluster]);
194 v_clusters = v_ordered;
◆ m_allowed_clustering_samplings
std::vector<int> Gep::WFSClusterMaker::m_allowed_clustering_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} |
|
private |
◆ m_allowed_seed_samplings
std::vector<int> Gep::WFSClusterMaker::m_allowed_seed_samplings = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20} |
|
private |
◆ m_clustering_threshold
float Gep::WFSClusterMaker::m_clustering_threshold = 2.0 |
|
private |
◆ m_max_shells
int Gep::WFSClusterMaker::m_max_shells = 8 |
|
private |
◆ m_seed_threshold
float Gep::WFSClusterMaker::m_seed_threshold = 4.0 |
|
private |
The documentation for this class was generated from the following files: