Go to the documentation of this file. 1 #ifndef MuonRawDigiTranslator_h
2 #define MuonRawDigiTranslator_h
10 uint32_t raw_data_spare,
11 uint32_t raw_data_00_31,
12 uint32_t raw_data_32_63,
19 uint32_t& raw_data_spare,
20 uint32_t& raw_data_00_31,
21 uint32_t& raw_data_32_63,
26 const Muon&
mu, uint32_t& raw_data_spare,
uint64_t& dataword,
int fedId,
int fwId,
int muInBx);
27 static int calcHwEta(
const uint32_t& raw,
const unsigned absEtaShift,
const unsigned etaSignShift);
29 static constexpr
unsigned ptMask_ = 0x1FF;
62 uint32_t raw_data_spare,
63 uint32_t raw_data_00_31,
64 uint32_t raw_data_32_63,
66 bool wasSpecialMWGR =
false);
71 uint32_t& raw_data_spare,
72 uint32_t& raw_data_00_31,
73 uint32_t& raw_data_32_63,
75 bool wasSpecialMWGR =
false);
static constexpr unsigned etaSignShift_
static constexpr unsigned dxyShift_
static constexpr unsigned chargeValidShift_
static constexpr unsigned ptUnconstrainedIntermedidateShift_
static constexpr unsigned phiShift_
static void generatePackedDataWordsRun3(const Muon &mu, int abs_eta, int abs_eta_at_vtx, uint32_t &raw_data_spare, uint32_t &raw_data_00_31, uint32_t &raw_data_32_63, int muInBx, bool wasSpecialMWGR=false)
static constexpr unsigned chargeShift_
static constexpr unsigned ptShift_
static void generate64bitDataWord(const Muon &mu, uint32_t &raw_data_spare, uint64_t &dataword, int fedId, int fwId, int muInBx)
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 void fillMuonQuantitiesRun3(Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int muInBx, bool wasSpecialMWGR=false)
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_
static void fillIntermediateMuon(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, unsigned int fw)
unsigned long long uint64_t
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_