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 
16  class InputLinkMemory : public MemoryBase {
17  public:
18  InputLinkMemory(std::string name, Settings const& settings, double, double);
19 
20  ~InputLinkMemory() override = default;
21 
22  void addStub(Stub* stub);
23 
24  unsigned int nStubs() const { return stubs_.size(); }
25 
26  Stub* getStub(unsigned int i) { return stubs_[i]; }
27 
28  void writeStubs(bool first, unsigned int iSector);
29 
30  void clean() override;
31 
32  private:
33  std::vector<Stub*> stubs_;
34  };
35 
36 }; // namespace trklet
37 #endif
trklet::InputLinkMemory::~InputLinkMemory
~InputLinkMemory() override=default
mps_fire.i
i
Definition: mps_fire.py:428
trklet::InputLinkMemory::clean
void clean() override
Definition: InputLinkMemory.cc:33
trklet::InputLinkMemory::getStub
Stub * getStub(unsigned int i)
Definition: InputLinkMemory.h:26
trklet::Settings
Definition: Settings.h:52
trklet::InputLinkMemory::stubs_
std::vector< Stub * > stubs_
Definition: InputLinkMemory.h:33
trklet::InputLinkMemory
Definition: InputLinkMemory.h:16
trklet::Stub
Definition: Stub.h:18
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::InputLinkMemory::addStub
void addStub(Stub *stub)
Definition: InputLinkMemory.cc:17
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::InputLinkMemory::writeStubs
void writeStubs(bool first, unsigned int iSector)
Definition: InputLinkMemory.cc:19
trklet::InputLinkMemory::nStubs
unsigned int nStubs() const
Definition: InputLinkMemory.h:24
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::InputLinkMemory::InputLinkMemory
InputLinkMemory(std::string name, Settings const &settings, double, double)
Definition: InputLinkMemory.cc:15