|
|
#include <MuonRawDigiTranslator.h>
|
static int | calcHwEta (const uint32_t &raw, const unsigned absEtaShift, const unsigned etaSignShift) |
|
static void | fillIntermediateMuon (Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, unsigned int fw) |
|
static void | fillMuon (Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int fed, unsigned int fw, int muInBx) |
|
static void | fillMuon (Muon &mu, uint32_t raw_data_spare, uint64_t dataword, int fed, unsigned int fw, int muInBx) |
|
static void | generate64bitDataWord (const Muon &mu, uint32_t &raw_data_spare, uint64_t &dataword, int fedId, int fwId, int muInBx) |
|
static void | generatePackedDataWords (const Muon &mu, uint32_t &raw_data_spare, uint32_t &raw_data_00_31, uint32_t &raw_data_32_63, int fedId, int fwId, int muInBx) |
|
|
static void | fillIntermediateMuonQuantitiesRun3 (Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63) |
|
static void | fillMuonCoordinates2016 (Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63) |
|
static void | fillMuonCoordinatesFrom2017 (Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63) |
|
static void | fillMuonQuantitiesRun3 (Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int muInBx) |
|
static void | fillMuonStableQuantities (Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63) |
|
Definition at line 7 of file MuonRawDigiTranslator.h.
◆ calcHwEta()
int l1t::MuonRawDigiTranslator::calcHwEta |
( |
const uint32_t & |
raw, |
|
|
const unsigned |
absEtaShift, |
|
|
const unsigned |
etaSignShift |
|
) |
| |
|
static |
Definition at line 223 of file MuonRawDigiTranslator.cc.
228 if ((raw >> etaSignShift) & 0x1) {
229 return abs_eta - (1 << (etaSignShift - absEtaShift));
◆ fillIntermediateMuon()
void l1t::MuonRawDigiTranslator::fillIntermediateMuon |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63, |
|
|
unsigned int |
fw |
|
) |
| |
|
static |
◆ fillIntermediateMuonQuantitiesRun3()
void l1t::MuonRawDigiTranslator::fillIntermediateMuonQuantitiesRun3 |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63 |
|
) |
| |
|
staticprivate |
◆ fillMuon() [1/2]
void l1t::MuonRawDigiTranslator::fillMuon |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_spare, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63, |
|
|
int |
fed, |
|
|
unsigned int |
fw, |
|
|
int |
muInBx |
|
) |
| |
|
static |
◆ fillMuon() [2/2]
void l1t::MuonRawDigiTranslator::fillMuon |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_spare, |
|
|
uint64_t |
dataword, |
|
|
int |
fed, |
|
|
unsigned int |
fw, |
|
|
int |
muInBx |
|
) |
| |
|
static |
◆ fillMuonCoordinates2016()
void l1t::MuonRawDigiTranslator::fillMuonCoordinates2016 |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63 |
|
) |
| |
|
staticprivate |
◆ fillMuonCoordinatesFrom2017()
void l1t::MuonRawDigiTranslator::fillMuonCoordinatesFrom2017 |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63 |
|
) |
| |
|
staticprivate |
◆ fillMuonQuantitiesRun3()
void l1t::MuonRawDigiTranslator::fillMuonQuantitiesRun3 |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_spare, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63, |
|
|
int |
muInBx |
|
) |
| |
|
staticprivate |
◆ fillMuonStableQuantities()
void l1t::MuonRawDigiTranslator::fillMuonStableQuantities |
( |
Muon & |
mu, |
|
|
uint32_t |
raw_data_00_31, |
|
|
uint32_t |
raw_data_32_63 |
|
) |
| |
|
staticprivate |
◆ generate64bitDataWord()
void l1t::MuonRawDigiTranslator::generate64bitDataWord |
( |
const Muon & |
mu, |
|
|
uint32_t & |
raw_data_spare, |
|
|
uint64_t & |
dataword, |
|
|
int |
fedId, |
|
|
int |
fwId, |
|
|
int |
muInBx |
|
) |
| |
|
static |
◆ generatePackedDataWords()
void l1t::MuonRawDigiTranslator::generatePackedDataWords |
( |
const Muon & |
mu, |
|
|
uint32_t & |
raw_data_spare, |
|
|
uint32_t & |
raw_data_00_31, |
|
|
uint32_t & |
raw_data_32_63, |
|
|
int |
fedId, |
|
|
int |
fwId, |
|
|
int |
muInBx |
|
) |
| |
|
static |
Definition at line 160 of file MuonRawDigiTranslator.cc.
167 int abs_eta =
mu.hwEta();
171 int abs_eta_at_vtx =
mu.hwEtaAtVtx();
172 if (abs_eta_at_vtx < 0) {
175 if ((fedID == 1402 && fwID < 0x4010000) || (fedID == 1404 && fwID < 0x10A6)) {
183 }
else if ((fedID == 1402 && fwID < 0x6000000) || (fedID == 1404 && fwID < 0x1120)) {
194 int absEtaShiftRun3{0}, etaSignShiftRun3{0};
198 }
else if (muInBx == 2) {
202 raw_data_spare = (abs_eta &
absEtaMask_) << absEtaShiftRun3 | (
mu.hwEta() < 0) << etaSignShiftRun3;
References amptDefaultParameters_cff::mu.
Referenced by l1t::stage2::MuonPacker::packBx().
◆ absEtaAtVtxShift_
constexpr unsigned l1t::MuonRawDigiTranslator::absEtaAtVtxShift_ = 23 |
|
staticconstexpr |
◆ absEtaMask_
constexpr unsigned l1t::MuonRawDigiTranslator::absEtaMask_ = 0xFF |
|
staticconstexpr |
◆ absEtaMu1Shift_
constexpr unsigned l1t::MuonRawDigiTranslator::absEtaMu1Shift_ = 12 |
|
staticconstexpr |
◆ absEtaMu2Shift_
constexpr unsigned l1t::MuonRawDigiTranslator::absEtaMu2Shift_ = 21 |
|
staticconstexpr |
◆ absEtaShift_
constexpr unsigned l1t::MuonRawDigiTranslator::absEtaShift_ = 21 |
|
staticconstexpr |
◆ chargeShift_
constexpr unsigned l1t::MuonRawDigiTranslator::chargeShift_ = 2 |
|
staticconstexpr |
◆ chargeValidShift_
constexpr unsigned l1t::MuonRawDigiTranslator::chargeValidShift_ = 3 |
|
staticconstexpr |
◆ dxyMask_
constexpr unsigned l1t::MuonRawDigiTranslator::dxyMask_ = 0x3 |
|
staticconstexpr |
◆ dxyShift_
constexpr unsigned l1t::MuonRawDigiTranslator::dxyShift_ = 30 |
|
staticconstexpr |
◆ etaAtVtxSignShift_
constexpr unsigned l1t::MuonRawDigiTranslator::etaAtVtxSignShift_ = 31 |
|
staticconstexpr |
◆ etaMu1SignShift_
constexpr unsigned l1t::MuonRawDigiTranslator::etaMu1SignShift_ = 20 |
|
staticconstexpr |
◆ etaMu2SignShift_
constexpr unsigned l1t::MuonRawDigiTranslator::etaMu2SignShift_ = 29 |
|
staticconstexpr |
◆ etaSignShift_
constexpr unsigned l1t::MuonRawDigiTranslator::etaSignShift_ = 29 |
|
staticconstexpr |
◆ isoMask_
constexpr unsigned l1t::MuonRawDigiTranslator::isoMask_ = 0x3 |
|
staticconstexpr |
◆ isoShift_
constexpr unsigned l1t::MuonRawDigiTranslator::isoShift_ = 0 |
|
staticconstexpr |
◆ phiAtVtxShift_
constexpr unsigned l1t::MuonRawDigiTranslator::phiAtVtxShift_ = 0 |
|
staticconstexpr |
◆ phiMask_
constexpr unsigned l1t::MuonRawDigiTranslator::phiMask_ = 0x3FF |
|
staticconstexpr |
◆ phiShift_
constexpr unsigned l1t::MuonRawDigiTranslator::phiShift_ = 11 |
|
staticconstexpr |
◆ ptMask_
constexpr unsigned l1t::MuonRawDigiTranslator::ptMask_ = 0x1FF |
|
staticconstexpr |
◆ ptShift_
constexpr unsigned l1t::MuonRawDigiTranslator::ptShift_ = 10 |
|
staticconstexpr |
◆ ptUnconstrainedIntermedidateShift_
constexpr unsigned l1t::MuonRawDigiTranslator::ptUnconstrainedIntermedidateShift_ = 0 |
|
staticconstexpr |
◆ ptUnconstrainedMask_
constexpr unsigned l1t::MuonRawDigiTranslator::ptUnconstrainedMask_ = 0xFF |
|
staticconstexpr |
◆ ptUnconstrainedShift_
constexpr unsigned l1t::MuonRawDigiTranslator::ptUnconstrainedShift_ = 21 |
|
staticconstexpr |
◆ qualMask_
constexpr unsigned l1t::MuonRawDigiTranslator::qualMask_ = 0xF |
|
staticconstexpr |
◆ qualShift_
constexpr unsigned l1t::MuonRawDigiTranslator::qualShift_ = 19 |
|
staticconstexpr |
◆ tfMuonIndexMask_
constexpr unsigned l1t::MuonRawDigiTranslator::tfMuonIndexMask_ = 0x7F |
|
staticconstexpr |
◆ tfMuonIndexShift_
constexpr unsigned l1t::MuonRawDigiTranslator::tfMuonIndexShift_ = 4 |
|
staticconstexpr |
static constexpr unsigned etaSignShift_
static constexpr unsigned dxyShift_
static constexpr unsigned chargeValidShift_
static constexpr unsigned ptUnconstrainedIntermedidateShift_
static constexpr unsigned phiShift_
static constexpr unsigned chargeShift_
static void fillMuonQuantitiesRun3(Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int muInBx)
static constexpr unsigned ptShift_
static constexpr unsigned phiAtVtxShift_
static constexpr unsigned phiMask_
static constexpr unsigned absEtaMu2Shift_
static void fillMuonCoordinatesFrom2017(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static void fillMuonCoordinates2016(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static void fillMuonStableQuantities(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static void fillMuon(Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int fed, unsigned int fw, int muInBx)
static constexpr unsigned absEtaShift_
static constexpr unsigned absEtaMask_
static constexpr unsigned isoShift_
static constexpr unsigned ptMask_
static constexpr unsigned tfMuonIndexMask_
static constexpr unsigned qualMask_
static constexpr unsigned ptUnconstrainedShift_
static constexpr unsigned tfMuonIndexShift_
static constexpr unsigned dxyMask_
static int calcHwEta(const uint32_t &raw, const unsigned absEtaShift, const unsigned etaSignShift)
static constexpr unsigned qualShift_
static constexpr unsigned etaMu2SignShift_
static constexpr unsigned absEtaAtVtxShift_
static constexpr unsigned ptUnconstrainedMask_
static constexpr unsigned isoMask_
unsigned long long uint64_t
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
static constexpr unsigned etaAtVtxSignShift_
static void generatePackedDataWords(const Muon &mu, uint32_t &raw_data_spare, uint32_t &raw_data_00_31, uint32_t &raw_data_32_63, int fedId, int fwId, int muInBx)
static void fillIntermediateMuonQuantitiesRun3(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static constexpr unsigned absEtaMu1Shift_
static constexpr unsigned etaMu1SignShift_