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