File indexing completed on 2023-03-17 11:10:59
0001 #ifndef L1Trigger_CSCTriggerPrimitives_LCTContainer_h
0002 #define L1Trigger_CSCTriggerPrimitives_LCTContainer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigi.h"
0013 #include "DataFormats/CSCDigi/interface/CSCConstants.h"
0014
0015 #include <vector>
0016 #include <algorithm>
0017
0018
0019
0020 class LCTContainer {
0021 public:
0022
0023 LCTContainer(unsigned int trig_window_size);
0024
0025
0026 LCTContainer() {}
0027
0028
0029
0030 CSCCorrelatedLCTDigi& operator()(int bx, int match_bx, int lct);
0031
0032
0033 void getTimeMatched(const int bx, std::vector<CSCCorrelatedLCTDigi>&) const;
0034
0035
0036 void getMatched(std::vector<CSCCorrelatedLCTDigi>&) const;
0037
0038
0039 void clear();
0040
0041 void setMatchTrigWindowSize(unsigned trig_window_size) { match_trig_window_size_ = trig_window_size; }
0042
0043 private:
0044
0045
0046
0047
0048 CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][CSCConstants::MAX_MATCH_WINDOW_SIZE]
0049 [CSCConstants::MAX_LCTS_PER_CSC];
0050
0051
0052 unsigned match_trig_window_size_;
0053 };
0054
0055 #endif