L1Trigger
L1TMuonBarrel
src
L1MuBMEtaProcessor.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
17
//
18
//--------------------------------------------------
19
#ifndef L1MUBM_ETA_PROCESSOR_H
20
#define L1MUBM_ETA_PROCESSOR_H
21
22
//---------------
23
// C++ Headers --
24
//---------------
25
26
#include <vector>
27
28
//----------------------
29
// Base Class Headers --
30
//----------------------
31
32
//------------------------------------
33
// Collaborating Class Declarations --
34
//------------------------------------
35
36
#include <
DataFormats/Common/interface/Handle.h
>
37
#include <
FWCore/Framework/interface/Event.h
>
38
#include <
FWCore/Framework/interface/ESHandle.h
>
39
#include <
FWCore/Framework/interface/EventSetup.h
>
40
#include "
FWCore/Utilities/interface/EDGetToken.h
"
41
#include "
DataFormats/L1TMuon/interface/BMTF/L1MuBMAddressArray.h
"
42
#include "
DataFormats/L1DTTrackFinder/interface/L1MuDTChambThDigi.h
"
43
#include "
DataFormats/L1DTTrackFinder/interface/L1MuDTChambThContainer.h
"
44
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
45
#include "
CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h
"
46
#include "
CondFormats/DataRecord/interface/L1TMuonBarrelParamsRcd.h
"
47
48
#include "
L1Trigger/L1TMuonBarrel/interface/L1MuBMTQualPatternLut.h
"
49
#include "
L1Trigger/L1TMuonBarrel/interface/L1MuBMTEtaPatternLut.h
"
50
51
class
L1MuBMTrackSegEta
;
52
class
L1MuBMTrackFinder
;
53
class
L1MuBMTrack
;
54
class
L1MuBMTEtaPatternLut
;
55
class
L1MuBMTQualPatternLut
;
56
class
L1MuDTTFMasks
;
57
58
// ---------------------
59
// -- Class Interface --
60
// ---------------------
61
62
class
L1MuBMEtaProcessor
{
63
public
:
65
L1MuBMEtaProcessor
(
const
L1MuBMTrackFinder
&,
int
id
,
edm::ConsumesCollector
&& iC);
66
68
virtual
~L1MuBMEtaProcessor
();
69
71
inline
int
id
()
const
{
return
m_epid
; }
72
74
virtual
void
run
(
int
bx
,
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
);
75
77
virtual
void
reset
();
78
80
void
print
()
const
;
81
83
inline
const
L1MuBMTrackFinder
&
tf
()
const
{
return
m_tf
; }
84
86
inline
int
eta
(
int
id
)
const
{
return
m_eta
[
id
]; }
87
89
inline
bool
fineBit
(
int
id
)
const
{
return
m_fine
[
id
]; }
90
91
private
:
93
void
receiveData
(
int
bx
,
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
);
94
96
void
receiveAddresses
();
97
99
void
runEtaTrackFinder
(
const
edm::EventSetup
&
c
);
100
102
void
runEtaMatchingUnit
(
const
edm::EventSetup
&
c
);
103
105
void
assign
();
106
108
static
int
quality
(
int
id
,
int
stat
);
109
110
private
:
111
const
L1MuBMTrackFinder
&
m_tf
;
112
int
m_epid
;
113
114
int
m_mask
;
115
116
int
m_eta
[12];
117
bool
m_fine
[12];
118
119
std::vector<int>
m_foundPattern
;
120
int
m_pattern
[12];
121
122
int
m_address
[12];
123
L1MuBMTrack
*
m_TrackCand
[12];
124
L1MuBMTrack
*
m_TracKCand
[12];
125
std::vector<const L1MuBMTrackSegEta*>
m_tseta
;
126
127
//edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT; // ETF look-up table
128
//edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT; // EMU look-up tables
129
//edm::ESHandle< L1MuDTTFMasks > msks;
130
edm::ESHandle<L1TMuonBarrelParams>
bmtfParamsHandle
;
131
L1MuDTTFMasks
msks
;
132
L1MuBMTEtaPatternLut
theEtaPatternLUT
;
// ETF look-up table
133
L1MuBMTQualPatternLut
theQualPatternLUT
;
// EMU look-up tables
134
135
edm::EDGetTokenT<L1MuDTChambThContainer>
m_DTDigiToken
;
136
};
137
138
#endif
L1MuBMEtaProcessor::m_TrackCand
L1MuBMTrack * m_TrackCand[12]
Definition:
L1MuBMEtaProcessor.h:123
L1MuBMTrackSegEta
Definition:
L1MuBMTrackSegEta.h:41
L1MuBMEtaProcessor
Definition:
L1MuBMEtaProcessor.h:62
Handle.h
L1MuBMEtaProcessor::id
int id() const
return Eta Processor identifier (0-11)
Definition:
L1MuBMEtaProcessor.h:71
L1MuDTChambThDigi.h
ESHandle.h
L1MuBMEtaProcessor::m_tseta
std::vector< const L1MuBMTrackSegEta * > m_tseta
Definition:
L1MuBMEtaProcessor.h:125
edm::EDGetTokenT< L1MuDTChambThContainer >
L1TMuonBarrelParams.h
L1MuBMEtaProcessor::theQualPatternLUT
L1MuBMTQualPatternLut theQualPatternLUT
Definition:
L1MuBMEtaProcessor.h:133
l1GtPatternGenerator_cfi.bx
bx
Definition:
l1GtPatternGenerator_cfi.py:18
L1MuBMEtaProcessor::runEtaTrackFinder
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
Definition:
L1MuBMEtaProcessor.cc:311
L1MuBMEtaProcessor::bmtfParamsHandle
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
Definition:
L1MuBMEtaProcessor.h:130
L1MuBMEtaProcessor::m_DTDigiToken
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
Definition:
L1MuBMEtaProcessor.h:135
L1MuBMTEtaPatternLut
Definition:
L1MuBMTEtaPatternLut.h:41
L1MuDTTFMasks
Definition:
L1MuDTTFMasks.h:36
L1MuBMEtaProcessor::tf
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
Definition:
L1MuBMEtaProcessor.h:83
L1MuDTChambThContainer.h
L1MuBMEtaProcessor::print
void print() const
print muon candidates found by the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:130
L1MuBMEtaProcessor::fineBit
bool fineBit(int id) const
return fine bit, index [0,11]
Definition:
L1MuBMEtaProcessor.h:89
L1MuBMEtaProcessor::~L1MuBMEtaProcessor
virtual ~L1MuBMEtaProcessor()
destructor
Definition:
L1MuBMEtaProcessor.cc:77
L1MuBMEtaProcessor::m_TracKCand
L1MuBMTrack * m_TracKCand[12]
Definition:
L1MuBMEtaProcessor.h:124
L1MuBMEtaProcessor::m_mask
int m_mask
Definition:
L1MuBMEtaProcessor.h:114
edm::ESHandle< L1TMuonBarrelParams >
L1MuBMEtaProcessor::m_epid
int m_epid
Definition:
L1MuBMEtaProcessor.h:112
L1MuBMEtaProcessor::m_pattern
int m_pattern[12]
Definition:
L1MuBMEtaProcessor.h:120
L1MuBMEtaProcessor::msks
L1MuDTTFMasks msks
Definition:
L1MuBMEtaProcessor.h:131
EDGetToken.h
L1TMuonBarrelParamsRcd.h
L1MuBMEtaProcessor::quality
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
Definition:
L1MuBMEtaProcessor.cc:463
L1MuBMEtaProcessor::eta
int eta(int id) const
return eta values, index [0,11]
Definition:
L1MuBMEtaProcessor.h:86
L1MuBMEtaProcessor::m_tf
const L1MuBMTrackFinder & m_tf
Definition:
L1MuBMEtaProcessor.h:111
Event.h
L1MuBMEtaProcessor::m_eta
int m_eta[12]
Definition:
L1MuBMEtaProcessor.h:116
L1MuBMEtaProcessor::run
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:86
L1MuBMEtaProcessor::m_address
int m_address[12]
Definition:
L1MuBMEtaProcessor.h:122
L1MuBMTrack
Definition:
L1MuBMTrack.h:49
L1MuBMEtaProcessor::receiveAddresses
void receiveAddresses()
receive addresses (from 6 Sector Processors)
Definition:
L1MuBMEtaProcessor.cc:282
edm::EventSetup
Definition:
EventSetup.h:58
L1MuBMEtaProcessor::receiveData
void receiveData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive data (eta trigger primitives)
Definition:
L1MuBMEtaProcessor.cc:211
L1MuBMEtaProcessor::m_fine
bool m_fine[12]
Definition:
L1MuBMEtaProcessor.h:117
L1MuBMEtaProcessor::m_foundPattern
std::vector< int > m_foundPattern
Definition:
L1MuBMEtaProcessor.h:119
L1MuBMTQualPatternLut.h
L1MuBMEtaProcessor::assign
void assign()
assign eta and etaFineBit
Definition:
L1MuBMEtaProcessor.cc:429
L1MuBMEtaProcessor::L1MuBMEtaProcessor
L1MuBMEtaProcessor(const L1MuBMTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
Definition:
L1MuBMEtaProcessor.cc:64
L1MuBMEtaProcessor::runEtaMatchingUnit
void runEtaMatchingUnit(const edm::EventSetup &c)
run Eta Matching Unit (EMU)
Definition:
L1MuBMEtaProcessor.cc:361
L1MuBMEtaProcessor::reset
virtual void reset()
reset the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:101
L1MuBMTEtaPatternLut.h
EventSetup.h
L1MuBMTQualPatternLut
Definition:
L1MuBMTQualPatternLut.h:42
L1MuBMEtaProcessor::theEtaPatternLUT
L1MuBMTEtaPatternLut theEtaPatternLUT
Definition:
L1MuBMEtaProcessor.h:132
ConsumesCollector.h
L1MuBMAddressArray.h
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:46
edm_modernize_messagelogger.stat
stat
Definition:
edm_modernize_messagelogger.py:27
edm::Event
Definition:
Event.h:73
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
L1MuBMTrackFinder
Definition:
L1MuBMTrackFinder.h:66
Generated for CMSSW Reference Manual by
1.8.16