CMS 3D CMS Logo

VMRouter.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)
2 #ifndef L1Trigger_TrackFindingTracklet_interface_VMRouter_h
3 #define L1Trigger_TrackFindingTracklet_interface_VMRouter_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 VMStubsMEMemory;
21  class VMStubsTEMemory;
22 
23  struct VMStubsTEPHI {
24  VMStubsTEPHI(unsigned int seednumber_,
25  unsigned int stubposition_,
26  std::vector<std::vector<VMStubsTEMemory*> > vmstubmem_)
27  : seednumber(seednumber_), stubposition(stubposition_), vmstubmem(vmstubmem_){};
28 
29  unsigned int seednumber; //seed number [0,11]
30  unsigned int stubposition; //stub position in the seed
31  std::vector<std::vector<VMStubsTEMemory*> >
32  vmstubmem; // m_vmstubmem[iVM][n] is the VMStubsTEMemory for iVM and the nth copy
33  };
34 
35  class VMRouter : public ProcessBase {
36  public:
37  VMRouter(std::string name, Settings const& settings, Globals* global, unsigned int iSector);
38 
39  ~VMRouter() override = default;
40 
41  void addOutput(MemoryBase* memory, std::string output) override;
42  void addInput(MemoryBase* memory, std::string input) override;
43 
44  void execute();
45 
46  private:
47  //0-5 are the layers and 6-10 are the disks
48  unsigned int layerdisk_;
49 
50  //overlapbits_ is the top bits of phicorr used to add or subtract one to see if stub should be added to
51  //two VMs. nextrabits_ is the number of bits beyond the bits for the phivm that is used by overlapbits_
52  unsigned int overlapbits_;
53  unsigned int nextrabits_;
54 
57 
59 
60  //The input stub memories
61  std::vector<InputLinkMemory*> stubinputs_;
62 
63  //The all stub memories
64  std::vector<AllStubsMemory*> allstubs_;
65 
66  //The VM stubs memories used by the MEs
67  std::vector<VMStubsMEMemory*> vmstubsMEPHI_;
68 
69  //The VM stubs memories used by the TEs (using structure defined above)
70  std::vector<VMStubsTEPHI> vmstubsTEPHI_;
71  };
72 }; // namespace trklet
73 #endif
trklet::VMStubsTEPHI::vmstubmem
std::vector< std::vector< VMStubsTEMemory * > > vmstubmem
Definition: VMRouter.h:32
trklet::VMRouter::nextrabits_
unsigned int nextrabits_
Definition: VMRouter.h:53
trklet::VMRouter::VMRouter
VMRouter(std::string name, Settings const &settings, Globals *global, unsigned int iSector)
Definition: VMRouter.cc:16
input
static const std::string input
Definition: EdmProvDump.cc:48
trklet::VMRouterTable
Definition: VMRouterTable.h:16
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
VMRouterTable.h
trklet::VMRouter::~VMRouter
~VMRouter() override=default
trklet::Settings
Definition: Settings.h:26
trklet::VMRouter::vmrtable_
VMRouterTable vmrtable_
Definition: VMRouter.h:58
trklet::Globals
Definition: Globals.h:32
FPGAWord.h
trklet::VMRouter::overlapbits_
unsigned int overlapbits_
Definition: VMRouter.h:52
trklet::VMRouter::vmstubsTEPHI_
std::vector< VMStubsTEPHI > vmstubsTEPHI_
Definition: VMRouter.h:70
trklet::VMRouter::layerdisk_
unsigned int layerdisk_
Definition: VMRouter.h:48
trklet::VMRouter::execute
void execute()
Definition: VMRouter.cc:146
trklet::VMRouter::allstubs_
std::vector< AllStubsMemory * > allstubs_
Definition: VMRouter.h:64
trklet::VMRouter::nbitsrfinebintable_
int nbitsrfinebintable_
Definition: VMRouter.h:56
trklet::VMStubsTEPHI::stubposition
unsigned int stubposition
Definition: VMRouter.h:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::VMRouter::stubinputs_
std::vector< InputLinkMemory * > stubinputs_
Definition: VMRouter.h:61
trklet::MemoryBase
Definition: MemoryBase.h:13
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
trklet
Definition: AllProjectionsMemory.h:9
trklet::VMRouter::nbitszfinebintable_
int nbitszfinebintable_
Definition: VMRouter.h:55
ProcessBase.h
trklet::ProcessBase
Definition: ProcessBase.h:12
mps_setup.memory
memory
Definition: mps_setup.py:156
trklet::VMRouter::addInput
void addInput(MemoryBase *memory, std::string input) override
Definition: VMRouter.cc:130
trklet::VMStubsTEPHI::seednumber
unsigned int seednumber
Definition: VMRouter.h:27
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::VMRouter::vmstubsMEPHI_
std::vector< VMStubsMEMemory * > vmstubsMEPHI_
Definition: VMRouter.h:67
trklet::VMStubsTEPHI
Definition: VMRouter.h:23
trklet::VMRouter
Definition: VMRouter.h:35
trklet::VMRouter::addOutput
void addOutput(MemoryBase *memory, std::string output) override
Definition: VMRouter.cc:31
trklet::VMStubsTEPHI::VMStubsTEPHI
VMStubsTEPHI(unsigned int seednumber_, unsigned int stubposition_, std::vector< std::vector< VMStubsTEMemory * > > vmstubmem_)
Definition: VMRouter.h:24