Go to the source code of this file.
template<typename T , typename F >
Definition at line 8 of file PhysCandPacker.cc.
References funct::abs(), BXVector< T >::begin(), BXVector< T >::end(), alcazmumu_cfi::filter, BXVector< T >::getFirstBX(), BXVector< T >::getLastBX(), mps_fire::i, dqmiolumiharvest::j, svgfig::load(), min(), and dqmiodumpmetadata::n.
9 std::vector<uint32_t>
load[2];
12 uint16_t jetbit[4] = {0, 0, 0, 0};
14 for (
auto j = coll.
begin(
i);
j != coll.
end(
i) && n < 4; ++
j) {
18 jetbit[n++] =
std::min(
j->hwPt(), 0x3F) | (
abs(
j->hwEta()) & 0x7) << 6 | ((
j->hwEta() >> 3) & 0x1) << 9 |
19 (
j->hwPhi() & 0x1F) << 10;
21 uint32_t word0 = (jetbit[0] & 0xFFFF);
22 uint32_t word1 = (jetbit[1] & 0xFFFF);
23 uint32_t word2 = (jetbit[2] & 0xFFFF);
24 uint32_t word3 = (jetbit[3] & 0xFFFF);
26 load[0].push_back(word0);
27 load[0].push_back(word2);
29 load[1].push_back(word1);
30 load[1].push_back(word3);
const_iterator end(int bx) const
Abs< T >::type abs(const T &t)
const_iterator begin(int bx) const