50 l1t::RegionalMuonCand(),
53 m_addArray(), m_tsphiList(), m_tsetaList() {
67 l1t::RegionalMuonCand(),
68 m_spid(spid), m_name(
"L1MuBMTrack"), m_empty(
true),
70 m_addArray(), m_tsphiList(), m_tsetaList() {
83 l1t::RegionalMuonCand(id),
84 m_spid(id.m_spid), m_name(id.m_name), m_empty(id.m_empty),
86 m_addArray(id.m_addArray),
87 m_tsphiList(id.m_tsphiList), m_tsetaList(id.m_tsetaList) {}
172 if ( !tsList.empty() ) {
173 vector<const L1MuBMTrackSegPhi*>::const_iterator iter;
174 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
187 if ( !tsList.empty() ) {
188 vector<const L1MuBMTrackSegEta*>::const_iterator iter;
189 for ( iter = tsList.begin(); iter != tsList.end(); iter++ ) {
202 const float eps = 1.e-5;
206 unsigned int t_Scale = theTriggerScales->getPtScale()->getPacked( value + eps );
217 if (
this != &track ) {
240 if (
m_tc != track.
m_tc )
return false;
241 if (
bx() != track.
bx() )
return false;
242 if (
phi() != track.
phi() )
return false;
243 if (
eta() != track.
eta() )
return false;
245 if (
pt() != track.
pt() )
return false;
261 if (
m_tc != track.
m_tc )
return true;
262 if (
bx() != track.
bx() )
return true;
263 if (
phi() != track.
phi() )
return true;
264 if (
eta() != track.
eta() )
return true;
266 if (
pt() != track.
pt() )
return true;
281 cout.setf(ios::showpoint);
282 cout.setf(ios::right,ios::adjustfield);
283 cout << setiosflags(ios::showpoint | ios::fixed);
285 <<
"pt = " << setw(3) <<
hwPt() <<
" "
286 <<
"charge = " << setw(2) <<
hwSign() <<
" "
287 <<
"eta = " << setw(2) <<
hwEta()
289 <<
"phi = " << setw(3) <<
hwPhi() <<
" "
290 <<
"quality = " << setw(1) <<
hwQual() <<
'\t'
291 <<
"class = " <<
tc() <<
" "
292 <<
"bx = " << setw(2) <<
bx() << endl;
293 cout <<
" found in " <<
m_spid <<
" with phi track segments :" << endl;
294 vector<L1MuBMTrackSegPhi>::const_iterator iter;
296 cout <<
" " << (*iter) << endl;
309 s << setiosflags(ios::showpoint | ios::fixed)
310 <<
"pt = " << setw(3) <<
id.hwPt() <<
" "
311 <<
"charge = " << setw(2) <<
id.hwSign() <<
" "
312 <<
"eta = " << setw(2) <<
id.hwEta()
314 <<
"phi = " << setw(3) <<
id.hwPhi() <<
" "
315 <<
"quality = " << setw(1) <<
id.hwQual() <<
'\t'
316 <<
"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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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
virtual ~L1MuBMTrack()
destructor
unsigned int phi() const
get phi-code (8 bits)
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
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
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