CMS 3D CMS Logo

StubStreamData.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTracklet_interface_StubStreamData_h
2 #define L1Trigger_TrackFindingTracklet_interface_StubStreamData_h
3 
5 
6 #include <string>
7 
8 // Represents an element of the bit-accurate stub stream from TrackBuilder output
9 // (This class only needed to support stand-alone running of this code).
10 
11 namespace trklet {
12 
13  class L1TStub;
14 
16  public:
18 
21 
22  ~StubStreamData() = default;
23 
24  int iSeed() const { return iSeed_; } // Seed type
25  bool valid() const { return (iSeed_ >= 0); } // Valid stub
26  const L1TStub& stub() const { return stub_; }
27  // String with bits of valid bit + r coordinate + phi residual + r or z residual.
28  const std::string& dataBits() const { return dataBits_; }
29 
30  private:
31  int iSeed_{-1};
34  };
35 }; // namespace trklet
36 #endif
StubStreamData(int iSeed, const L1TStub &stub, const std::string &dataBits)
const std::string & dataBits() const
const L1TStub & stub() const