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);
34 static int calcHwEta(
const uint32_t& raw,
unsigned absEtaShift,
unsigned etaSignShift);
36 static constexpr
unsigned ptMask_ = 0x1FF;
82 uint32_t raw_data_spare,
83 uint32_t raw_data_00_31,
84 uint32_t raw_data_32_63,
86 bool wasSpecialMWGR =
false);
91 uint32_t& raw_data_spare,
92 uint32_t& raw_data_00_31,
93 uint32_t& raw_data_32_63,
95 bool wasSpecialMWGR =
false);
static constexpr int kUgtFwVersionUntil2016
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 int kUgtFwVersionUntil2017
static constexpr unsigned dxyMask_
static constexpr unsigned tfMuonIndexShift_
static void fillMuon(Muon &mu, uint32_t raw_data_spare, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int fed, int fw, int muInBx)
static std::array< std::array< uint32_t, 4 >, 2 > getPackedShowerDataWords(const MuonShower &shower, int fedId, int fwId)
static constexpr unsigned isoShift_
static constexpr unsigned absEtaAtVtxShift_
static int calcHwEta(const uint32_t &raw, unsigned absEtaShift, unsigned etaSignShift)
static constexpr int kUgmtFedId
static constexpr unsigned qualMask_
static constexpr unsigned isoMask_
static constexpr unsigned qualShift_
static constexpr unsigned etaMu2SignShift_
static constexpr int kUgmtFwVersionFirstWithShowers
static void fillIntermediateMuon(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63, int fw)
static constexpr int kUgmtFwVersionRun3Start
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 int kUgmtFwVersionUntil2016
static constexpr int kUgmtFwVersionShowersFrom2023
static constexpr int kUgtFedId
static constexpr unsigned absEtaMu1Shift_
static constexpr int kUgtFwVersionFirstWithShowers
static constexpr unsigned etaAtVtxSignShift_
static constexpr unsigned chargeValidShift_
static constexpr unsigned phiAtVtxShift_
static bool showerFired(uint32_t shower_word, int fedId, int fwId)
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 constexpr unsigned absEtaShift_
static void fillMuonCoordinates2016(Muon &mu, uint32_t raw_data_00_31, uint32_t raw_data_32_63)
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 int kUgtFwVersionUntilRun3Start
static constexpr int kUgtFwVersionShowersFrom2023
static constexpr unsigned ptUnconstrainedShift_
static constexpr unsigned ptMask_
static constexpr int kUgmtFwVersionUntil2017
static constexpr unsigned tfMuonIndexMask_
static constexpr unsigned showerShift_