CMS 3D CMS Logo

StubTripletsMemory.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_StubTripletsMemory_h
2 #define L1Trigger_TrackFindingTracklet_interface_StubTripletsMemory_h
3 
5 
6 #include <vector>
7 
8 namespace trklet {
9 
10  class Settings;
11  class Stub;
12  class L1TStub;
13 
14  class StubTripletsMemory : public MemoryBase {
15  public:
16  StubTripletsMemory(std::string name, Settings const& settings, unsigned int iSector);
17 
18  ~StubTripletsMemory() override = default;
19 
20  void addStubs(const Stub* stub1, const Stub* stub2, const Stub* stub3) {
21  stubs1_.push_back(stub1);
22  stubs2_.push_back(stub2);
23  stubs3_.push_back(stub3);
24  }
25 
26  unsigned int nStubTriplets() const { return stubs1_.size(); }
27 
28  const Stub* getFPGAStub1(unsigned int i) const { return stubs1_[i]; }
29  const Stub* getFPGAStub2(unsigned int i) const { return stubs2_[i]; }
30  const Stub* getFPGAStub3(unsigned int i) const { return stubs3_[i]; }
31 
32  void clean() override {
33  stubs1_.clear();
34  stubs2_.clear();
35  stubs3_.clear();
36  }
37 
38  void writeST(bool first);
39 
40  private:
41  std::vector<const Stub*> stubs1_;
42  std::vector<const Stub*> stubs2_;
43  std::vector<const Stub*> stubs3_;
44  };
45 
46 }; // namespace trklet
47 #endif
trklet::StubTripletsMemory::getFPGAStub2
const Stub * getFPGAStub2(unsigned int i) const
Definition: StubTripletsMemory.h:29
mps_fire.i
i
Definition: mps_fire.py:428
trklet::StubTripletsMemory::getFPGAStub1
const Stub * getFPGAStub1(unsigned int i) const
Definition: StubTripletsMemory.h:28
trklet::StubTripletsMemory::writeST
void writeST(bool first)
Definition: StubTripletsMemory.cc:13
trklet::Settings
Definition: Settings.h:31
trklet::StubTripletsMemory::nStubTriplets
unsigned int nStubTriplets() const
Definition: StubTripletsMemory.h:26
trklet::StubTripletsMemory::stubs3_
std::vector< const Stub * > stubs3_
Definition: StubTripletsMemory.h:43
trklet::Stub
Definition: Stub.h:16
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::MemoryBase
Definition: MemoryBase.h:13
trklet::StubTripletsMemory::stubs1_
std::vector< const Stub * > stubs1_
Definition: StubTripletsMemory.h:41
trklet::StubTripletsMemory::clean
void clean() override
Definition: StubTripletsMemory.h:32
trklet
Definition: AllProjectionsMemory.h:9
trklet::StubTripletsMemory::~StubTripletsMemory
~StubTripletsMemory() override=default
trklet::StubTripletsMemory::getFPGAStub3
const Stub * getFPGAStub3(unsigned int i) const
Definition: StubTripletsMemory.h:30
trklet::StubTripletsMemory::StubTripletsMemory
StubTripletsMemory(std::string name, Settings const &settings, unsigned int iSector)
Definition: StubTripletsMemory.cc:10
MemoryBase.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trklet::StubTripletsMemory::addStubs
void addStubs(const Stub *stub1, const Stub *stub2, const Stub *stub3)
Definition: StubTripletsMemory.h:20
trklet::StubTripletsMemory
Definition: StubTripletsMemory.h:14
trklet::StubTripletsMemory::stubs2_
std::vector< const Stub * > stubs2_
Definition: StubTripletsMemory.h:42