1 #ifndef MuonRawDigiTranslator_h 2 #define MuonRawDigiTranslator_h 13 uint32_t raw_data_spare,
14 uint32_t raw_data_00_31,
15 uint32_t raw_data_32_63,
23 uint32_t& raw_data_spare,
24 uint32_t& raw_data_00_31,
25 uint32_t& raw_data_32_63,
30 const Muon&
mu, uint32_t& raw_data_spare,
uint64_t& dataword,
int fedId,
int fwId,
int muInBx);
32 static int calcHwEta(
const uint32_t& raw,
unsigned absEtaShift,
unsigned etaSignShift);
34 static constexpr
unsigned ptMask_ = 0x1FF;
68 uint32_t raw_data_spare,
69 uint32_t raw_data_00_31,
70 uint32_t raw_data_32_63,
72 bool wasSpecialMWGR =
false);
77 uint32_t& raw_data_spare,
78 uint32_t& raw_data_00_31,
79 uint32_t& raw_data_32_63,
81 bool wasSpecialMWGR =
false);
static std::array< uint32_t, 4 > getPackedShowerDataWords(const MuonShower &shower, int fedId, unsigned int fwId)
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 dxyMask_
static constexpr unsigned tfMuonIndexShift_
static constexpr unsigned isoShift_
static constexpr unsigned absEtaAtVtxShift_
static int calcHwEta(const uint32_t &raw, unsigned absEtaShift, unsigned etaSignShift)
static constexpr unsigned qualMask_
static constexpr unsigned isoMask_
static void fillIntermediateMuon(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, unsigned int fw)
static constexpr unsigned qualShift_
static constexpr unsigned etaMu2SignShift_
static constexpr unsigned ptUnconstrainedMask_
static void fillIntermediateMuonQuantitiesRun3(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static constexpr unsigned etaMu1SignShift_
static constexpr unsigned absEtaMu1Shift_
static constexpr unsigned etaAtVtxSignShift_
static constexpr unsigned chargeValidShift_
static constexpr unsigned phiAtVtxShift_
static constexpr unsigned ptShift_
static constexpr unsigned ptUnconstrainedIntermedidateShift_
static constexpr unsigned chargeShift_
static void fillMuonStableQuantities(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static void generatePackedMuonDataWords(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 constexpr unsigned etaSignShift_
static constexpr unsigned dxyShift_
unsigned long long uint64_t
static void generate64bitDataWord(const Muon &mu, uint32_t &raw_data_spare, uint64_t &dataword, int fedId, int fwId, int muInBx)
static constexpr unsigned phiShift_
static constexpr unsigned phiMask_
static void fillMuonCoordinatesFrom2017(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static constexpr unsigned absEtaMu2Shift_
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 fillMuonCoordinates2016(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
static bool showerFired(uint32_t shower_word, int fedId, unsigned int fwId)
static constexpr unsigned absEtaMask_
static void generatePackedMuonDataWordsRun3(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 ptUnconstrainedShift_
static constexpr unsigned ptMask_
static constexpr unsigned tfMuonIndexMask_
static constexpr unsigned showerShift_