1 #include <unordered_set> 2 #include <unordered_map> 9 : calibSF_(conf.getParameter<double>(
"calibSF_cluster")),
10 layerWeights_(conf.getParameter<
std::vector<double>>(
"layerWeights")),
11 applyLayerWeights_(conf.getParameter<
bool>(
"applyLayerCalibration")) {
18 std::vector<l1t::HGCalCluster> clustersTmp;
20 tc != triggerCellsPtrs.end();
22 clustersTmp.emplace_back(*tc);
26 clusters.
resize(0, clustersTmp.size());
27 for (
unsigned i(0);
i < clustersTmp.size(); ++
i) {
29 clusters.
set(0,
i, clustersTmp.at(
i));
41 <<
"2D cluster energy forced to 0 by calibration coefficients.\n" 42 <<
"The configuration should be changed. " 43 <<
"Discarded layers should be defined in hgcalTriggerGeometryESProducer.TriggerGeometry.DisconnectedLayers " 44 "and not with calibration coefficients = 0\n";
55 cluster.
setPt(calibPt);
double pt() const final
transverse momentum
HGCalTriggerTools triggerTools_
void clusterizeDummy(const std::vector< edm::Ptr< l1t::HGCalTriggerCell >> &triggerCellsPtrs, l1t::HGCalClusterBxCollection &clusters)
HGCalClusteringDummyImpl(const edm::ParameterSet &conf)
std::vector< double > layerWeights_
void calibratePt(l1t::HGCalCluster &cluster)
void set(int bx, unsigned i, const T &object)
void resize(int bx, unsigned size)