50 l1t::RegionalMuonCand(),
52 m_name(
"L1MuBMTrack"),
148 if (!tsList.empty()) {
149 vector<const L1MuBMTrackSegPhi*>::const_iterator iter;
150 for (iter = tsList.begin(); iter != tsList.end(); iter++) {
161 if (!tsList.empty()) {
162 vector<const L1MuBMTrackSegEta*>::const_iterator iter;
163 for (iter = tsList.begin(); iter != tsList.end(); iter++) {
181 return (
unsigned int)0.5;
188 if (
this != &track) {
212 if (
bx() != track.
bx())
220 if (
pt() != track.
pt())
241 if (
bx() != track.
bx())
249 if (
pt() != track.
pt())
265 cout.setf(ios::showpoint);
266 cout.setf(ios::right, ios::adjustfield);
269 <<
"pt = " << setw(3) <<
hwPt() <<
" " 270 <<
"charge = " << setw(2) <<
hwSign() <<
" " 271 <<
"eta = " << setw(2)
274 <<
"phi = " << setw(3) <<
hwPhi() <<
" " 275 <<
"quality = " << setw(1) <<
hwQual() <<
'\t' <<
"class = " <<
tc() <<
" " 276 <<
"bx = " << setw(2) <<
bx() << endl;
277 cout <<
" found in " <<
m_spid <<
" with phi track segments :" << endl;
278 vector<L1MuBMTrackSegPhi>::const_iterator iter;
280 cout <<
" " << (*iter) << endl;
290 s << setiosflags(ios::showpoint |
ios::fixed) <<
"pt = " << setw(3) <<
id.hwPt() <<
" " 291 <<
"charge = " << setw(2) <<
id.hwSign() <<
" " 292 <<
"eta = " << setw(2)
295 <<
"phi = " << setw(3) <<
id.hwPhi() <<
" " 296 <<
"quality = " << setw(1) <<
id.hwQual() <<
'\t' <<
"bx = " << setw(2) <<
id.bx();
unsigned int pt() const
get pt-code (5 bits)
bool operator!=(const L1MuBMTrack &) const
unequal operator
L1MuBMTrack & operator=(const L1MuBMTrack &)
assignment operator
const L1MuBMTrackSegPhi & getStartTSphi() const
return start phi track segment of muon candidate
const L1MuBMTrackSegEta & getEndTSeta() const
return end eta track segment of muon candidate
const L1MuBMSecProcId & spid() const
return Sector Processor in which the muon candidate was found
std::vector< L1MuBMTrackSegEta > m_tsetaList
int charge() const
get charge (1 bit)
const int hwQual() const
Get quality code.
TrackClass tc() const
get track-class
unsigned int triggerScale(float value, const edm::EventSetup &c) const
convert pt value in GeV to pt code
void setTSeta(const std::vector< const L1MuBMTrackSegEta * > &tsList)
set eta track segments used to form the muon candidate
unsigned int phi() const
get phi-code (8 bits)
void setHwHF(bool bit)
Set HF (halo / fine eta) bit (EMTF: halo -> 1; BMTF: fine eta -> 1)
void setBx(int bx)
set charge of muon candidate
const int hwEta() const
Get compressed eta (returned int * 0.010875 = eta)
const int hwPhi() const
Get compressed local phi (returned int * 2*pi/576 = local phi in rad)
int bx() const
get the bunch crossing for this muon candidate
friend std::ostream & operator<<(std::ostream &, const L1MuBMTrack &)
output stream operator
unsigned int quality() const
get quality
void setHwEta(int bits)
Set compressed eta as transmitted by hardware LSB = 0.010875 (9 bits)
void setTSphi(const std::vector< const L1MuBMTrackSegPhi * > &tsList)
set phi track segments used to form the muon candidate
void reset()
reset address array
void reset()
reset muon candidate
void setEta(int eta)
set eta-code of muon candidate
const L1MuBMTrackSegPhi & getEndTSphi() const
return end phi track segment of muon candidate
const int hwPt() const
Get compressed pT (returned int * 0.5 = pT (GeV))
const int hwSign() const
Get charge sign bit (charge = (-1)^(sign))
void setHwSignValid(int bits)
Set whether charge measurement is valid (0 for high pT muons)
bool operator==(const L1MuBMTrack &) const
equal operator
int eta() const
get eta-code (6 bits)
std::vector< L1MuBMTrackSegPhi > m_tsphiList
void print() const
print parameters of muon candidate
bool fineEtaBit() const
get fine eta bit
~L1MuBMTrack() override
destructor
bool empty() const
is it an empty muon candidate?
const L1MuBMTrackSegEta & getStartTSeta() const
return start eta track segment of muon candidate
L1MuBMAddressArray m_addArray
L1MuBMTrack()
default constructor