24 event.getByToken(static_cast<const GTTokens*>(toks)->getAlgToken(), algs);
26 unsigned int wdPerBX = 6;
30 for(
int blk=0; blk<9; blk++) {
32 unsigned int blkID = blk*2+33;
34 unsigned int algOffset = (2*blk+1)/2;
35 algOffset = (algOffset%3)*192;
38 std::vector<uint32_t>
load;
40 for (
int i = algs->getFirstBX();
i <= algs->getLastBX(); ++
i) {
42 for (
auto j = algs->begin(
i);
j != algs->end(
i); ++
j) {
44 for(
unsigned int wd=0; wd<wdPerBX; wd++) {
48 if( (blk+1)%3 > 0 || wd<4 ) {
50 unsigned int startAlg = wd*32+algOffset;
51 for(
unsigned bt=0; bt<32; bt++) {
54 if(
j->getAlgoDecisionInitial(bt+startAlg)) word |= (0x1 << bt);
56 if(
j->getAlgoDecisionInterm(bt+startAlg)) word |= (0x1 << bt);
58 if(
j->getAlgoDecisionFinal(bt+startAlg)) word |= (0x1 << bt);
62 }
else if(blk==2 && (wd==4 || wd==5) ) {
65 if(wd==4) word |= (
j->getL1MenuUUID() & 0xFFFFFFFF);
66 if(wd==5) word |= (
j->getL1FirmwareUUID() & 0xFFFFFFFF);
71 if(
j->getFinalOR()) word |= (0x1 << 16);
72 if(
j->getFinalORVeto()) word |= (0x1 << 8);
73 if(
j->getFinalORPreVeto()) word |= (0x1 << 0);
75 word |= (
j->getPreScColumn() & 0xFF);
87 res.push_back(
Block(blkID, load));
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
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
#define DEFINE_L1T_PACKER(type)