CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
l1t::RegionalMuonCand Class Reference

#include <RegionalMuonCand.h>

Inheritance diagram for l1t::RegionalMuonCand:
L1MuBMTrack

Public Types

enum  bmtfAddress {
  kWheelSide = 0, kWheelNum = 1, kStat1 = 2, kStat2 = 3,
  kStat3 = 4, kStat4 = 5, kSegSelStat1 = 6, kSegSelStat2 = 7,
  kSegSelStat3 = 8, kSegSelStat4 = 9, kNumBmtfSubAddr = 10
}
 
enum  emtfAddress {
  kME1Seg = 0, kME1Ch = 1, kME2Seg = 2, kME2Ch = 3,
  kME3Seg = 4, kME3Ch = 5, kME4Seg = 6, kME4Ch = 7,
  kTrkNum = 8, kBX = 9, kNumEmtfSubAddr = 10
}
 
enum  omtfAddress { kLayers = 0, kZero = 1, kWeight = 2, kNumOmtfSubAddr = 3 }
 

Public Member Functions

const uint64_t dataword () const
 Get 64 bit data word. More...
 
const uint32_t dataword32Lsb () const
 Get 32 LSBs of data word. More...
 
const uint32_t dataword32Msb () const
 Get 32 MSBs of data word. More...
 
const int hwDXY () const
 Get compressed impact parameter (4 bits) More...
 
const int hwEta () const
 Get compressed eta (returned int * 0.010875 = eta) More...
 
const int hwHF () const
 Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1) More...
 
const int hwPhi () const
 Get compressed local phi (returned int * 2*pi/576 = local phi in rad) More...
 
const int hwPt () const
 Get compressed pT (returned int * 0.5 = pT (GeV)) More...
 
const int hwPtUnconstrained () const
 Get second compressed pT (returned int * 1.0 = pT (GeV)) More...
 
const int hwQual () const
 Get quality code. More...
 
const int hwSign () const
 Get charge sign bit (charge = (-1)^(sign)) More...
 
const int hwSignValid () const
 Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid) More...
 
const int link () const
 Get link on which the MicroGMT receives the candidate. More...
 
bool operator!= (const RegionalMuonCand &rhs) const
 
bool operator== (const RegionalMuonCand &rhs) const
 
const int processor () const
 Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF) More...
 
 RegionalMuonCand ()
 
 RegionalMuonCand (int pt, int phi, int eta, int sign, int signvalid, int quality, int processor, tftype trackFinder)
 
 RegionalMuonCand (int pt, int phi, int eta, int sign, int signvalid, int quality, int processor, tftype trackFinder, std::map< int, int > trackAddress)
 
 RegionalMuonCand (uint64_t dataword)
 
void setDataword (uint32_t msbs, uint32_t lsbs)
 
void setDataword (uint64_t bits)
 
void setHwDXY (int bits)
 Set compressed impact parameter with respect to beamspot (4 bits) More...
 
void setHwEta (int bits)
 Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits) More...
 
void setHwHF (bool bit)
 Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1) More...
 
void setHwPhi (int bits)
 Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits) More...
 
void setHwPt (int bits)
 Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits) More...
 
void setHwPtUnconstrained (int bits)
 Set compressed second displaced pT as transmitted by hardware LSB = 1.0 (8 bits) More...
 
void setHwQual (int bits)
 Set compressed quality code as transmitted by hardware (4 bits) More...
 
void setHwSign (int bits)
 Set charge sign bit (charge = (-1)^(sign)) More...
 
void setHwSignValid (int bits)
 Set whether charge measurement is valid (0 for high pT muons) More...
 
void setLink (int link)
 
void setTFIdentifiers (int processor, tftype trackFinder)
 Set the processor ID, track-finder type. From these two, the link is set. More...
 
void setTrackAddress (const std::map< int, int > &address)
 Set the whole track address. More...
 
void setTrackSubAddress (bmtfAddress subAddress, int value)
 Set a part of the muon candidates track address; specialised for BMTF. More...
 
void setTrackSubAddress (emtfAddress subAddress, int value)
 Set a part of the muon candidates track address; specialised for EMTF. More...
 
void setTrackSubAddress (omtfAddress subAddress, int value)
 Set a part of the muon candidates track address; specialised for OMTF. More...
 
const std::map< int, int > & trackAddress () const
 Get the track address (identifies track primitives used for reconstruction) More...
 
const tftype trackFinderType () const
 Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg) More...
 
int trackSubAddress (bmtfAddress subAddress) const
 Get part of track address (identifies track primitives used for reconstruction) More...
 
