CMS 3D CMS Logo

AllStubsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_AllStubsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_AllStubsMemory_h
3 
5 
6 #include <utility>
7 #include <string>
8 #include <vector>
9 
10 namespace trklet {
11 
12  class Settings;
13  class Stub;
14  class L1TStub;
15 
16  class AllStubsMemory : public MemoryBase {
17  public:
18  AllStubsMemory(std::string name, Settings const& settings, unsigned int iSector);
19 
20  ~AllStubsMemory() override = default;
21 
22  void addStub(const Stub* stub) { stubs_.push_back(stub); }
23 
24  unsigned int nStubs() const { return stubs_.size(); }
25 
26  const Stub* getStub(unsigned int i) const { return stubs_[i]; }
27 
28  void clean() override { stubs_.clear(); }
29 
30  void writeStubs(bool first);
31 
32  private:
33  std::vector<const Stub*> stubs_;
34  };
35 
36 }; // namespace trklet
37 #endif
trklet::AllStubsMemory::AllStubsMemory
AllStubsMemory(std::string name, Settings const &settings, unsigned int iSector)
Definition: AllStubsMemory.cc:9
trklet::AllStubsMemory
Definition: AllStubsMemory.h:16
mps_fire.i
i
Definition: mps_fire.py:428
trklet::Settings
Definition: Settings.h:26
trklet::AllStubsMemory::stubs_
std::vector< const Stub * > stubs_
Definition: AllStubsMemory.h:33
dqmdumpme.first
first
Definition: dqmdumpme.py:55
trklet::Stub
Definition: Stub.h:16
trklet::AllStubsMemory::clean
void clean() override
Definition: AllStubsMemory.h:28
trklet::AllStubsMemory::nStubs
unsigned int nStubs() const
Definition: AllStubsMemory.h:24
trklet::AllStubsMemory::getStub
const Stub * getStub(unsigned int i) const
Definition: AllStubsMemory.h:26
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::AllStubsMemory::~AllStubsMemory
~AllStubsMemory() override=default
trklet
Definition: AllProjectionsMemory.h:9
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::AllStubsMemory::addStub
void addStub(const Stub *stub)
Definition: AllStubsMemory.h:22
trklet::AllStubsMemory::writeStubs
void writeStubs(bool first)
Definition: AllStubsMemory.cc:12