Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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 "
L1Trigger/L1TMuonBarrel/src/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 "
CondFormats/L1TObjects/interface/L1MuDTQualPatternLut.h
"
49
#include "
CondFormats/L1TObjects/interface/L1MuDTEtaPatternLut.h
"
50
51
class
L1MuBMTrackSegEta
;
52
class
L1MuBMTrackFinder
;
53
class
L1MuBMTrack
;
54
class
L1MuDTEtaPatternLut
;
55
class
L1MuDTQualPatternLut
;
56
class
L1MuDTTFMasks
;
57
58
// ---------------------
59
// -- Class Interface --
60
// ---------------------
61
62
class
L1MuBMEtaProcessor
{
63
64
public
:
65
67
L1MuBMEtaProcessor
(
const
L1MuBMTrackFinder
&,
int
id
,
edm::ConsumesCollector
&& iC );
68
70
virtual
~L1MuBMEtaProcessor
();
71
73
inline
int
id
()
const
{
return
m_epid
; }
74
76
virtual
void
run
(
int
bx,
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
);
77
79
virtual
void
reset
();
80
82
void
print
()
const
;
83
85
inline
const
L1MuBMTrackFinder
&
tf
()
const
{
return
m_tf
; }
86
88
inline
int
eta
(
int
id
)
const
{
return
m_eta
[
id
]; }
89
91
inline
bool
fineBit
(
int
id
)
const
{
return
m_fine
[
id
]; }
92
93
private
:
94
96
void
receiveData
(
int
bx,
const
edm::Event
&
e
,
const
edm::EventSetup
&
c
);
97
99
void
receiveAddresses
();
100
102
void
runEtaTrackFinder
(
const
edm::EventSetup
&
c
);
103
105
void
runEtaMatchingUnit
(
const
edm::EventSetup
&
c
);
106
108
void
assign
();
109
111
static
int
quality
(
int
id
,
int
stat);
112
113
private
:
114
115
const
L1MuBMTrackFinder
&
m_tf
;
116
int
m_epid
;
117
118
int
m_mask
;
119
120
int
m_eta
[12];
121
bool
m_fine
[12];
122
123
std::vector<int>
m_foundPattern
;
124
int
m_pattern
[12];
125
126
int
m_address
[12];
127
L1MuBMTrack
*
m_TrackCand
[12];
128
L1MuBMTrack
*
m_TracKCand
[12];
129
std::vector<const L1MuBMTrackSegEta*>
m_tseta
;
130
131
//edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT; // ETF look-up table
132
//edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT; // EMU look-up tables
133
//edm::ESHandle< L1MuDTTFMasks > msks;
134
edm::ESHandle< L1TMuonBarrelParams >
bmtfParamsHandle
;
135
L1MuDTTFMasks
msks
;
136
L1MuDTEtaPatternLut
theEtaPatternLUT
;
// ETF look-up table
137
L1MuDTQualPatternLut
theQualPatternLUT
;
// EMU look-up tables
138
139
edm::EDGetTokenT<L1MuDTChambThContainer>
m_DTDigiToken
;
140
141
};
142
143
#endif
L1MuBMEtaProcessor::tf
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
Definition:
L1MuBMEtaProcessor.h:85
L1MuDTChambThDigi.h
L1MuBMEtaProcessor::bmtfParamsHandle
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
Definition:
L1MuBMEtaProcessor.h:134
L1MuBMEtaProcessor::m_tf
const L1MuBMTrackFinder & m_tf
Definition:
L1MuBMEtaProcessor.h:115
EDGetToken.h
L1MuDTTFMasks
Definition:
L1MuDTTFMasks.h:40
L1MuBMEtaProcessor::run
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:84
L1MuBMEtaProcessor::theQualPatternLUT
L1MuDTQualPatternLut theQualPatternLUT
Definition:
L1MuBMEtaProcessor.h:137
L1MuBMEtaProcessor::m_TrackCand
L1MuBMTrack * m_TrackCand[12]
Definition:
L1MuBMEtaProcessor.h:127
L1MuBMEtaProcessor::receiveData
void receiveData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive data (eta trigger primitives)
Definition:
L1MuBMEtaProcessor.cc:214
L1MuBMEtaProcessor
Definition:
L1MuBMEtaProcessor.h:62
L1MuBMEtaProcessor::m_TracKCand
L1MuBMTrack * m_TracKCand[12]
Definition:
L1MuBMEtaProcessor.h:128
Event.h
EventSetup.h
L1MuBMEtaProcessor::msks
L1MuDTTFMasks msks
Definition:
L1MuBMEtaProcessor.h:135
L1MuBMEtaProcessor::m_epid
int m_epid
Definition:
L1MuBMEtaProcessor.h:116
L1MuBMEtaProcessor::m_fine
bool m_fine[12]
Definition:
L1MuBMEtaProcessor.h:121
L1MuBMEtaProcessor::fineBit
bool fineBit(int id) const
return fine bit, index [0,11]
Definition:
L1MuBMEtaProcessor.h:91
Handle.h
L1MuBMEtaProcessor::reset
virtual void reset()
reset the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:102
L1TMuonBarrelParams.h
L1MuBMEtaProcessor::m_pattern
int m_pattern[12]
Definition:
L1MuBMEtaProcessor.h:124
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
edm::EDGetTokenT< L1MuDTChambThContainer >
L1MuDTQualPatternLut.h
L1MuBMTrackSegEta
Definition:
L1MuBMTrackSegEta.h:36
L1MuDTQualPatternLut
Definition:
L1MuDTQualPatternLut.h:43
L1MuBMEtaProcessor::runEtaMatchingUnit
void runEtaMatchingUnit(const edm::EventSetup &c)
run Eta Matching Unit (EMU)
Definition:
L1MuBMEtaProcessor.cc:361
edm::ESHandle< L1TMuonBarrelParams >
L1MuBMEtaProcessor::m_eta
int m_eta[12]
Definition:
L1MuBMEtaProcessor.h:120
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:45
L1MuDTEtaPatternLut
Definition:
L1MuDTEtaPatternLut.h:41
L1MuBMEtaProcessor::print
void print() const
print muon candidates found by the Eta Processor
Definition:
L1MuBMEtaProcessor.cc:134
L1MuBMEtaProcessor::m_foundPattern
std::vector< int > m_foundPattern
Definition:
L1MuBMEtaProcessor.h:123
L1MuBMEtaProcessor::theEtaPatternLUT
L1MuDTEtaPatternLut theEtaPatternLUT
Definition:
L1MuBMEtaProcessor.h:136
L1MuBMEtaProcessor::L1MuBMEtaProcessor
L1MuBMEtaProcessor(const L1MuBMTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
Definition:
L1MuBMEtaProcessor.cc:61
L1MuBMEtaProcessor::id
int id() const
return Eta Processor identifier (0-11)
Definition:
L1MuBMEtaProcessor.h:73
L1MuBMEtaProcessor::m_DTDigiToken
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
Definition:
L1MuBMEtaProcessor.h:139
L1MuBMAddressArray.h
L1MuBMEtaProcessor::assign
void assign()
assign eta and etaFineBit
Definition:
L1MuBMEtaProcessor.cc:440
L1MuDTEtaPatternLut.h
L1MuBMTrackFinder
Definition:
L1MuBMTrackFinder.h:62
L1MuBMEtaProcessor::runEtaTrackFinder
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
Definition:
L1MuBMEtaProcessor.cc:310
L1MuBMTrack
Definition:
L1MuBMTrack.h:53
L1MuBMEtaProcessor::quality
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
Definition:
L1MuBMEtaProcessor.cc:477
L1MuBMEtaProcessor::receiveAddresses
void receiveAddresses()
receive addresses (from 6 Sector Processors)
Definition:
L1MuBMEtaProcessor.cc:279
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
L1MuBMEtaProcessor::m_address
int m_address[12]
Definition:
L1MuBMEtaProcessor.h:126
L1MuBMEtaProcessor::eta
int eta(int id) const
return eta values, index [0,11]
Definition:
L1MuBMEtaProcessor.h:88
L1MuDTChambThContainer.h
L1MuBMEtaProcessor::m_tseta
std::vector< const L1MuBMTrackSegEta * > m_tseta
Definition:
L1MuBMEtaProcessor.h:129
L1MuBMEtaProcessor::~L1MuBMEtaProcessor
virtual ~L1MuBMEtaProcessor()
destructor
Definition:
L1MuBMEtaProcessor.cc:74
L1MuBMEtaProcessor::m_mask
int m_mask
Definition:
L1MuBMEtaProcessor.h:118
edm::Event
Definition:
Event.h:65
ConsumesCollector.h
L1TMuonBarrelParamsRcd.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.5