int trackSubAddress (emtfAddress subAddress) const
 Get part of track address (identifies track primitives used for reconstruction) More...
 
int trackSubAddress (omtfAddress subAddress) const
 Get part of track address (identifies track primitives used for reconstruction) More...
 
virtual ~RegionalMuonCand ()
 

Private Attributes

uint64_t m_dataword
 This is the 64 bit word as transmitted in HW. More...
 
int m_hwDXY
 
int m_hwEta
 
bool m_hwHF
 
int m_hwPhi
 
int m_hwPt
 
int m_hwPtUnconstrained
 
int m_hwQuality
 
int m_hwSign
 
int m_hwSignValid
 
int m_link
 
int m_processor
 
std::map< int, int > m_trackAddress
 
tftype m_trackFinder
 

Detailed Description

Definition at line 8 of file RegionalMuonCand.h.

Member Enumeration Documentation

◆ bmtfAddress

Enum to identify the individual parts of the BMTF track address Update kNumBmtfSubAddr if you add additional enums

Enumerator
kWheelSide 
kWheelNum 
kStat1 
kStat2 
kStat3 
kStat4 
kSegSelStat1 
kSegSelStat2 
kSegSelStat3 
kSegSelStat4 
kNumBmtfSubAddr 

Definition at line 12 of file RegionalMuonCand.h.

12  {
13  kWheelSide = 0,
14  kWheelNum = 1,
15  kStat1 = 2,
16  kStat2 = 3,
17  kStat3 = 4,
18  kStat4 = 5,
19  kSegSelStat1 = 6,
20  kSegSelStat2 = 7,
21  kSegSelStat3 = 8,
22  kSegSelStat4 = 9,
23  kNumBmtfSubAddr = 10
24  };

◆ emtfAddress

Enum to identify the individual parts of the EMTF track address Update kNumEmtfSubAddr if you add additional enums

Enumerator
kME1Seg 
kME1Ch 
kME2Seg 
kME2Ch 
kME3Seg 
kME3Ch 
kME4Seg 
kME4Ch 
kTrkNum 
kBX 
kNumEmtfSubAddr 

Definition at line 30 of file RegionalMuonCand.h.

30  {
31  kME1Seg = 0,
32  kME1Ch = 1,
33  kME2Seg = 2,
34  kME2Ch = 3,
35  kME3Seg = 4,
36  kME3Ch = 5,
37  kME4Seg = 6,
38  kME4Ch = 7,
39  kTrkNum = 8,
40  kBX = 9,
41  kNumEmtfSubAddr = 10
42  };

◆ omtfAddress

Enum to identify the individual parts of the OMTF track address Update kNumOmtfSubAddr if you add additional enums

Enumerator
kLayers 
kZero 
kWeight 
kNumOmtfSubAddr 

Definition at line 27 of file RegionalMuonCand.h.

27 { kLayers = 0, kZero = 1, kWeight = 2, kNumOmtfSubAddr = 3 };

Constructor & Destructor Documentation

◆ RegionalMuonCand() [1/4]

l1t::RegionalMuonCand::RegionalMuonCand ( uint64_t  dataword)
explicit

◆ RegionalMuonCand() [2/4]

l1t::RegionalMuonCand::RegionalMuonCand ( )
inline

Definition at line 46 of file RegionalMuonCand.h.

47  : m_hwPt(0),
49  m_hwDXY(0),
50  m_hwPhi(0),
51  m_hwEta(0),
52  m_hwHF(false),
53  m_hwSign(0),
54  m_hwSignValid(0),
55  m_hwQuality(0),
56  m_dataword(0) {
58  };

References l1t::bmtf, and setTFIdentifiers().

◆ RegionalMuonCand() [3/4]

l1t::RegionalMuonCand::RegionalMuonCand ( int  pt,
int  phi,
int  eta,
int  sign,
int  signvalid,
int  quality,
int  processor,
tftype  trackFinder 
)
inline

Definition at line 60 of file RegionalMuonCand.h.

