37 std::vector<HGCalDataFrame> dataframes;
38 std::vector<std::pair<DetId, uint32_t>> linearized_dataframes;
39 std::unordered_map<uint32_t, uint32_t> tc_payload;
40 std::unordered_map<uint32_t, std::array<uint64_t, 2>> tc_compressed_payload;
43 for (
const auto& digiData :
digiColl) {
44 if (!
geometry()->validCell(digiData.id()))
54 dataframes.emplace_back(digiData.id());
55 for (
int i = 0;
i < digiData.size();
i++) {
56 dataframes.back().setSample(
i, digiData.sample(
i));
59 if (dataframes.empty())
62 constexpr
int kHighDensityThickness = 0;
83 for (
const auto& [tc_id, tc_value] : tc_payload) {
85 const auto& [tc_compressed_code, tc_compressed_value] = tc_compressed_payload[tc_id];
88 edm::LogWarning(
"CompressedValueDowncasting") <<
"Compressed value cannot fit into 32-bit word. Downcasting.";
94 edm::LogWarning(
"CompressedValueDowncasting") <<
"Compressed code cannot fit into 32-bit word. Downcasting.";
102 triggerCell.
setP4(p4);
106 if (triggerCell.
hwPt() > 0) {
110 }
else if (isSilicon) {
119 triggerCellColl.
push_back(0, calibratedtriggercell);
virtual GlobalPoint getTriggerCellPosition(const unsigned trigger_cell_det_id) const =0
T getParameter(std::string const &) const
virtual unsigned getModuleFromCell(const unsigned cell_det_id) const =0
std::unique_ptr< HGCalVFECompressionImpl > vfeCompressionHDMImpl_
HGCalVFEProcessorSums(const edm::ParameterSet &conf)
virtual bool disconnectedModule(const unsigned module_id) const =0
std::unique_ptr< HGCalTriggerCellCalibration > calibrationHEsi_
std::unique_ptr< HGCalTriggerCellCalibration > calibrationHEsc_
HGCalTriggerTools triggerTools_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
std::unique_ptr< HGCalVFECompressionImpl > vfeCompressionLDMImpl_
const HGCalTriggerGeometryBase * geometry() const
void setCompressedCharge(uint32_t value)
std::unique_ptr< HGCalVFELinearizationImpl > vfeLinearizationScImpl_
std::unique_ptr< HGCalVFELinearizationImpl > vfeLinearizationSiImpl_
std::unique_ptr< HGCalTriggerCellCalibration > calibrationNose_
std::unique_ptr< HGCalVFESummationImpl > vfeSummationImpl_
void setUncompressedCharge(uint32_t value)
std::unique_ptr< HGCalTriggerCellCalibration > calibrationEE_
#define DEFINE_EDM_PLUGIN(factory, type, name)
Log< level::Warning, false > LogWarning
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
void push_back(int bx, T object)
void run(const HGCalDigiCollection &digiColl, l1t::HGCalTriggerCellBxCollection &triggerCellColl) override