#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 63 of file WFSClusterMaker.cxx.
66 std::vector<Gep::CustomCaloCell> v_clusterCells;
68 std::vector<Gep::CustomCaloCell> cellsNextLayer, cellsThisLayer;
69 std::vector<unsigned int> seenCells;
72 v_clusterCells.push_back(seed);
73 cellsNextLayer.push_back(seed);
74 seenCells.push_back(
seed.id);
78 while (!cellsNextLayer.empty() && i_shell <=
m_max_shells) {
80 cellsThisLayer = 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) {
89 Gep::CustomCaloCell neighbour = caloCellsMap->at((cellsThisLayer[i_cell]).neighbours[i_neighbour]);
103 seenCells.push_back(neighbour.
id);
104 cellsNextLayer.push_back(neighbour);
105 v_clusterCells.push_back(neighbour);
108 cellsThisLayer.clear();
111 return v_clusterCells;
◆ getClusterFromListOfCells()
Definition at line 115 of file WFSClusterMaker.cxx.
119 std::vector<unsigned int> v_cellIDs;
120 double cluster_e = 0.0;
126 double seed_phi =
cells[0].phi;
127 for (
unsigned int i_cell = 0; i_cell <
cells.size(); ++i_cell) {
128 cluster_e +=
cells[i_cell].e;
129 abs_e += fabs(
cells[i_cell].
e);
130 v_cellIDs.push_back(
cells[i_cell].
id);
131 etaSum += fabs(
cells[i_cell].
e) *
cells[i_cell].eta;
140 double cluster_eta = etaSum / abs_e;
142 double cluster_et = (cluster_e * (1.0 / std::cosh(cluster_eta))) /
weight;
143 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 43 of file WFSClusterMaker.cxx.
45 for (
unsigned int i = 0;
i < list_of_samplings.size(); ++
i) {
46 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 52 of file WFSClusterMaker.cxx.
54 for (
unsigned int i = 0;
i < seenCells.size(); ++
i) {
55 if (
id == seenCells[
i])
return false;
◆ isSeedCell()
◆ makeClusters()
◆ orderClustersInEt()
void Gep::WFSClusterMaker::orderClustersInEt |
( |
std::vector< Gep::Cluster > & |
v_clusters | ) |
const |
|
private |
Definition at line 165 of file WFSClusterMaker.cxx.
167 std::vector<Gep::Cluster> v_ordered;
168 for (
unsigned int i_cluster = 0; i_cluster < v_clusters.size(); ++i_cluster) {
169 float et = v_clusters[i_cluster].et();
172 if (v_ordered.empty()) {
173 v_ordered.push_back(v_clusters[i_cluster]);
178 for (
unsigned int i = 0;
i < v_ordered.size(); ++
i) {
179 if (v_ordered[
i].
et() <
et) {
180 v_ordered.insert(v_ordered.begin()+
i, v_clusters[i_cluster]);
186 if (v_ordered.size() != i_cluster+1) v_ordered.push_back(v_clusters[i_cluster]);
189 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: