src
L1Trigger
DTTrackFinder
src
L1MuDTExtrapolationUnit.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
19
//
20
//--------------------------------------------------
21
#ifndef L1MUDT_EXTRAPOLATION_UNIT_H
22
#define L1MUDT_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 "
FWCore/Framework/interface/Frameworkfwd.h
"
42
#include "
FWCore/Framework/interface/ESHandle.h
"
43
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
44
class
L1MuDTSectorProcessor
;
45
class
L1MuDTSEU
;
46
class
L1MuDTTFParameters
;
47
class
L1MuDTTFParametersRcd
;
48
class
L1MuDTExtLut
;
49
class
L1MuDTExtLutRcd
;
50
// ---------------------
51
// -- Class Interface --
52
// ---------------------
53
54
class
L1MuDTExtrapolationUnit
{
55
public
:
56
typedef
std::pair<Extrapolation, unsigned int>
SEUId
;
57
typedef
std::map<SEUId, L1MuDTSEU*, std::less<SEUId> >
SEUmap
;
58
60
L1MuDTExtrapolationUnit
(
const
L1MuDTSectorProcessor
&,
edm::ConsumesCollector
);
61
63
~L1MuDTExtrapolationUnit
();
64
66
void
run
(
const
edm::EventSetup
&
c
);
67
69
void
reset
();
70
72
void
reset
(
Extrapolation
ext
,
unsigned
int
startAdr,
unsigned
int
relAdr);
73
75
unsigned
short
int
getAddress
(
Extrapolation
ext
,
unsigned
int
startAdr,
int
id
)
const
;
76
78
unsigned
short
int
getQuality
(
Extrapolation
ext
,
unsigned
int
startAdr,
int
id
)
const
;
79
81
const
std::bitset<12>&
getEXTable
(
Extrapolation
ext
,
unsigned
int
startAdr)
const
;
82
84
const
std::bitset<12>&
getQSTable
(
Extrapolation
ext
,
unsigned
int
startAdr)
const
;
85
87
int
numberOfExt
()
const
;
88
90
void
print
(
int
level
= 0)
const
;
91
93
static
std::pair<int, int>
which_ext
(
Extrapolation
ext
);
94
95
private
:
96
const
L1MuDTSectorProcessor
&
m_sp
;
// reference to Sector Processor
97
98
SEUmap
m_SEUs
;
// Single Extrapolation Units
99
100
const
edm::ESGetToken<L1MuDTTFParameters, L1MuDTTFParametersRcd>
m_parsToken
;
101
const
edm::ESGetToken<L1MuDTExtLut, L1MuDTExtLutRcd>
m_extLUTsToken
;
102
};
103
104
#endif
L1MuDTExtrapolationUnit::print
void print(int level=0) const
print all successful extrapolations
Definition:
L1MuDTExtrapolationUnit.cc:252
L1MuDTExtrapolationUnit::SEUId
std::pair< Extrapolation, unsigned int > SEUId
Definition:
L1MuDTExtrapolationUnit.h:56
L1MuDTExtrapolationUnit::reset
void reset()
reset Extrapolation Unit
Definition:
L1MuDTExtrapolationUnit.cc:148
L1MuDTExtrapolationUnit::m_parsToken
const edm::ESGetToken< L1MuDTTFParameters, L1MuDTTFParametersRcd > m_parsToken
Definition:
L1MuDTExtrapolationUnit.h:100
L1MuDTExtrapolationUnit::numberOfExt
int numberOfExt() const
return number of successful extrapolations
Definition:
L1MuDTExtrapolationUnit.cc:239
Frameworkfwd.h
L1MuDTExtrapolationUnit::getEXTable
const std::bitset< 12 > & getEXTable(Extrapolation ext, unsigned int startAdr) const
get Extrapolator table for a given SEU
Definition:
L1MuDTExtrapolationUnit.cc:213
L1MuDTExtrapolationUnit::m_SEUs
SEUmap m_SEUs
Definition:
L1MuDTExtrapolationUnit.h:98
L1MuDTTFParametersRcd
Definition:
L1MuDTTFParametersRcd.h:10
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
edm::ESGetToken< L1MuDTTFParameters, L1MuDTTFParametersRcd >
L1MuDTExtrapolationUnit::m_sp
const L1MuDTSectorProcessor & m_sp
Definition:
L1MuDTExtrapolationUnit.h:96
L1MuDTExtLut
Definition:
L1MuDTExtLut.h:39
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:59
Extrapolation
Extrapolation
Definition:
L1MuDTExtParam.h:22
L1MuDTExtrapolationUnit
Definition:
L1MuDTExtrapolationUnit.h:54
L1MuDTExtParam.h
L1MuDTSectorProcessor
Definition:
L1MuDTSectorProcessor.h:56
L1MuDTExtrapolationUnit::m_extLUTsToken
const edm::ESGetToken< L1MuDTExtLut, L1MuDTExtLutRcd > m_extLUTsToken
Definition:
L1MuDTExtrapolationUnit.h:101
personalPlayback.level
level
Definition:
personalPlayback.py:22
L1MuDTExtrapolationUnit::which_ext
static std::pair< int, int > which_ext(Extrapolation ext)
return station of start and target track segment for a given extrapolation
Definition:
L1MuDTExtrapolationUnit.cc:296
L1MuDTExtrapolationUnit::getQuality
unsigned short int getQuality(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation quality from a given ERS
Definition:
L1MuDTExtrapolationUnit.cc:192
L1MuDTExtrapolationUnit::~L1MuDTExtrapolationUnit
~L1MuDTExtrapolationUnit()
destructor
Definition:
L1MuDTExtrapolationUnit.cc:81
L1MuDTExtrapolationUnit::getAddress
unsigned short int getAddress(Extrapolation ext, unsigned int startAdr, int id) const
get extrapolation address from a given ERS
Definition:
L1MuDTExtrapolationUnit.cc:171
L1MuDTExtrapolationUnit::SEUmap
std::map< SEUId, L1MuDTSEU *, std::less< SEUId > > SEUmap
Definition:
L1MuDTExtrapolationUnit.h:57
ext
Definition:
memstream.h:15
L1MuDTExtrapolationUnit::getQSTable
const std::bitset< 12 > & getQSTable(Extrapolation ext, unsigned int startAdr) const
get Quality Sorter table for a given SEU
Definition:
L1MuDTExtrapolationUnit.cc:226
L1MuDTExtrapolationUnit::L1MuDTExtrapolationUnit
L1MuDTExtrapolationUnit(const L1MuDTSectorProcessor &, edm::ConsumesCollector)
constructor
Definition:
L1MuDTExtrapolationUnit.cc:56
ConsumesCollector.h
L1MuDTSEU
Definition:
L1MuDTSEU.h:48
L1MuDTTFParameters
Definition:
L1MuDTTFParameters.h:36
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
L1MuDTExtLutRcd
Definition:
L1MuDTExtLutRcd.h:12
L1MuDTExtrapolationUnit::run
void run(const edm::EventSetup &c)
run Extrapolation Unit
Definition:
L1MuDTExtrapolationUnit.cc:96
Generated for CMSSW Reference Manual by
1.8.14