CMS 3D CMS Logo

L1MuBMDataBuffer.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
15 //
16 //--------------------------------------------------
17 #ifndef L1MUBM_DATA_BUFFER_H
18 #define L1MUBM_DATA_BUFFER_H
19 
20 //---------------
21 // C++ Headers --
22 //---------------
23 
24 #include <vector>
25 
26 //----------------------
27 // Base Class Headers --
28 //----------------------
29 
30 //------------------------------------
31 // Collaborating Class Declarations --
32 //------------------------------------
33 
35 class L1MuBMTrackSegPhi;
36 
37 // ---------------------
38 // -- Class Interface --
39 // ---------------------
40 
42 public:
44  typedef std::vector<L1MuBMTrackSegPhi*> TSPhivector;
45 
48 
50  virtual ~L1MuBMDataBuffer();
51 
53  void reset();
54 
56  const TSPhivector& getTSphi() const { return *m_tsphi; }
57 
59  const L1MuBMTrackSegPhi* getTSphi(int station, int address) const;
60 
62  void addTSphi(int adr, const L1MuBMTrackSegPhi&);
63 
65  void printTSphi() const;
66 
68  int numberTSphi() const;
69 
70 private:
73 };
74 
75 #endif
L1MuBMDataBuffer::getTSphi
const TSPhivector & getTSphi() const
get all track segments from the buffer
Definition: L1MuBMDataBuffer.h:56
L1MuBMTrackSegPhi
Definition: L1MuBMTrackSegPhi.h:41
L1MuBMDataBuffer::m_sp
const L1MuBMSectorProcessor & m_sp
Definition: L1MuBMDataBuffer.h:71
relativeConstraints.station
station
Definition: relativeConstraints.py:67
L1MuBMDataBuffer::m_tsphi
TSPhivector * m_tsphi
Definition: L1MuBMDataBuffer.h:72
L1MuBMDataBuffer::L1MuBMDataBuffer
L1MuBMDataBuffer(const L1MuBMSectorProcessor &)
constructor
Definition: L1MuBMDataBuffer.cc:46
L1MuBMDataBuffer::~L1MuBMDataBuffer
virtual ~L1MuBMDataBuffer()
destructor
Definition: L1MuBMDataBuffer.cc:54
L1MuBMSectorProcessor
Definition: L1MuBMSectorProcessor.h:54
L1MuBMDataBuffer::printTSphi
void printTSphi() const
print all phi track segments which are in the buffer
Definition: L1MuBMDataBuffer.cc:93
L1MuBMDataBuffer
Definition: L1MuBMDataBuffer.h:41
L1MuBMDataBuffer::addTSphi
void addTSphi(int adr, const L1MuBMTrackSegPhi &)
add new phi track segment to the Data Buffer
Definition: L1MuBMDataBuffer.cc:85
L1MuBMDataBuffer::numberTSphi
int numberTSphi() const
return number of non-empty phi track segments
Definition: L1MuBMDataBuffer.cc:105
L1MuBMDataBuffer::reset
void reset()
clear Data Buffer
Definition: L1MuBMDataBuffer.cc:63
L1MuBMDataBuffer::TSPhivector
std::vector< L1MuBMTrackSegPhi * > TSPhivector
container to store phi track segments
Definition: L1MuBMDataBuffer.h:44