61  : m_hwPt(pt),
63  m_hwDXY(0),
64  m_hwPhi(phi),
65  m_hwEta(eta),
66  m_hwHF(false),
67  m_hwSign(sign),
68  m_hwSignValid(signvalid),
70  m_dataword(0) {
71  setTFIdentifiers(processor, trackFinder);
72  // set default track addresses
73  if (trackFinder == tftype::bmtf) {
74  m_trackAddress = {{kWheelSide, 0},
75  {kWheelNum, 0},
76  {kStat1, 0},
77  {kStat2, 0},
78  {kStat3, 0},
79  {kStat4, 0},
80  {kSegSelStat1, 0},
81  {kSegSelStat2, 0},
82  {kSegSelStat3, 0},
83  {kSegSelStat4, 0}};
84  } else if (trackFinder == tftype::omtf_pos || trackFinder == tftype::omtf_neg) {
85  m_trackAddress = {{kLayers, 0}, {kZero, 0}, {kWeight, 0}};
86  } else if (trackFinder == tftype::emtf_pos || trackFinder == tftype::emtf_neg) {
87  m_trackAddress = {{kME1Seg, 0},
88  {kME1Ch, 0},
89  {kME2Seg, 0},
90  {kME2Ch, 0},
91  {kME3Seg, 0},
92  {kME3Ch, 0},
93  {kME4Seg, 0},
94  {kME4Ch, 0},
95  {kTrkNum, 0},
96  {kBX, 0}};
97  }
98  };

References l1t::bmtf, l1t::emtf_neg, l1t::emtf_pos, kBX, kLayers, kME1Ch, kME1Seg, kME2Ch, kME2Seg, kME3Ch, kME3Seg, kME4Ch, kME4Seg, kSegSelStat1, kSegSelStat2, kSegSelStat3, kSegSelStat4, kStat1, kStat2, kStat3, kStat4, kTrkNum, kWeight, kWheelNum, kWheelSide, kZero, m_trackAddress, l1t::omtf_neg, l1t::omtf_pos, processor(), and setTFIdentifiers().

◆ RegionalMuonCand() [4/4]

l1t::RegionalMuonCand::RegionalMuonCand ( int  pt,
int  phi,
int  eta,
int  sign,
int  signvalid,
int  quality,
int  processor,
tftype  trackFinder,
std::map< int, int >  trackAddress 
)
inline

Definition at line 100 of file RegionalMuonCand.h.

109  : m_hwPt(pt),
111  m_hwDXY(0),
112  m_hwPhi(phi),
113  m_hwEta(eta),
114  m_hwHF(false),
115  m_hwSign(sign),
116  m_hwSignValid(signvalid),
119  m_dataword(0) {
120  setTFIdentifiers(processor, trackFinder);
121  };

References processor(), and setTFIdentifiers().

◆ ~RegionalMuonCand()

virtual l1t::RegionalMuonCand::~RegionalMuonCand ( )
inlinevirtual

Definition at line 123 of file RegionalMuonCand.h.

123 {};

Member Function Documentation

◆ dataword()

const uint64_t l1t::RegionalMuonCand::dataword ( ) const
inline

Get 64 bit data word.

Definition at line 185 of file RegionalMuonCand.h.

185 { return m_dataword; };

References m_dataword.

◆ dataword32Lsb()

const uint32_t l1t::RegionalMuonCand::dataword32Lsb ( ) const
inline

Get 32 LSBs of data word.

Definition at line 189 of file RegionalMuonCand.h.

189 { return (uint32_t)(m_dataword & 0xFFFFFFFF); };

References m_dataword.

◆ dataword32Msb()

const uint32_t l1t::RegionalMuonCand::dataword32Msb ( ) const
inline

Get 32 MSBs of data word.

Definition at line 187 of file RegionalMuonCand.h.

187 { return (uint32_t)((m_dataword >> 32) & 0xFFFFFFFF); };

References m_dataword.

◆ hwDXY()

const int l1t::RegionalMuonCand::hwDXY ( ) const
inline

Get compressed impact parameter (4 bits)

Definition at line 165 of file RegionalMuonCand.h.

165 { return m_hwDXY; };

References m_hwDXY.

Referenced by l1t::GMTInternalMuon::hwDXY(), and operator==().

◆ hwEta()

const int l1t::RegionalMuonCand::hwEta ( ) const
inline

Get compressed eta (returned int * 0.010875 = eta)

Definition at line 169 of file RegionalMuonCand.h.

169 { return m_hwEta; };

References m_hwEta.

Referenced by L1MuBMTrack::eta(), l1t::GMTInternalMuon::hwEta(), operator==(), L1MuBMTrack::print(), L1TkMuonProducer::sigmaEtaTP(), l1t::stage2::BMTFUnpackerOutput::unpack(), and XMLConfigWriter::writeCandMuon().

◆ hwHF()

const int l1t::RegionalMuonCand::hwHF ( ) const
inline

Get HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)

Definition at line 183 of file RegionalMuonCand.h.

183 { return m_hwHF; };

References m_hwHF.

Referenced by L1MuBMTrack::fineEtaBit(), l1t::GMTInternalMuon::hwHF(), and operator==().

◆ hwPhi()

