CMS 3D CMS Logo

AllInnerStubsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_AllInnerStubsMemory_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 
17  public:
18  AllInnerStubsMemory(std::string name, Settings const& settings);
19 
20  ~AllInnerStubsMemory() 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, unsigned int iSector);
31 
32  private:
33  std::vector<const Stub*> stubs_;
34  };
35 
36 }; // namespace trklet
37 #endif
mps_fire.i
i
Definition: mps_fire.py:428
trklet::AllInnerStubsMemory::nStubs
unsigned int nStubs() const
Definition: AllInnerStubsMemory.h:24
trklet::AllInnerStubsMemory::writeStubs
void writeStubs(bool first, unsigned int iSector)
Definition: AllInnerStubsMemory.cc:11
trklet::Settings
Definition: Settings.h:52
trklet::L1TStub
Definition: L1TStub.h:14
trklet::AllInnerStubsMemory
Definition: AllInnerStubsMemory.h:16
trklet::AllInnerStubsMemory::~AllInnerStubsMemory
~AllInnerStubsMemory() override=default
trklet::AllInnerStubsMemory::addStub
void addStub(const Stub *stub)
Definition: AllInnerStubsMemory.h:22
trklet::Stub
Definition: Stub.h:18
trklet::AllInnerStubsMemory::getStub
const Stub * getStub(unsigned int i) const
Definition: AllInnerStubsMemory.h:26
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:125
trklet::AllInnerStubsMemory::AllInnerStubsMemory
AllInnerStubsMemory(std::string name, Settings const &settings)
Definition: AllInnerStubsMemory.cc:9
trklet::MemoryBase
Definition: MemoryBase.h:13
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::AllInnerStubsMemory::stubs_
std::vector< const Stub * > stubs_
Definition: AllInnerStubsMemory.h:33
trklet::AllInnerStubsMemory::clean
void clean() override
Definition: AllInnerStubsMemory.h:28