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
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
LCTContainer
Definition: LCTContainer.h:20
CSCCorrelatedLCTDigi.h
LCTContainer::operator()
CSCCorrelatedLCTDigi & operator()(int bx, int match_bx, int lct)
Definition: LCTContainer.cc:5
LCTContainer::getMatched
void getMatched(std::vector< CSCCorrelatedLCTDigi > &) const
Definition: LCTContainer.cc:23
CSCConstants::MAX_LCTS_PER_CSC
Definition: CSCConstants.h:75
CSCConstants.h
CSCConstants::MAX_LCT_TBINS
Definition: CSCConstants.h:65
LCTContainer::clear
void clear()
Definition: LCTContainer.cc:31
LCTContainer::match_trig_window_size_
const unsigned int match_trig_window_size_
Definition: LCTContainer.h:46
LCTContainer::getTimeMatched
void getTimeMatched(const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
Definition: LCTContainer.cc:7
CSCConstants::MAX_MATCH_WINDOW_SIZE
Definition: CSCConstants.h:67
LCTContainer::LCTContainer
LCTContainer(unsigned int trig_window_size)
Definition: LCTContainer.cc:3
LCTContainer::data
CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][CSCConstants::MAX_MATCH_WINDOW_SIZE][CSCConstants::MAX_LCTS_PER_CSC]
Definition: LCTContainer.h:43
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19