10 template<
typename FECODEC,
typename DATA>
49 template<
typename FECODEC,
typename DATA>
56 for(
const auto& digi : coll )
61 digi.decode(codec_, data);
64 uint32_t moduleSum = 0;
65 for(
const auto& triggercell : data.payload)
67 moduleSum += triggercell.hwPt();
74 cluster_product_->push_back(0,cluster);
83 "FullModuleSumAlgoBestChoice");
87 "FullModuleSumAlgoThreshold");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void setModule(uint32_t module)
void setProduces(edm::stream::EDProducer<> &prod) const final
std::unique_ptr< l1t::HGCalClusterBxCollection > cluster_product_
int wafer() const
get the wafer #
FullModuleSumAlgo(const edm::ParameterSet &conf, edm::ConsumesCollector &cc)
FullModuleSumAlgo< HGCalTriggerCellBestChoiceCodec, HGCalTriggerCellBestChoiceCodec::data_type > FullModuleSumAlgoBestChoice
void putInEvent(edm::Event &evt) final
BXVector< HGCalCluster > HGCalClusterBxCollection
char data[epos_bytes_allocation]
void run(const l1t::HGCFETriggerDigiCollection &coll, const edm::EventSetup &es, edm::Event &evt) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
FullModuleSumAlgo< HGCalTriggerCellThresholdCodec, HGCalTriggerCellThresholdCodec::data_type > FullModuleSumAlgoThreshold
math::XYZTLorentzVector LorentzVector
Lorentz vector.