CMS 3D CMS Logo

InputLinkMemory.h
Go to the documentation of this file.
1 // This class holds a list of stubs for an input link.
2 // This modules 'owns' the pointers to the stubs. All subsequent modules that handles stubs uses a pointer to the original stored here.
3 #ifndef L1Trigger_TrackFindingTracklet_interface_InputLinkMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_InputLinkMemory_h
5 
7 
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Globals;
14  class Stub;
15  class L1TStub;
16  class VMRouterPhiCorrTable;
17 
18  class InputLinkMemory : public MemoryBase {
19  public:
20  InputLinkMemory(std::string name, Settings const& settings, unsigned int iSector, double, double);
21 
22  ~InputLinkMemory() override = default;
23 
24  bool addStub(Settings const& settings, Globals* globals, L1TStub& al1stub, Stub& stub, std::string dtc);
25 
26  unsigned int nStubs() const { return stubs_.size(); }
27 
28  Stub* getStub(unsigned int i) { return stubs_[i]; }
29 
30  void writeStubs(bool first);
31 
32  void clean() override;
33 
34  private:
35  std::vector<Stub*> stubs_;
37  unsigned int layerdisk_;
38  };
39 
40 }; // namespace trklet
41 #endif
trklet::InputLinkMemory::InputLinkMemory
InputLinkMemory(std::string name, Settings const &settings, unsigned int iSector, double, double)
Definition: InputLinkMemory.cc:17
trklet::InputLinkMemory::~InputLinkMemory
~InputLinkMemory() override=default
mps_fire.i
i
Definition: mps_fire.py:428
trklet::InputLinkMemory::clean
void clean() override
Definition: InputLinkMemory.cc:100
trklet::InputLinkMemory::getStub
Stub * getStub(unsigned int i)
Definition: InputLinkMemory.h:28
trklet::Settings
Definition: Settings.h:26
trklet::L1TStub
Definition: L1TStub.h:12
trklet::InputLinkMemory::stubs_
std::vector< Stub * > stubs_
Definition: InputLinkMemory.h:35
trklet::Globals
Definition: Globals.h:32
dqmdumpme.first
first
Definition: dqmdumpme.py:55
trklet::InputLinkMemory::addStub
bool addStub(Settings const &settings, Globals *globals, L1TStub &al1stub, Stub &stub, std::string dtc)
Definition: InputLinkMemory.cc:26
trklet::InputLinkMemory::phiregion_
int phiregion_
Definition: InputLinkMemory.h:36
trklet::InputLinkMemory
Definition: InputLinkMemory.h:18
trklet::Stub
Definition: Stub.h:16
trklet::InputLinkMemory::writeStubs
void writeStubs(bool first)
Definition: InputLinkMemory.cc:88
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::InputLinkMemory::nStubs
unsigned int nStubs() const
Definition: InputLinkMemory.h:26
trklet
Definition: AllProjectionsMemory.h:9
trklet::InputLinkMemory::layerdisk_
unsigned int layerdisk_
Definition: InputLinkMemory.h:37
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17