13 uint32_t cicadaBits =
static_cast<uint32_t
>(
score * 256.f);
16 uint32_t firstWord = (cicadaBits & 0xF000) << 16;
17 uint32_t secondWord = (cicadaBits & 0x0F00) << 20;
18 uint32_t thirdWord = (cicadaBits & 0x00F0) << 24;
19 uint32_t fourthWord = (cicadaBits & 0x000F) << 28;
21 return {firstWord, secondWord, thirdWord, fourthWord};
26 event.getByToken(static_cast<const GTTokens*>(toks)->getCICADAToken(), cicadaScores);
30 for (
int i = cicadaScores->getFirstBX();
i <= cicadaScores->getLastBX(); ++
i) {
37 float CICADAScore = 0.0;
38 if (cicadaScores->size(
i) != 0) {
39 CICADAScore = cicadaScores->at(
std::vector< Block > Blocks
Blocks pack(const edm::Event &, const PackerTokens *) override
#define DEFINE_L1T_PACKER(type)
std::vector< uint32_t > generateCICADAWordsFromScore(float)