#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 | scintillatorSeedThreshold_ |
double | scintillatorTriggerCellThreshold_ |
double | siliconSeedThreshold_ |
double | siliconTriggerCellThreshold_ |
Static Private Attributes | |
static const unsigned | kLayers_ = kLayersEE_+kLayersFH_+kLayersBH_ |
static const unsigned | kLayersBH_ = 12 |
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_, scintillatorSeedThreshold_, scintillatorTriggerCellThreshold_, siliconSeedThreshold_, and siliconTriggerCellThreshold_.
void HGCalClusteringImpl::clusterizeDR | ( | const edm::PtrVector< l1t::HGCalTriggerCell > & | triggerCellsPtrs, |
l1t::HGCalClusterBxCollection & | clusters | ||
) |
Definition at line 46 of file HGCalClusteringImpl.cc.
References edm::PtrVector< T >::begin(), edmIntegrityCheck::d, dr_, edm::PtrVector< T >::end(), HGCHEB, mps_fire::i, isPertinent(), BXVector< T >::resize(), scintillatorSeedThreshold_, scintillatorTriggerCellThreshold_, UEAnalysisJets_cfi::seedThreshold, BXVector< T >::set(), siliconSeedThreshold_, siliconTriggerCellThreshold_, edm::PtrVectorBase::size(), and electronIdCutBased_cfi::threshold.
void HGCalClusteringImpl::clusterizeNN | ( | const edm::PtrVector< l1t::HGCalTriggerCell > & | triggerCellsPtrs, |
l1t::HGCalClusterBxCollection & | clusters, | ||
const HGCalTriggerGeometryBase & | triggerGeometry | ||
) |
Definition at line 257 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 26 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 140 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 153 of file HGCalClusteringImpl.cc.
References Exception, HGCalTriggerGeometryBase::getNeighborsFromTriggerCell(), HGCHEB, mergeClusters(), BXVector< T >::push_back(), scintillatorSeedThreshold_, scintillatorTriggerCellThreshold_, UEAnalysisJets_cfi::seedThreshold, siliconSeedThreshold_, siliconTriggerCellThreshold_, and electronIdCutBased_cfi::threshold.
Referenced by clusterizeNN().
|
private |
Definition at line 112 of file HGCalClusteringImpl.cc.
References makeMuonMisalignmentScenario::endcap, HGCEE, HGCHEB, HGCHEF, kLayersEE_, kLayersFH_, and DetId::subdetId().
Referenced by clusterizeNN().
|
private |
Definition at line 60 of file HGCalClusteringImpl.h.
Referenced by HGCalClusteringImpl().
|
private |
Definition at line 59 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR().
|
staticprivate |
Definition at line 22 of file HGCalClusteringImpl.h.
Referenced by clusterizeNN().
|
staticprivate |
Definition at line 21 of file HGCalClusteringImpl.h.
|
staticprivate |
Definition at line 19 of file HGCalClusteringImpl.h.
Referenced by triggerCellReshuffling().
|
staticprivate |
Definition at line 20 of file HGCalClusteringImpl.h.
Referenced by triggerCellReshuffling().
|
staticprivate |
Definition at line 16 of file HGCalClusteringImpl.h.
Referenced by clusterizeNN().
|
private |
Definition at line 57 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR(), HGCalClusteringImpl(), and NNKernel().
|
private |
Definition at line 58 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().
|
private |
Definition at line 56 of file HGCalClusteringImpl.h.
Referenced by clusterizeDR(), HGCalClusteringImpl(), and NNKernel().