const int l1t::RegionalMuonCand::hwPhi ( ) const
inline

Get compressed local phi (returned int * 2*pi/576 = local phi in rad)

Definition at line 167 of file RegionalMuonCand.h.

167 { return m_hwPhi; };

References m_hwPhi.

Referenced by l1t::GMTInternalMuon::hwLocalPhi(), operator==(), L1MuBMTrack::phi(), L1MuBMTrack::print(), l1t::stage2::BMTFUnpackerOutput::unpack(), and XMLConfigWriter::writeCandMuon().

◆ hwPt()

const int l1t::RegionalMuonCand::hwPt ( ) const
inline

◆ hwPtUnconstrained()

const int l1t::RegionalMuonCand::hwPtUnconstrained ( ) const
inline

Get second compressed pT (returned int * 1.0 = pT (GeV))

Definition at line 163 of file RegionalMuonCand.h.

163 { return m_hwPtUnconstrained; };

References m_hwPtUnconstrained.

Referenced by l1t::GMTInternalMuon::hwPtUnconstrained(), operator==(), and l1t::stage2::BMTFUnpackerOutput::unpack().

◆ hwQual()

const int l1t::RegionalMuonCand::hwQual ( ) const
inline

Get quality code.

Definition at line 175 of file RegionalMuonCand.h.

175 { return m_hwQuality; };

References m_hwQuality.

Referenced by l1t::GMTInternalMuon::hwQual(), operator==(), L1MuBMTrack::print(), L1MuBMTrack::quality(), and XMLConfigWriter::writeCandMuon().

◆ hwSign()

const int l1t::RegionalMuonCand::hwSign ( ) const
inline

Get charge sign bit (charge = (-1)^(sign))

Definition at line 171 of file RegionalMuonCand.h.

171 { return m_hwSign; };

References m_hwSign.

Referenced by L1MuBMTrack::charge(), l1t::GMTInternalMuon::hwSign(), operator==(), L1MuBMTrack::print(), and XMLConfigWriter::writeCandMuon().

◆ hwSignValid()

const int l1t::RegionalMuonCand::hwSignValid ( ) const
inline

Get charge sign valid bit (0 - not valid (high pT muon); 1 - valid)

Definition at line 173 of file RegionalMuonCand.h.

173 { return m_hwSignValid; };

References m_hwSignValid.

Referenced by l1t::GMTInternalMuon::hwSignValid(), operator==(), and XMLConfigWriter::writeCandMuon().

◆ link()

const int l1t::RegionalMuonCand::link ( ) const
inline

Get link on which the MicroGMT receives the candidate.

Definition at line 177 of file RegionalMuonCand.h.

177 { return m_link; };

References m_link.

Referenced by l1t::GMTInternalMuon::link(), operator==(), setLink(), omtf::MuonUnpacker::unpack(), and XMLConfigWriter::writeCandMuon().

◆ operator!=()

bool l1t::RegionalMuonCand::operator!= ( const RegionalMuonCand rhs) const
inline

Definition at line 200 of file RegionalMuonCand.h.

200 { return !(operator==(rhs)); };

References operator==().

◆ operator==()

bool l1t::RegionalMuonCand::operator== ( const RegionalMuonCand rhs) const

Definition at line 27 of file RegionalMuonCand.cc.

27  {
28  return m_hwPt == rhs.hwPt() && m_hwPtUnconstrained == rhs.hwPtUnconstrained() && m_hwDXY == rhs.hwDXY() &&
29  m_hwPhi == rhs.hwPhi() && m_hwEta == rhs.hwEta() && m_hwHF == (bool)rhs.hwHF() && m_hwSign == rhs.hwSign() &&
30  m_hwSignValid == rhs.hwSignValid() && m_hwQuality == rhs.hwQual() && m_link == rhs.link() &&
31  m_processor == rhs.processor() && m_trackFinder == rhs.trackFinderType() &&
32  m_trackAddress == rhs.trackAddress();
33  }

References electrons_cff::bool, hwDXY(), hwEta(), hwHF(), hwPhi(), hwPt(), hwPtUnconstrained(), hwQual(), hwSign(), hwSignValid(), link(), m_hwDXY, m_hwEta, m_hwHF, m_hwPhi, m_hwPt, m_hwPtUnconstrained, m_hwQuality, m_hwSign, m_hwSignValid, m_link, m_processor, m_trackAddress, m_trackFinder, processor(), trackAddress(), and trackFinderType().

Referenced by operator!=().

◆ processor()

const int l1t::RegionalMuonCand::processor ( ) const
inline

Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF)

