14 if (typeCluster ==
"dRC2d") {
17 }
else if (typeCluster ==
"NNC2d") {
20 }
else if (typeCluster ==
"dRNNC2d") {
23 }
else if (typeCluster ==
"dummyC2d") {
27 throw cms::Exception(
"HGCTriggerParameterError") <<
"Unknown clustering type '" << typeCluster;
39 std::vector<edm::Ptr<l1t::HGCalTriggerCell>> triggerCellsPtrs;
40 for (
unsigned i = 0;
i < collHandle->
size(); ++
i) {
42 triggerCellsPtrs.push_back(ptr);
46 triggerCellsPtrs.end(),
48 return a->mipPt() >
b->mipPt();
54 clustering_->clusterizeDR(triggerCellsPtrs, collCluster2D);
84 "HGCalBackendLayer1Processor2DClustering");
ClusterType clusteringAlgorithmType_
T getParameter(std::string const &) const
void run(const edm::Handle< l1t::HGCalTriggerCellBxCollection > &collHandle, l1t::HGCalClusterBxCollection &collCluster2D) override
HGCalBackendLayer1Processor2DClustering(const edm::ParameterSet &conf)
ParameterSet const & getParameterSet(std::string const &) const
unsigned size(int bx) const
const HGCalTriggerGeometryBase * geometry() const
std::unique_ptr< HGCalClusteringImpl > clustering_
std::unique_ptr< HGCalClusteringDummyImpl > clusteringDummy_
#define DEFINE_EDM_PLUGIN(factory, type, name)