CMS 3D CMS Logo

DTCLinkMemory.h
Go to the documentation of this file.
1 // This class holds a list of stubs for an DTC 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_DTCLinkMemory_h
4 #define L1Trigger_TrackFindingTracklet_interface_DTCLinkMemory_h
5 
7 
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Globals;
14  class Stub;
15  class L1TStub;
16 
17  class DTCLinkMemory : public MemoryBase {
18  public:
19  DTCLinkMemory(std::string name, Settings const& settings, double, double);
20 
21  ~DTCLinkMemory() override = default;
22 
23  void addStub(const L1TStub& al1stub, const Stub& stub);
24 
25  unsigned int nStubs() const { return stubs_.size(); }
26 
27  Stub* getStub(unsigned int i) { return stubs_[i]; }
28 
29  void writeStubs(bool first, unsigned int iSector);
30 
31  void clean() override;
32 
33  private:
34  std::vector<Stub*> stubs_;
35  };
36 
37 }; // namespace trklet
38 #endif
mps_fire.i
i
Definition: mps_fire.py:428
trklet::DTCLinkMemory::stubs_
std::vector< Stub * > stubs_
Definition: DTCLinkMemory.h:34
trklet::Settings
Definition: Settings.h:52
trklet::L1TStub
Definition: L1TStub.h:14
trklet::DTCLinkMemory::writeStubs
void writeStubs(bool first, unsigned int iSector)
Definition: DTCLinkMemory.cc:29
trklet::DTCLinkMemory::getStub
Stub * getStub(unsigned int i)
Definition: DTCLinkMemory.h:27
trklet::Stub
Definition: Stub.h:18
trklet::DTCLinkMemory::nStubs
unsigned int nStubs() const
Definition: DTCLinkMemory.h:25
trklet::DTCLinkMemory
Definition: DTCLinkMemory.h:17
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::DTCLinkMemory::~DTCLinkMemory
~DTCLinkMemory() override=default
trklet::DTCLinkMemory::addStub
void addStub(const L1TStub &al1stub, const Stub &stub)
Definition: DTCLinkMemory.cc:19
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::DTCLinkMemory::clean
void clean() override
Definition: DTCLinkMemory.cc:65
trklet
Definition: AllInnerStubsMemory.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::DTCLinkMemory::DTCLinkMemory
DTCLinkMemory(std::string name, Settings const &settings, double, double)
Definition: DTCLinkMemory.cc:17
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17