CMS 3D CMS Logo

DTCLink.h
Go to the documentation of this file.
1 // This class holds a list of stubs that are in a given layer and DCT region
2 #ifndef L1Trigger_TrackFindingTracklet_interface_DTCLink_h
3 #define L1Trigger_TrackFindingTracklet_interface_DTCLink_h
4 
7 
8 namespace trklet {
9 
10  class DTCLink {
11  public:
12  DTCLink(double phimin, double phimax);
13 
14  ~DTCLink() = default;
15 
16  void addStub(std::pair<Stub*, L1TStub*> stub);
17 
18  bool inRange(double phi, bool overlaplayer);
19 
20  unsigned int nStubs() const { return stubs_.size(); }
21 
22  Stub* getFPGAStub(unsigned int i) const { return stubs_[i].first; }
23  L1TStub* getL1TStub(unsigned int i) const { return stubs_[i].second; }
24  std::pair<Stub*, L1TStub*> getStub(unsigned int i) const { return stubs_[i]; }
25 
26  void clean() { stubs_.clear(); }
27 
28  private:
29  double phimin_;
30  double phimax_;
31  std::vector<std::pair<Stub*, L1TStub*> > stubs_;
32  };
33 }; // namespace trklet
34 #endif
L1TStub.h
mps_fire.i
i
Definition: mps_fire.py:355
phimin
float phimin
Definition: ReggeGribovPartonMCHadronizer.h:107
trklet::L1TStub
Definition: L1TStub.h:12
trklet::Stub
Definition: Stub.h:16
trklet
Definition: AllProjectionsMemory.h:9
phimax
float phimax
Definition: ReggeGribovPartonMCHadronizer.h:106
Stub.h