Definition at line 179 of file RegionalMuonCand.h.

179 { return m_processor; };

References m_processor.

Referenced by L1TMicroGMTInputProducer::cmpProc(), L1TMicroGMTInputProducerFromGen::compareMuons(), operator==(), l1t::GMTInternalMuon::processor(), RegionalMuonCand(), setTFIdentifiers(), and XMLConfigWriter::writeCandMuon().

◆ setDataword() [1/2]

void l1t::RegionalMuonCand::setDataword ( uint32_t  msbs,
uint32_t  lsbs 
)
inline

Definition at line 148 of file RegionalMuonCand.h.

148 { m_dataword = (((uint64_t)msbs) << 32) + lsbs; };

References m_dataword.

◆ setDataword() [2/2]

void l1t::RegionalMuonCand::setDataword ( uint64_t  bits)
inline

Definition at line 150 of file RegionalMuonCand.h.

150 { m_dataword = bits; };

References m_dataword.

◆ setHwDXY()

void l1t::RegionalMuonCand::setHwDXY ( int  bits)
inline

Set compressed impact parameter with respect to beamspot (4 bits)

Definition at line 130 of file RegionalMuonCand.h.

130 { m_hwDXY = bits; };

References m_hwDXY.

Referenced by MicroGMTConverter::convert().

◆ setHwEta()

void l1t::RegionalMuonCand::setHwEta ( int  bits)
inline

Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)

Definition at line 134 of file RegionalMuonCand.h.

134 { m_hwEta = bits; };

References m_hwEta.

Referenced by OMTFSorter::candidates(), MicroGMTConverter::convert(), L1TBMTFConverter::produce(), L1MuBMTrackFinder::run(), L1MuBMTrack::setEta(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), and omtf::MuonUnpacker::unpack().

◆ setHwHF()

void l1t::RegionalMuonCand::setHwHF ( bool  bit)
inline

Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)

Definition at line 142 of file RegionalMuonCand.h.

142 { m_hwHF = bit; };

References m_hwHF.

Referenced by MicroGMTConverter::convert(), L1MuBMTrackFinder::run(), L1MuBMTrack::setEta(), and L1MuBMTrack::setFineEtaBit().

◆ setHwPhi()

void l1t::RegionalMuonCand::setHwPhi ( int  bits)
inline

Set compressed relative phi as transmitted by hardware LSB = 2*pi/576 (8 bits)

Definition at line 132 of file RegionalMuonCand.h.

132 { m_hwPhi = bits; };

References m_hwPhi.

Referenced by OMTFSorter::candidates(), MicroGMTConverter::convert(), L1MuBMTrackFinder::run(), L1MuBMTrack::setPhi(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), and omtf::MuonUnpacker::unpack().

◆ setHwPt()

void l1t::RegionalMuonCand::setHwPt ( int  bits)
inline

Set compressed pT as transmitted by hardware LSB = 0.5 (9 bits)

Definition at line 126 of file RegionalMuonCand.h.

126 { m_hwPt = bits; };

References m_hwPt.

Referenced by OMTFSorter::candidates(), MicroGMTConverter::convert(), L1MuBMTrackFinder::run(), L1MuBMTrack::setPt(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), and omtf::MuonUnpacker::unpack().

◆ setHwPtUnconstrained()

void l1t::RegionalMuonCand::setHwPtUnconstrained ( int  bits)
inline

Set compressed second displaced pT as transmitted by hardware LSB = 1.0 (8 bits)

Definition at line 128 of file RegionalMuonCand.h.

128 { m_hwPtUnconstrained = bits; };

References m_hwPtUnconstrained.

Referenced by MicroGMTConverter::convert().

◆ setHwQual()

void l1t::RegionalMuonCand::setHwQual ( int  bits)
inline

◆ setHwSign()

void l1t::RegionalMuonCand::setHwSign ( int  bits)
inline

◆ setHwSignValid()

void l1t::RegionalMuonCand::setHwSignValid ( int  bits)
inline

Set whether charge measurement is valid (0 for high pT muons)

Definition at line 138 of file RegionalMuonCand.h.

138 { m_hwSignValid = bits; };

References m_hwSignValid.

Referenced by OMTFSorter::candidates(), MicroGMTConverter::convert(), L1MuBMTrack::L1MuBMTrack(), L1MuBMTrackFinder::run(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), and omtf::MuonUnpacker::unpack().

◆ setLink()

void l1t::RegionalMuonCand::setLink ( int  link)
inline

Definition at line 146 of file RegionalMuonCand.h.

146 { m_link = link; };

References link(), and m_link.

