#include <HGCalClusteringImpl.h>
Public Member Functions | |
void | clusterizeDR (const edm::PtrVector< l1t::HGCalTriggerCell > &triggerCellsPtrs, l1t::HGCalClusterBxCollection &clusters) |
void | clusterizeNN (const edm::PtrVector< l1t::HGCalTriggerCell > &triggerCellsPtrs, l1t::HGCalClusterBxCollection &clusters, const HGCalTriggerGeometryBase &triggerGeometry) |
HGCalClusteringImpl (const edm::ParameterSet &conf) | |
bool | isPertinent (const l1t::HGCalTriggerCell &tc, const l1t::HGCalCluster &clu, double distXY) const |
void | mergeClusters (l1t::HGCalCluster &main_cluster, const l1t::HGCalCluster &secondary_cluster) const |
void | NNKernel (const std::vector< edm::Ptr< l1t::HGCalTriggerCell >> &reshuffledTriggerCells, l1t::HGCalClusterBxCollection &clusters, const HGCalTriggerGeometryBase &triggerGeometry) |
Private Member Functions | |
void | triggerCellReshuffling (const edm::PtrVector< l1t::HGCalTriggerCell > &triggerCellsPtrs, std::array< std::array< std::vector< edm::Ptr< l1t::HGCalTriggerCell >>, kLayers_ >, kNSides_ > &reshuffledTriggerCells) |
Private Attributes | |
std::string | clusteringAlgorithmType_ |
double | dr_ |
double | seedThreshold_ |
double | triggerCellThreshold_ |
Static Private Attributes | |
static const unsigned | kLayers_ = kLayersEE_+kLayersFH_ |
static const unsigned | kLayersEE_ = 28 |
static const unsigned | kLayersFH_ = 12 |
static const unsigned | kNSides_ = 2 |
Definition at line 13 of file HGCalClusteringImpl.h.
HGCalClusteringImpl::HGCalClusteringImpl | ( | const edm::ParameterSet & | conf | ) |
Definition at line 8 of file HGCalClusteringImpl.cc.
References clusteringAlgorithmType_, seedThreshold_, and triggerCellThreshold_.
void HGCalClusteringImpl::clusterizeDR | ( | const edm::PtrVector< l1t::HGCalTriggerCell > & | triggerCellsPtrs, |
l1t::HGCalClusterBxCollection & | clusters | ||
) |
Definition at line 42 of file HGCalClusteringImpl.cc.
References edm::PtrVector< T >::begin(), edmIntegrityCheck::d, dr_, edm::PtrVector< T >::end(), mps_fire::i, isPertinent(), BXVector< T >::resize(), seedThreshold_, BXVector< T >::set(), edm::PtrVectorBase::size(), and triggerCellThreshold_.
void HGCalClusteringImpl::clusterizeNN | ( | const edm::PtrVector< l1t::HGCalTriggerCell > & | triggerCellsPtrs, |
l1t::HGCalClusterBxCollection & | clusters, | ||
const HGCalTriggerGeometryBase & | triggerGeometry | ||
) |
Definition at line 251 of file HGCalClusteringImpl.cc.
References kLayers_, kNSides_, NNKernel(), and triggerCellReshuffling().
bool HGCalClusteringImpl::isPertinent | ( | const l1t::HGCalTriggerCell & | tc, |
const l1t::HGCalCluster & | clu, | ||
double | distXY | ||
) | const |
Definition at line 22 of file HGCalClusteringImpl.cc.
References l1t::HGCalTriggerCell::detId(), l1t::HGCalClusterT< C >::detId(), and l1t::HGCalClusterT< C >::distance().
Referenced by clusterizeDR().
void HGCalClusteringImpl::mergeClusters | ( | l1t::HGCalCluster & | main_cluster, |
const l1t::HGCalCluster & | secondary_cluster | ||
) | const |
Definition at line 135 of file HGCalClusteringImpl.cc.
References l1t::HGCalClusterT< C >::addConstituent(), edm::PtrVector< T >::begin(), l1t::HGCalClusterT< C >::constituents(), and edm::PtrVector< T >::end().
Referenced by NNKernel().
void HGCalClusteringImpl::NNKernel | ( | const std::vector< edm::Ptr< l1t::HGCalTriggerCell >> & | reshuffledTriggerCells, |
l1t::HGCalClusterBxCollection & | clusters, | ||
const HGCalTriggerGeometryBase & | triggerGeometry | ||
) |
Definition at line 148 of file HGCalClusteringImpl.cc.
References Exception, HGCalTriggerGeometryBase::getNeighborsFromTriggerCell(), mergeClusters(), neighbor(), BXVector< T >::push_back(), seedThreshold_, and triggerCellThreshold_.
Referenced by clusterizeNN().
|
private |
Definition at line 107 of file HGCalClusteringImpl.cc.
References makeMuonMisalignmentScenario::endcap, HGCEE, HGCHEB, HGCHEF, kLayersEE_, and DetId::subdetId().
Referenced by clusterizeNN().
|
private |
Definition at line 57 of file HGCalClusteringImpl.h.
Referenced by HGCalClusteringImpl().
|
private |
Definition at line 56 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR().
|
staticprivate |
Definition at line 21 of file HGCalClusteringImpl.h.
Referenced by clusterizeNN().
|
staticprivate |
Definition at line 19 of file HGCalClusteringImpl.h.
Referenced by triggerCellReshuffling().
|
staticprivate |
Definition at line 20 of file HGCalClusteringImpl.h.
|
staticprivate |
Definition at line 16 of file HGCalClusteringImpl.h.
Referenced by clusterizeNN().
|
private |
Definition at line 54 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR(), HGCalClusteringImpl(), and NNKernel().
|
private |
Definition at line 55 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR(), HGCalClusteringImpl(), and NNKernel().