src
L1Trigger
L1TMuonBarrel
src
L1MuBMExtrapolationUnit.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
19
//
20
//--------------------------------------------------
21
#ifndef L1MUBM_EXTRAPOLATION_UNIT_H
22
#define L1MUBM_EXTRAPOLATION_UNIT_H
23
24
//---------------
25
// C++ Headers --
26
//---------------
27
28
#include <utility>
29
#include <map>
30
#include <bitset>
31
32
//----------------------
33
// Base Class Headers --
34
//----------------------
35
36
//------------------------------------
37
// Collaborating Class Declarations --
38
//------------------------------------
39
40
#include "
CondFormats/L1TObjects/interface/L1MuDTExtParam.h
"
41
#include "
CondFormats/L1TObjects/interface/L1TMuonBarrelParams.h
"
42
#include "
CondFormats/DataRecord/interface/L1TMuonBarrelParamsRcd.h
"
43
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
44
#include "
FWCore/Framework/interface/EventSetup.h
"
45
class
L1MuBMSectorProcessor
;
46
class
L1MuBMSEU
;
47
class
L1MuDTTFParameters
;
48
49
// ---------------------
50
// -- Class Interface --
51
// ---------------------
52
53
class
L1MuBMExtrapolationUnit
{
54
public
:
55
typedef
std::pair<Extrapolation, unsigned int>
SEUId
;
56
typedef
std::map<SEUId, L1MuBMSEU*, std::less<SEUId> >
SEUmap
;
57
59
L1MuBMExtrapolationUnit
(
const
L1MuBMSectorProcessor
&,
edm::ConsumesCollector
iC);
60
62
~L1MuBMExtrapolationUnit
();
63
65
void
run
(
const
edm::EventSetup
&
c
);
66
68
void
reset
();
69
71
void
reset
(
Extrapolation
ext
,
unsigned
int
startAdr,
unsigned
int
relAdr);
72
74
unsigned
short
int
getAddress
(
Extrapolation
ext
,
unsigned
int
startAdr,
int
id
)
const
;
75
77
unsigned
short
int
getQuality
(
Extrapolation
ext
,
unsigned
int
startAdr,
int
id
)
const
;
78
80
const
std::bitset<12>&
getEXTable
(
Extrapolation
ext
,
unsigned
int
startAdr)
const
;
81
83
const
std::bitset<12>&
getQSTable
(
Extrapolation
ext
,
unsigned
int
startAdr)
const
;
84
86
int
numberOfExt
()
const
;
87
89
void
print
(
int
level
= 0)
const
;
90
92
static
std::pair<int, int>
which_ext
(
Extrapolation
ext
);
93
94
private
:
95
const
L1MuBMSectorProcessor
&
m_sp
;
// reference to Sector Processor
96
97
mutable
SEUmap
m_SEUs
;
// Single Extrapolation Units
98
99
edm::ESGetToken<L1TMuonBarrelParams, L1TMuonBarrelParamsRcd>
m_paramsToken
;
100
L1MuDTTFParameters
pars
;
101
};
102
103
#endif
L1MuBMExtrapolationUnit::m_paramsToken
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_paramsToken
Definition:
L1MuBMExtrapolationUnit.h:99
L1MuBMExtrapolationUnit::which_ext
static std::pair< int, int > which_ext(Extrapolation ext)
return station of start and target track segment for a given extrapolation
Definition:
L1MuBMExtrapolationUnit.cc:294
L1MuBMExtrapolationUnit::pars
L1MuDTTFParameters pars
Definition:
L1MuBMExtrapolationUnit.h:100
L1MuBMExtrapolationUnit::getAddress
unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation address from a given ERS
Definition:
L1MuBMExtrapolationUnit.cc:169
L1MuBMSEU
Definition:
L1MuBMSEU.h:48
EventSetup.h
L1MuBMSectorProcessor
Definition:
L1MuBMSectorProcessor.h:56
L1TMuonBarrelParams.h
L1MuBMExtrapolationUnit::getQuality
unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation quality from a given ERS
Definition:
L1MuBMExtrapolationUnit.cc:190
L1MuBMExtrapolationUnit::~L1MuBMExtrapolationUnit
~L1MuBMExtrapolationUnit()
destructor
Definition:
L1MuBMExtrapolationUnit.cc:80
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd >
L1MuBMExtrapolationUnit::reset
void reset()
reset Extrapolation Unit
Definition:
L1MuBMExtrapolationUnit.cc:146
L1MuBMExtrapolationUnit::m_sp
const L1MuBMSectorProcessor & m_sp
Definition:
L1MuBMExtrapolationUnit.h:95
edm::EventSetup
Definition:
EventSetup.h:59
Extrapolation
Extrapolation
Definition:
L1MuDTExtParam.h:22
L1MuBMExtrapolationUnit::SEUId
std::pair< Extrapolation, unsigned int > SEUId
Definition:
L1MuBMExtrapolationUnit.h:55
L1MuDTExtParam.h
L1MuBMExtrapolationUnit::getQSTable
const std::bitset< 12 > & getQSTable(Extrapolation ext, unsigned int startAdr) const
get Quality Sorter table for a given SEU
Definition:
L1MuBMExtrapolationUnit.cc:224
personalPlayback.level
level
Definition:
personalPlayback.py:22
L1MuBMExtrapolationUnit
Definition:
L1MuBMExtrapolationUnit.h:53
L1MuBMExtrapolationUnit::numberOfExt
int numberOfExt() const
return number of successful extrapolations
Definition:
L1MuBMExtrapolationUnit.cc:237
L1MuBMExtrapolationUnit::SEUmap
std::map< SEUId, L1MuBMSEU *, std::less< SEUId > > SEUmap
Definition:
L1MuBMExtrapolationUnit.h:56
L1MuBMExtrapolationUnit::L1MuBMExtrapolationUnit
L1MuBMExtrapolationUnit(const L1MuBMSectorProcessor &, edm::ConsumesCollector iC)
constructor
Definition:
L1MuBMExtrapolationUnit.cc:55
L1MuBMExtrapolationUnit::print
void print(int level=0) const
print all successful extrapolations
Definition:
L1MuBMExtrapolationUnit.cc:250
L1MuBMExtrapolationUnit::m_SEUs
SEUmap m_SEUs
Definition:
L1MuBMExtrapolationUnit.h:97
ext
Definition:
memstream.h:15
ConsumesCollector.h
L1TMuonBarrelParamsRcd.h
L1MuBMExtrapolationUnit::run
void run(const edm::EventSetup &c)
run Extrapolation Unit
Definition:
L1MuBMExtrapolationUnit.cc:95
L1MuDTTFParameters
Definition:
L1MuDTTFParameters.h:36
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
L1MuBMExtrapolationUnit::getEXTable
const std::bitset< 12 > & getEXTable(Extrapolation ext, unsigned int startAdr) const
get Extrapolator table for a given SEU
Definition:
L1MuBMExtrapolationUnit.cc:211
Generated for CMSSW Reference Manual by
1.8.14