◆ setTFIdentifiers()

void l1t::RegionalMuonCand::setTFIdentifiers ( int  processor,
tftype  trackFinder 
)

Set the processor ID, track-finder type. From these two, the link is set.

Definition at line 5 of file RegionalMuonCand.cc.

5  {
6  m_trackFinder = trackFinder;
8 
9  switch (m_trackFinder) {
10  case tftype::emtf_pos:
11  m_link = m_processor + 36; // range 36...41
12  break;
13  case tftype::omtf_pos:
14  m_link = m_processor + 42; // range 42...47
15  break;
16  case tftype::bmtf:
17  m_link = m_processor + 48; // range 48...59
18  break;
19  case tftype::omtf_neg:
20  m_link = m_processor + 60; // range 60...65
21  break;
22  case tftype::emtf_neg:
23  m_link = m_processor + 66; // range 66...71
24  }
25  }

References l1t::bmtf, l1t::emtf_neg, l1t::emtf_pos, m_link, m_processor, m_trackFinder, l1t::omtf_neg, l1t::omtf_pos, and processor().

Referenced by OMTFSorter::candidates(), MicroGMTConverter::convert(), L1MuBMTrack::enable(), RegionalMuonCand(), L1MuBMTrackFinder::run(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), and omtf::MuonUnpacker::unpack().

◆ setTrackAddress()

void l1t::RegionalMuonCand::setTrackAddress ( const std::map< int, int > &  address)
inline

Set the whole track address.

Definition at line 158 of file RegionalMuonCand.h.

158 { m_trackAddress = address; }

References m_trackAddress.

Referenced by OMTFSorter::candidates(), and omtf::MuonUnpacker::unpack().

◆ setTrackSubAddress() [1/3]

void l1t::RegionalMuonCand::setTrackSubAddress ( bmtfAddress  subAddress,
int  value 
)
inline

Set a part of the muon candidates track address; specialised for BMTF.

Definition at line 152 of file RegionalMuonCand.h.

152 { m_trackAddress[subAddress] = value; }

References m_trackAddress, and relativeConstraints::value.

Referenced by MicroGMTConverter::convert(), L1MuBMTrackFinder::run(), and l1t::stage2::emtf::SPBlockUnpacker::unpack().

◆ setTrackSubAddress() [2/3]

void l1t::RegionalMuonCand::setTrackSubAddress ( emtfAddress  subAddress,
int  value 
)
inline

Set a part of the muon candidates track address; specialised for EMTF.

Definition at line 156 of file RegionalMuonCand.h.

156 { m_trackAddress[subAddress] = value; }

References m_trackAddress, and relativeConstraints::value.

◆ setTrackSubAddress() [3/3]

void l1t::RegionalMuonCand::setTrackSubAddress ( omtfAddress  subAddress,
int  value 
)
inline

Set a part of the muon candidates track address; specialised for OMTF.

Definition at line 154 of file RegionalMuonCand.h.

154 { m_trackAddress[subAddress] = value; }

References m_trackAddress, and relativeConstraints::value.

◆ trackAddress()

const std::map<int, int>& l1t::RegionalMuonCand::trackAddress ( ) const
inline

Get the track address (identifies track primitives used for reconstruction)

Definition at line 191 of file RegionalMuonCand.h.

191 { return m_trackAddress; }

References m_trackAddress.

Referenced by operator==(), and XMLConfigWriter::writeCandMuon().

◆ trackFinderType()

const tftype l1t::RegionalMuonCand::trackFinderType ( ) const
inline

Get track-finder which found the muon (bmtf, emtf_pos/emtf_neg or omtf_pos/omtf_neg)

Definition at line 181 of file RegionalMuonCand.h.

181 { return m_trackFinder; };

References m_trackFinder.

Referenced by operator==(), l1t::GMTInternalMuon::trackFinderType(), and XMLConfigWriter::writeCandMuon().

◆ trackSubAddress() [1/3]

int l1t::RegionalMuonCand::trackSubAddress ( bmtfAddress  subAddress) const
inline

Get part of track address (identifies track primitives used for reconstruction)

Definition at line 193 of file RegionalMuonCand.h.

193 { return m_trackAddress.at(subAddress); }

References m_trackAddress.

◆ trackSubAddress() [2/3]

int l1t::RegionalMuonCand::trackSubAddress ( emtfAddress  subAddress) const
inline

Get part of track address (identifies track primitives used for reconstruction)

Definition at line 197 of file RegionalMuonCand.h.

197 { return m_trackAddress.at(subAddress); }

References m_trackAddress.

◆ trackSubAddress() [3/3]

