14 typedef std::map<unsigned int, std::vector<uint32_t>>
PayloadMap;
50 event.getByToken(tfToken, muons);
55 for (
int i = muons->getFirstBX();
i <= muons->getLastBX(); ++
i, ++bxCtr) {
56 for (
auto mu = muons->begin(
i);
mu != muons->end(
i); ++
mu) {
62 payloadMap[
mu->link()*2].push_back(lsw);
63 payloadMap[
mu->link()*2].push_back(msw);
69 for (
const auto &
link : links) {
70 if (payloadMap.count(
link*2) == 0) {
71 payloadMap[
link*2].push_back(0);
74 if (payloadMap[
link*2].
size() == bxCtr * 6) {
75 payloadMap[
link*2].push_back(0);
81 for (
auto &kv : payloadMap) {
82 while (kv.second.size() % 6 != 0) {
83 kv.second.push_back(0);
89 for (
auto &kv : payloadMap) {
90 blocks.push_back(
Block(kv.first, kv.second));
std::map< unsigned int, std::vector< uint32_t > > PayloadMap
static void generatePackedDataWords(const RegionalMuonCand &, uint32_t &, uint32_t &)
std::vector< Block > Blocks
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
void packTF(const edm::Event &, const edm::EDGetTokenT< RegionalMuonCandBxCollection > &, Blocks &, const std::vector< unsigned int > &)
#define DEFINE_L1T_PACKER(type)
tuple size
Write out results.