39 | ((segSel & 0x1) << 2);
41 | ((segSel & 0x2) << 3);
43 | ((segSel & 0x4) << 2);
45 | ((segSel & 0x8) << 1);
72 std::map<int, int> trackAddr;
73 trackAddr[0] = rawTrackAddress;
84 fillRegionalMuonCand(mu, (uint32_t)(dataword & 0xFFFFFFFF), (uint32_t)((dataword >> 32) & 0xFFFFFFFF), proc, tf);
90 int abs_eta = mu.
hwEta();
94 int abs_phi = mu.
hwPhi();
183 return (((
uint64_t)msw) << 32) + lsw;
static const unsigned bmtfTrAddrStat2Mask_
static const unsigned absPhiMask_
static const unsigned emtfTrAddrMe4SegShift_
void setHwPhi(int bits)
Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)
static const unsigned emtfTrAddrMe1ChShift_
static const unsigned qualMask_
static const unsigned qualShift_
static const unsigned emtfTrAddrMe2ChMask_
const int hwSignValid() const
Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)
static void generatePackedDataWords(const RegionalMuonCand &, uint32_t &, uint32_t &)
static const unsigned emtfTrAddrMe3SegShift_
TrainProcessor *const proc
static const unsigned emtfTrAddrMe2SegShift_
static const unsigned bmtfTrAddrSegSelShift_
static const unsigned absEtaShift_
static const unsigned emtfTrAddrBxMask_
static const unsigned emtfTrAddrMe3ChMask_
static const unsigned bmtfTrAddrWheelShift_
static const unsigned signShift_
static const unsigned ptMask_
void setTrackAddress(const std::map< int, int > &address)
Set the whole track address.
static const unsigned bmtfTrAddrStat1Mask_
static const unsigned emtfTrAddrMe2ChShift_
static const unsigned bmtfTrAddrStat4Mask_
static const unsigned bmtfTrAddrStat3Mask_
static const unsigned emtfTrAddrBxShift_
static const unsigned absPhiShift_
static const unsigned absEtaMask_
static const unsigned omtfTrAddrWeightShift_
const int hwQual() const
Get quality code.
static const unsigned emtfTrAddrMe3ChShift_
static const unsigned bmtfTrAddrStat1Shift_
static const unsigned emtfTrAddrMe4ChShift_
static const unsigned trackAddressMask_
static const unsigned ptShift_
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
static const unsigned bmtfTrAddrSegSelMask_
static const unsigned etaSignShift_
void setTrackSubAddress(bmtfAddress subAddress, int value)
Set a part of the muon candidates track address; specialised for BMTF.
const int hwHF() const
Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
static const unsigned bmtfTrAddrWheelMask_
void setDataword(uint32_t msbs, uint32_t lsbs)
void setHwHF(bool bit)
Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
const std::map< int, int > & trackAddress() const
Get the track address (identifies track primitives used for reconstruction)
static const unsigned bmtfTrAddrStat4Shift_
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
static const unsigned emtfTrAddrMe1SegShift_
const tftype trackFinderType() const
Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) ...
static const unsigned emtfTrAddrTrkNumMask_
static const unsigned emtfTrAddrMe1ChMask_
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
void setHwPt(int bits)
Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)
static const unsigned phiSignShift_
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
static const unsigned signValidShift_
unsigned long long uint64_t
static void fillRegionalMuonCand(RegionalMuonCand &, uint32_t, uint32_t, int, tftype)
static const unsigned emtfTrAddrTrkNumShift_
static uint64_t generate64bitDataWord(const RegionalMuonCand &)
static const unsigned bmtfTrAddrDetSideShift_
int trackSubAddress(bmtfAddress subAddress) const
Get part of track address (identifies track primitives used for reconstruction)
static const unsigned omtfTrAddrWeightMask_
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
static const unsigned hfMask_
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
static const unsigned hfShift_
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
static const unsigned bmtfTrAddrStat2Shift_
static const unsigned omtfTrAddrLayersShift_
static const unsigned omtfTrAddrLayersMask_
static const unsigned trackAddressShift_
static const unsigned bmtfTrAddrStat3Shift_
void setHwSign(int bits)
Set charge sign bit (charge = (-1)^(sign))
static const unsigned emtfTrAddrMe4ChMask_