int l1t::RegionalMuonCand::trackSubAddress ( omtfAddress  subAddress) const
inline

Get part of track address (identifies track primitives used for reconstruction)

Definition at line 195 of file RegionalMuonCand.h.

195 { return m_trackAddress.at(subAddress); }

References m_trackAddress.

Member Data Documentation

◆ m_dataword

uint64_t l1t::RegionalMuonCand::m_dataword
private

This is the 64 bit word as transmitted in HW.

Definition at line 218 of file RegionalMuonCand.h.

Referenced by dataword(), dataword32Lsb(), dataword32Msb(), and setDataword().

◆ m_hwDXY

int l1t::RegionalMuonCand::m_hwDXY
private

Definition at line 205 of file RegionalMuonCand.h.

Referenced by hwDXY(), operator==(), and setHwDXY().

◆ m_hwEta

int l1t::RegionalMuonCand::m_hwEta
private

Definition at line 207 of file RegionalMuonCand.h.

Referenced by hwEta(), operator==(), and setHwEta().

◆ m_hwHF

bool l1t::RegionalMuonCand::m_hwHF
private

Definition at line 208 of file RegionalMuonCand.h.

Referenced by hwHF(), operator==(), and setHwHF().

◆ m_hwPhi

int l1t::RegionalMuonCand::m_hwPhi
private

Definition at line 206 of file RegionalMuonCand.h.

Referenced by hwPhi(), operator==(), and setHwPhi().

◆ m_hwPt

int l1t::RegionalMuonCand::m_hwPt
private

Definition at line 200 of file RegionalMuonCand.h.

Referenced by hwPt(), operator==(), and setHwPt().

◆ m_hwPtUnconstrained

int l1t::RegionalMuonCand::m_hwPtUnconstrained
private

Definition at line 204 of file RegionalMuonCand.h.

Referenced by hwPtUnconstrained(), operator==(), and setHwPtUnconstrained().

◆ m_hwQuality

int l1t::RegionalMuonCand::m_hwQuality
private

Definition at line 211 of file RegionalMuonCand.h.

Referenced by hwQual(), operator==(), and setHwQual().

◆ m_hwSign

int l1t::RegionalMuonCand::m_hwSign
private

Definition at line 209 of file RegionalMuonCand.h.

Referenced by hwSign(), operator==(), and setHwSign().

◆ m_hwSignValid

int l1t::RegionalMuonCand::m_hwSignValid
private

Definition at line 210 of file RegionalMuonCand.h.

Referenced by hwSignValid(), operator==(), and setHwSignValid().

◆ m_link

int l1t::RegionalMuonCand::m_link
private

Definition at line 212 of file RegionalMuonCand.h.

Referenced by link(), operator==(), setLink(), and setTFIdentifiers().

◆ m_processor

int l1t::RegionalMuonCand::m_processor
private

Definition at line 213 of file RegionalMuonCand.h.

Referenced by operator==(), processor(), and setTFIdentifiers().

◆ m_trackAddress

std::map<int, int> l1t::RegionalMuonCand::m_trackAddress
private

◆ m_trackFinder

tftype l1t::RegionalMuonCand::m_trackFinder
private

Definition at line 214 of file RegionalMuonCand.h.

Referenced by operator==(), setTFIdentifiers(), and trackFinderType().

