#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 64 of file BasicGepClusterMaker.cxx.
   67   std::vector<Gep::GepCaloCell> v_clusterCells;
 
   69   std::vector<Gep::GepCaloCell> cellsNextLayer, cellsThisLayer;
 
   70   std::vector<unsigned int> seenCells;
 
   73   v_clusterCells.push_back(seed);
 
   74   cellsNextLayer.push_back(seed);
 
   75   seenCells.push_back(
seed.id);
 
   76   seenSeedCells.push_back(
seed.id);
 
   80   while (!cellsNextLayer.empty() && i_shell <= 
m_max_shells) {
 
   82         cellsThisLayer.swap(cellsNextLayer);
 
   83         cellsNextLayer.clear();
 
   87         for (
unsigned int i_cell = 0; i_cell < cellsThisLayer.size(); ++i_cell) {
 
   90                 for (
unsigned int i_neighbour = 0; i_neighbour < (cellsThisLayer[i_cell]).neighbours.size(); ++i_neighbour) {
 
   93             auto const& nghbr_itr = caloCellsMap->find((cellsThisLayer[i_cell]).neighbours[i_neighbour]);
 
   94             if (nghbr_itr == caloCellsMap->end()) 
continue;
 
  110                         seenCells.push_back(neighbour.
id);
 
  111                         cellsNextLayer.push_back(neighbour);
 
  112                         v_clusterCells.push_back(neighbour);
 
  118         cellsThisLayer.clear();
 
  121   return v_clusterCells;
 
 
 
 
◆ getClusterFromListOfCells()
Definition at line 125 of file BasicGepClusterMaker.cxx.
  128   std::vector<unsigned int> v_cellIDs;
 
  130   TLorentzVector tlv_cluster;
 
  131   for (
unsigned int i_cell = 0; i_cell < 
cells.size(); ++i_cell) {
 
  137     v_cellIDs.push_back(
cells[i_cell].
id);
 
  142   cluster.
cell_id = std::move(v_cellIDs);
 
  143   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 44 of file BasicGepClusterMaker.cxx.
   46   for (
unsigned int i = 0; 
i < list_of_samplings.size(); ++
i) {
 
   47     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 53 of file BasicGepClusterMaker.cxx.
   55   for (
unsigned int i = 0; 
i < seenCells.size(); ++
i) {
 
   56         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         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.