15 event.getByToken(static_cast<const CaloTokens*>(toks)->getEtSumToken(), etSums);
17 std::vector<uint32_t>
load;
19 for (
int i = etSums->getFirstBX();
i <= etSums->getLastBX(); ++
i) {
27 for (
auto j = etSums->begin(
i); j != etSums->end(
i) && n < 4; ++j, ++
n) {
30 flaghtmiss=j->hwQual() & 0x1;
36 uint16_t
object[2]={0,0};
38 object[0]=htmissphi|((htmiss & 0x7F) << 5 ) |(flaghtmiss<<12)|(0x1 << 14);
39 object[1]= 0x1 | (0x1 << 2) | (0x1 << 4) | (0x1 << 6) |(0x1 << 8) | (0x1 << 10) | (0x1 << 12) | (0x1 << 14);
41 uint32_t word0=(
object[0] & 0xFFFF);
42 uint32_t word1=(
object[1] & 0xFFFF);
45 word1 |= ((
i == 0) << 15);
47 load.push_back(word0);
48 load.push_back(word1);
51 return {
Block(99, load)};
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
std::vector< Block > Blocks
#define DEFINE_L1T_PACKER(type)