CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  // default constructor
27 
28  // access the LCT in a particular ALCT BX, a particular CLCT matched BX
29  // and particular LCT number
30  CSCCorrelatedLCTDigi& operator()(int bx, int match_bx, int lct);
31 
32  // get the matching LCTs for a certain ALCT BX
33  void getTimeMatched(const int bx, std::vector<CSCCorrelatedLCTDigi>&) const;
34 
35  // get all LCTs in the 16 BX readout window
36  void getMatched(std::vector<CSCCorrelatedLCTDigi>&) const;
37 
38  // clear the array with stubs
39  void clear();
40 
41  void setMatchTrigWindowSize(unsigned trig_window_size) { match_trig_window_size_ = trig_window_size; }
42 
43 private:
44  // array with stored LCTs
45  // 1st index: depth of pipeline that stores the ALCT and CLCT
46  // 2nd index: BX number of the ALCT-CLCT match in the matching window
47  // 3rd index: LCT number in the time bin
50 
51  // matching trigger window
53 };
54 
55 #endif
void getMatched(std::vector< CSCCorrelatedLCTDigi > &) const
Definition: LCTContainer.cc:23
void setMatchTrigWindowSize(unsigned trig_window_size)
Definition: LCTContainer.h:41
CSCCorrelatedLCTDigi & operator()(int bx, int match_bx, int lct)
Definition: LCTContainer.cc:5
unsigned match_trig_window_size_
Definition: LCTContainer.h:52
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:49