test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalExtBlkPacker.cc
Go to the documentation of this file.
3 
4 #include "GTTokens.h"
5 #include "GlobalExtBlkPacker.h"
6 
7 namespace l1t {
8 namespace stage2 {
9  Blocks
11  {
13  event.getByToken(static_cast<const GTTokens*>(toks)->getExtToken(), exts);
14 
15  unsigned int wdPerBX = 6; //should this be configured someplace else?
16 
17  Blocks res;
18 
19  for(int blk=0; blk<4; blk++) {
20 
21  unsigned int blkID = blk*2+24;
22 
23  unsigned int extOffset = blk*64;
24 
25  //vector of words
26  std::vector<uint32_t> load;
27 
28  for (int i = exts->getFirstBX(); i <= exts->getLastBX(); ++i) {
29 
30  for (auto j = exts->begin(i); j != exts->end(i); ++j) {
31 
32  for(unsigned int wd=0; wd<wdPerBX; wd++) {
33 
34  uint32_t word = 0;
35 
36  if( wd<2 ) {
37 
38  unsigned int startExt = wd*32+extOffset;
39  for(unsigned bt=0; bt<32; bt++) {
40 
41  if(j->getExternalDecision(bt+startExt)) word |= (0x1 << bt);
42 
43  } //end loop over bits
44  } //endif wrd < 2
45 
46  load.push_back(word);
47  } //loop over words
48 
49  } //end loop over alg objects.(trivial one per BX)
50 
51  } //end loop over bx
52 
53  res.push_back(Block(blkID, load));
54 
55  } //loop over blks
56 
57  return res;
58  }
59 }
60 }
61 
int i
Definition: DBlmapReader.cc:9
virtual Blocks pack(const edm::Event &, const PackerTokens *) override
def load
Definition: svgfig.py:546
std::vector< Block > Blocks
Definition: Block.h:68
int j
Definition: DBlmapReader.cc:9
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)
Definition: PackerFactory.h:22