L1Trigger
CSCTriggerPrimitives
interface
LCTContainer.h
Go to the documentation of this file.
1
#ifndef L1Trigger_CSCTriggerPrimitives_LCTContainer_h
2
#define L1Trigger_CSCTriggerPrimitives_LCTContainer_h
3
12
#include "
DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigi.h
"
13
#include "
DataFormats/CSCDigi/interface/CSCConstants.h
"
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
26
LCTContainer
() {}
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
48
CSCCorrelatedLCTDigi
data
[
CSCConstants::MAX_LCT_TBINS
][
CSCConstants::MAX_MATCH_WINDOW_SIZE
]
49
[
CSCConstants::MAX_LCTS_PER_CSC
];
50
51
// matching trigger window
52
unsigned
match_trig_window_size_
;
53
};
54
55
#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:138
CSCConstants.h
CSCConstants::MAX_LCT_TBINS
Definition:
CSCConstants.h:128
LCTContainer::clear
void clear()
Definition:
LCTContainer.cc:31
LCTContainer::getTimeMatched
void getTimeMatched(const int bx, std::vector< CSCCorrelatedLCTDigi > &) const
Definition:
LCTContainer.cc:7
LCTContainer::LCTContainer
LCTContainer()
Definition:
LCTContainer.h:26
CSCConstants::MAX_MATCH_WINDOW_SIZE
Definition:
CSCConstants.h:130
LCTContainer::match_trig_window_size_
unsigned match_trig_window_size_
Definition:
LCTContainer.h:52
LCTContainer::setMatchTrigWindowSize
void setMatchTrigWindowSize(unsigned trig_window_size)
Definition:
LCTContainer.h:41
LCTContainer::data
CSCCorrelatedLCTDigi data[CSCConstants::MAX_LCT_TBINS][CSCConstants::MAX_MATCH_WINDOW_SIZE][CSCConstants::MAX_LCTS_PER_CSC]
Definition:
LCTContainer.h:49
CSCCorrelatedLCTDigi
Definition:
CSCCorrelatedLCTDigi.h:19
Generated for CMSSW Reference Manual by
1.8.16