l1t::RegionalMuonCand::kME1Ch
Definition: RegionalMuonCand.h:32
l1t::RegionalMuonCand::m_hwSignValid
int m_hwSignValid
Definition: RegionalMuonCand.h:210
l1t::RegionalMuonCand::kStat2
Definition: RegionalMuonCand.h:16
l1t::RegionalMuonCand::kLayers
Definition: RegionalMuonCand.h:27
l1t::RegionalMuonCand::kME3Seg
Definition: RegionalMuonCand.h:35
l1t::bmtf
Definition: RegionalMuonCandFwd.h:8
l1t::emtf_neg
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::kWheelNum
Definition: RegionalMuonCand.h:14
l1t::RegionalMuonCand::processor
const int processor() const
Get processor ID on which the candidate was found (0..5 for OMTF/EMTF; 0..11 for BMTF)
Definition: RegionalMuonCand.h:179
l1t::RegionalMuonCand::link
const int link() const
Get link on which the MicroGMT receives the candidate.
Definition: RegionalMuonCand.h:177
electrons_cff.bool
bool
Definition: electrons_cff.py:393
l1t::RegionalMuonCand::kSegSelStat4
Definition: RegionalMuonCand.h:22
l1t::RegionalMuonCand::m_hwEta
int m_hwEta
Definition: RegionalMuonCand.h:207
l1t::RegionalMuonCand::m_dataword
uint64_t m_dataword
This is the 64 bit word as transmitted in HW.
Definition: RegionalMuonCand.h:218
l1t::RegionalMuonCand::kSegSelStat1
Definition: RegionalMuonCand.h:19
l1t::RegionalMuonCand::operator==
bool operator==(const RegionalMuonCand &rhs) const
Definition: RegionalMuonCand.cc:27
l1t::omtf_pos
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::kME2Ch
Definition: RegionalMuonCand.h:34
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
l1t::RegionalMuonCand::kBX
Definition: RegionalMuonCand.h:40
l1t::RegionalMuonCand::kME1Seg
Definition: RegionalMuonCand.h:31
l1t::RegionalMuonCand::kStat4
Definition: RegionalMuonCand.h:18
l1t::RegionalMuonCand::kStat3
Definition: RegionalMuonCand.h:17
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
l1t::RegionalMuonCand::m_link
int m_link
Definition: RegionalMuonCand.h:212
l1t::RegionalMuonCand::kNumOmtfSubAddr
Definition: RegionalMuonCand.h:27
l1t::RegionalMuonCand::m_trackAddress
std::map< int, int > m_trackAddress
Definition: RegionalMuonCand.h:215
PVValHelper::eta
Definition: PVValidationHelpers.h:69
l1t::RegionalMuonCand::setTFIdentifiers
void setTFIdentifiers(int processor, tftype trackFinder)
Set the processor ID, track-finder type. From these two, the link is set.
Definition: RegionalMuonCand.cc:5
l1t::RegionalMuonCand::kZero
Definition: RegionalMuonCand.h:27
l1t::RegionalMuonCand::m_processor
int m_processor
Definition: RegionalMuonCand.h:213
l1t::RegionalMuonCand::kStat1
Definition: RegionalMuonCand.h:15
l1t::RegionalMuonCand::m_hwQuality
int m_hwQuality
Definition: RegionalMuonCand.h:211
l1t::RegionalMuonCand::m_hwDXY
int m_hwDXY
Definition: RegionalMuonCand.h:205
l1t::RegionalMuonCand::m_hwPtUnconstrained
int m_hwPtUnconstrained
Definition: RegionalMuonCand.h:204
l1t::RegionalMuonCand::m_trackFinder
tftype m_trackFinder
Definition: RegionalMuonCand.h:214
l1t::RegionalMuonCand::kNumBmtfSubAddr
Definition: RegionalMuonCand.h:23
l1t::RegionalMuonCand::kSegSelStat2
Definition: RegionalMuonCand.h:20
l1t::RegionalMuonCand::kSegSelStat3
Definition: RegionalMuonCand.h:21
l1t::RegionalMuonCand::kWheelSide
Definition: RegionalMuonCand.h:13
l1t::RegionalMuonCand::kME4Seg
Definition: RegionalMuonCand.h:37
l1t::RegionalMuonCand::kWeight
Definition: RegionalMuonCand.h:27
l1t::RegionalMuonCand::kTrkNum
Definition: RegionalMuonCand.h:39
DDAxes::phi
l1t::RegionalMuonCand::m_hwSign
int m_hwSign
Definition: RegionalMuonCand.h:209
l1t::RegionalMuonCand::trackAddress
const std::map< int, int > & trackAddress() const
Get the track address (identifies track primitives used for reconstruction)
Definition: RegionalMuonCand.h:191
qcdUeDQM_cfi.quality
quality
Definition: qcdUeDQM_cfi.py:31
l1t::emtf_pos
Definition: RegionalMuonCandFwd.h:8
relativeConstraints.value
value
Definition: relativeConstraints.py:53
l1t::RegionalMuonCand::m_hwPt
int m_hwPt
Definition: RegionalMuonCand.h:200
l1t::RegionalMuonCand::kNumEmtfSubAddr
Definition: RegionalMuonCand.h:41
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
l1t::RegionalMuonCand::kME2Seg
Definition: RegionalMuonCand.h:33
l1t::RegionalMuonCand::kME3Ch
Definition: RegionalMuonCand.h:36
l1t::omtf_neg
Definition: RegionalMuonCandFwd.h:8
l1t::RegionalMuonCand::m_hwHF
bool m_hwHF
Definition: RegionalMuonCand.h:208
l1t::RegionalMuonCand::kME4Ch
Definition: RegionalMuonCand.h:38
l1t::RegionalMuonCand::m_hwPhi
int m_hwPhi
Definition: RegionalMuonCand.h:206