CMS 3D CMS Logo

LCTContainer.h
Go to the documentation of this file.
1 #ifndef L1Trigger_CSCTriggerPrimitives_LCTContainer_h
2 #define L1Trigger_CSCTriggerPrimitives_LCTContainer_h
3 
14 
15 #include <vector>
16 #include <algorithm>
17 
20 class LCTContainer {
21 public:
22  // constructor
23  LCTContainer(unsigned int trig_window_size);
24 
25  // access the LCT in a particular ALCT BX, a particular CLCT matched BX
26  // and particular LCT number
27  CSCCorrelatedLCTDigi& operator()(int bx, int match_bx, int lct);
28 
29  // get the matching LCTs for a certain ALCT BX
30  void getTimeMatched(const int bx, std::vector<CSCCorrelatedLCTDigi>&) const;
31 
32  // get all LCTs in the 16 BX readout window
33  void getMatched(std::vector<CSCCorrelatedLCTDigi>&) const;
34 
35  // clear the array with stubs
36  void clear();
37 
38  // array with stored LCTs
39  // 1st index: depth of pipeline that stores the ALCT and CLCT
40  // 2nd index: BX number of the ALCT-CLCT match in the matching window
41  // 3rd index: LCT number in the time bin
44 
45  // matching trigger window
46  const unsigned int match_trig_window_size_;
47 };
48 
49 #endif
const unsigned int match_trig_window_size_
Definition: LCTContainer.h:46
LCTContainer(unsigned int trig_window_size)
Definition: LCTContainer.cc:3
void getMatched(std::vector< CSCCorrelatedLCTDigi > &) const
Definition: LCTContainer.cc:23
CSCCorrelatedLCTDigi & operator()(int bx, int match_bx, int lct)
Definition: LCTContainer.cc:5
void getTimeMatched(const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
Definition: LCTContainer.cc:7
CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][CSCConstants::MAX_MATCH_WINDOW_SIZE][CSCConstants::MAX_LCTS_PER_CSC]
Definition: LCTContainer.h:43