CMS 3D CMS Logo

VMRouterCM.h
Go to the documentation of this file.
1 // VMRouter: sorts input stubs into smaller units in phi (and possibly z), referred to as "Virtual Modules" (VMs) - implementation for combined modules
2 #ifndef L1Trigger_TrackFindingTracklet_interface_VMRouterCM_h
3 #define L1Trigger_TrackFindingTracklet_interface_VMRouterCM_h
4 
8 
9 #include <string>
10 #include <vector>
11 #include <utility>
12 
13 namespace trklet {
14 
15  class Settings;
16  class Globals;
17  class MemoryBase;
18  class InputLinkMemory;
19  class AllStubsMemory;
20  class AllInnerStubsMemory;
21  class VMStubsMEMemory;
22  class VMStubsTEMemory;
23 
24  struct VMStubsTEPHICM {
25  VMStubsTEPHICM(unsigned int seednumber_, std::vector<VMStubsTEMemory*> vmstubmem_)
26  : seednumber(seednumber_), vmstubmem(vmstubmem_){};
27 
28  unsigned int seednumber; //seed number [0,11]
29  std::vector<VMStubsTEMemory*> vmstubmem; // m_vmstubmem[n] is the VMStubsTEMemory for the nth copy
30  };
31 
32  class VMRouterCM : public ProcessBase {
33  public:
34  VMRouterCM(std::string name, Settings const& settings, Globals* global);
35 
36  ~VMRouterCM() override = default;
37 
38  void addOutput(MemoryBase* memory, std::string output) override;
39  void addInput(MemoryBase* memory, std::string input) override;
40 
41  void execute(unsigned int iSector);
42 
43  private:
44  //0-5 are the layers and 6-10 are the disks
45  unsigned int layerdisk_;
46 
47  //overlapbits_ is the top bits of phicorr used to add or subtract one to see if stub should be added to
48  //two VMs. nextrabits_ is the number of bits beyond the bits for the phivm that is used by overlapbits_
49  unsigned int overlapbits_;
50  unsigned int nextrabits_;
51 
54 
55  unsigned int nvmmebins_; //number of long z/r bins in VM
56 
57  TrackletLUT meTable_; //used for ME and outer TE barrel
58  TrackletLUT diskTable_; //outer disk used by D1, D2, and D4
59 
60  //The input stub memories
61  std::vector<InputLinkMemory*> stubinputs_;
62 
63  //The all stub memories
64  std::vector<AllStubsMemory*> allstubs_;
65  std::vector<std::pair<char, AllInnerStubsMemory*> > allinnerstubs_;
66 
67  //The VM stubs memories used by the MEs
68  std::vector<VMStubsMEMemory*> vmstubsMEPHI_;
69 
70  //The VM stubs memories used by the TEs (using structure defined above)
71  std::vector<VMStubsTEPHICM> vmstubsTEPHI_;
72  };
73 }; // namespace trklet
74 #endif
VMStubsTEPHICM(unsigned int seednumber_, std::vector< VMStubsTEMemory *> vmstubmem_)
Definition: VMRouterCM.h:25
TrackletLUT diskTable_
Definition: VMRouterCM.h:58
unsigned int nvmmebins_
Definition: VMRouterCM.h:55
std::vector< InputLinkMemory * > stubinputs_
Definition: VMRouterCM.h:61
unsigned int seednumber
Definition: VMRouterCM.h:26
std::vector< std::pair< char, AllInnerStubsMemory * > > allinnerstubs_
Definition: VMRouterCM.h:65
std::vector< VMStubsMEMemory * > vmstubsMEPHI_
Definition: VMRouterCM.h:68
static std::string const input
Definition: EdmProvDump.cc:50
void execute(unsigned int iSector)
Definition: VMRouterCM.cc:115
std::vector< VMStubsTEPHICM > vmstubsTEPHI_
Definition: VMRouterCM.h:71
unsigned int overlapbits_
Definition: VMRouterCM.h:49
void addOutput(MemoryBase *memory, std::string output) override
Definition: VMRouterCM.cc:41
unsigned int nextrabits_
Definition: VMRouterCM.h:50
std::vector< VMStubsTEMemory * > vmstubmem
Definition: VMRouterCM.h:29
~VMRouterCM() override=default
TrackletLUT meTable_
Definition: VMRouterCM.h:57
Definition: output.py:1
void addInput(MemoryBase *memory, std::string input) override
Definition: VMRouterCM.cc:99
unsigned int layerdisk_
Definition: VMRouterCM.h:45
VMRouterCM(std::string name, Settings const &settings, Globals *global)
Definition: VMRouterCM.cc:17
std::vector< AllStubsMemory * > allstubs_
Definition: VMRouterCM.h:64