13 calibration_ = std::make_unique<HGCalTriggerCellCalibration>(conf);
22 std::vector<HGCalDataFrame> dataframes;
23 std::vector<std::pair<DetId, uint32_t>> linearized_dataframes;
24 std::unordered_map<uint32_t, uint32_t>
payload;
25 std::unordered_map<uint32_t, std::array<uint32_t, 2>> compressed_payload;
28 for (
const auto& digiData : digiColl) {
34 dataframes.emplace_back(digiData.id());
35 for (
int i = 0;
i < digiData.size();
i++) {
36 dataframes.back().setSample(
i, digiData.sample(
i));
45 for (
const auto& id_value : payload) {
46 if (id_value.second > 0) {
55 triggerCell.
setP4(p4);
59 if (triggerCell.
hwPt() > 0) {
62 triggerCellColl.
push_back(0, calibratedtriggercell);
void run(const HGCalDigiCollection &digiColl, l1t::HGCalTriggerCellBxCollection &triggerCellColl, const edm::EventSetup &es) override
const HGCalTriggerGeometryBase * geometry_
Geom::Phi< T > phi() const
HGCalVFEProcessorSums(const edm::ParameterSet &conf)
std::unique_ptr< HGCalVFECompressionImpl > vfeCompressionImpl_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
void setCompressedCharge(uint32_t value)
std::unique_ptr< HGCalVFELinearizationImpl > vfeLinearizationImpl_
virtual bool disconnectedModule(const unsigned module_id) const =0
virtual unsigned getModuleFromCell(const unsigned cell_det_id) const =0
std::unique_ptr< HGCalVFESummationImpl > vfeSummationImpl_
void setUncompressedCharge(uint32_t value)
std::unique_ptr< HGCalTriggerCellCalibration > calibration_
#define DEFINE_EDM_PLUGIN(factory, type, name)
void setPosition(const GlobalPoint &position)
void setP4(const LorentzVector &p4) final
set 4-momentum
math::XYZTLorentzVector LorentzVector
Lorentz vector.
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
virtual GlobalPoint getTriggerCellPosition(const unsigned trigger_cell_det_id) const =0
void push_back(int bx, T object)