#include <L1Track.h>
Public Member Functions | |
unsigned | addressEta (void) const |
bool | bc0 (void) const |
int | BX () const |
bool | bx0 (void) const |
unsigned | cscid () const |
unsigned | deltaPhi12 (void) const |
unsigned | deltaPhi23 (void) const |
unsigned | endcap () const |
unsigned | front_rear () const |
L1Track (const csc::L1TrackId &) | |
L1Track () | |
L1Track (const csc::L1Track &) | |
unsigned | localPhi () const |
unsigned | mb1ID () const |
unsigned | mb1Tbin (void) const |
unsigned | me1ID () const |
unsigned | me1Tbin (void) const |
unsigned | me2ID () const |
unsigned | me2Tbin (void) const |
unsigned | me3ID () const |
unsigned | me3Tbin (void) const |
unsigned | me4ID () const |
unsigned | me4Tbin (void) const |
unsigned | mode (void) const |
unsigned | modeExtended (void) const |
bool | operator!= (const csc::L1Track &) const |
bool | operator< (const csc::L1Track &) const |
bool | operator<= (const csc::L1Track &) const |
const csc::L1Track & | operator= (const csc::L1Track &) |
bool | operator== (const csc::L1Track &) const |
bool | operator> (const csc::L1Track &) const |
bool | operator>= (const csc::L1Track &) const |
unsigned | outputLink () const |
void | Print () const |
unsigned | ptLUTAddress () const |
unsigned | rank () const |
unsigned | sector () const |
void | set_front_rear (unsigned fr) |
void | setBits (unsigned se, unsigned bx0, unsigned bc0) |
void | setLocalPhi (const unsigned &lphi) |
void | setOutputLink (unsigned oPL) |
void | setPtLUTAddress (const unsigned &adr) |
void | setRank (const unsigned &rank) |
void | setStationIds (const unsigned &me1, const unsigned &me2, const unsigned &me3, const unsigned &me4, const unsigned &mb1) |
void | setTbins (unsigned me1, unsigned me2, unsigned me3, unsigned me4, unsigned mb) |
bool | sign (void) const |
unsigned | station () const |
unsigned | subsector () const |
bool | synch_err (void) const |
bool | winner () const |
virtual | ~L1Track () |
Static Public Member Functions | |
static void | decodeRank (const unsigned &rank, unsigned &pt, unsigned &quality) |
static unsigned | encodeRank (const unsigned &pt, const unsigned &quality) |
Private Attributes | |
bool | m_bc0 |
bool | m_bx0 |
bool | m_empty |
unsigned | m_endcap |
unsigned | m_fr |
unsigned | m_lphi |
unsigned | m_mbTbin |
unsigned | m_me1Tbin |
unsigned | m_me2Tbin |
unsigned | m_me3Tbin |
unsigned | m_me4Tbin |
std::string | m_name |
unsigned | m_output_link |
unsigned | m_ptAddress |
unsigned | m_rank |
bool | m_se |
unsigned | m_sector |
bool | m_winner |
unsigned | mb1_id |
unsigned | me1_id |
unsigned | me2_id |
unsigned | me3_id |
unsigned | me4_id |
Friends | |
class | ::CSCTFSPCoreLogic |
class | ::CSCTFUnpacker |
class | CSCTFSectorProcessor |
csc::L1Track::L1Track | ( | ) | [inline] |
Definition at line 24 of file L1Track.h.
References L1MuRegionalCand::setPtPacked(), and L1MuRegionalCand::setType().
: L1MuRegionalCand(), m_name("csc::L1Track") { setType(2); setPtPacked(0); }
L1Track::L1Track | ( | const csc::L1TrackId & | id | ) |
Definition at line 6 of file L1Track.cc.
References m_bc0, m_bx0, m_empty, m_endcap, m_fr, m_lphi, m_mbTbin, m_me1Tbin, m_me2Tbin, m_me3Tbin, m_me4Tbin, m_output_link, m_ptAddress, m_rank, m_se, m_sector, m_winner, mb1_id, me1_id, me2_id, me3_id, me4_id, L1MuRegionalCand::setPtPacked(), and L1MuRegionalCand::setType().
: m_name("csc::L1Track") { m_endcap = id.endcap(); m_sector = id.sector(); m_lphi = 0; m_ptAddress = 0; m_empty = true; setType(2); setPtPacked(0); m_rank = 0; me1_id = 0; me2_id = 0; me3_id = 0; me4_id = 0; mb1_id = 0; m_me1Tbin = 0; m_me2Tbin = 0; m_me3Tbin = 0; m_me4Tbin = 0; m_mbTbin = 0; m_output_link = 0; m_winner = false; m_fr=0; m_se=true; m_bx0=true; m_bc0=true; }
L1Track::L1Track | ( | const csc::L1Track & | rhs | ) |
Definition at line 32 of file L1Track.cc.
References L1MuRegionalCand::bx(), L1MuRegionalCand::charge_packed(), L1MuRegionalCand::charge_valid_packed(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::finehalo_packed(), L1MuRegionalCand::getDataWord(), m_bc0, m_bx0, m_empty, m_endcap, m_fr, m_lphi, m_mbTbin, m_me1Tbin, m_me2Tbin, m_me3Tbin, m_me4Tbin, m_name, m_output_link, m_ptAddress, m_rank, m_se, m_sector, m_winner, mb1_id, me1_id, me2_id, me3_id, me4_id, L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), L1MuRegionalCand::setBx(), L1MuRegionalCand::setChargePacked(), L1MuRegionalCand::setChargeValidPacked(), L1MuRegionalCand::setDataWord(), L1MuRegionalCand::setEtaPacked(), L1MuRegionalCand::setFineHaloPacked(), L1MuRegionalCand::setPhiPacked(), L1MuRegionalCand::setPtPacked(), L1MuRegionalCand::setQualityPacked(), L1MuRegionalCand::setType(), and L1MuRegionalCand::type_idx().
: L1MuRegionalCand(rhs.type_idx(),rhs.phi_packed(),rhs.eta_packed(), rhs.pt_packed(),rhs.charge_packed(), rhs.charge_valid_packed(),rhs.finehalo_packed(), rhs.quality_packed(),rhs.bx()), m_name(rhs.m_name) { this->setBx(rhs.bx()); this->setDataWord(rhs.getDataWord()); m_name = rhs.m_name; this->setType(rhs.type_idx()); this->setPhiPacked(rhs.phi_packed()); this->setEtaPacked(rhs.eta_packed()); this->setPtPacked(rhs.pt_packed()); this->setChargePacked(rhs.charge_packed()); this->setChargeValidPacked(rhs.charge_valid_packed()); this->setFineHaloPacked(rhs.finehalo_packed()); this->setQualityPacked(rhs.quality_packed()); m_empty = rhs.m_empty; m_lphi = rhs.m_lphi; m_endcap = rhs.m_endcap; m_sector = rhs.m_sector; m_ptAddress = rhs.m_ptAddress; m_rank = rhs.m_rank; me1_id = rhs.me1_id; me2_id = rhs.me2_id; me3_id = rhs.me3_id; me4_id = rhs.me4_id; mb1_id = rhs.mb1_id; m_me1Tbin = rhs.m_me1Tbin; m_me2Tbin = rhs.m_me2Tbin; m_me3Tbin = rhs.m_me3Tbin; m_me4Tbin = rhs.m_me4Tbin; m_mbTbin = rhs.m_mbTbin; m_output_link = rhs.m_output_link; m_winner = rhs.m_winner; m_fr=rhs.m_fr; m_se=rhs.m_se; m_bx0=rhs.m_bx0; m_bc0=rhs.m_bc0; }
L1Track::~L1Track | ( | ) | [virtual] |
Definition at line 73 of file L1Track.cc.
{ }
unsigned csc::L1Track::addressEta | ( | void | ) | const [inline] |
bool csc::L1Track::bc0 | ( | void | ) | const [inline] |
int csc::L1Track::BX | ( | ) | const [inline] |
Definition at line 51 of file L1Track.h.
References L1MuRegionalCand::bx().
Referenced by CSCTFanalyzer::analyze(), and Print().
{ return bx(); }
bool csc::L1Track::bx0 | ( | void | ) | const [inline] |
unsigned csc::L1Track::cscid | ( | ) | const [inline] |
void L1Track::decodeRank | ( | const unsigned & | rank, |
unsigned & | pt, | ||
unsigned & | quality | ||
) | [static] |
Definition at line 140 of file L1Track.cc.
References L1MuRegionalCand::PT_LENGTH.
Referenced by MuonCandProducerMon::produce().
{ if(rank == 0) { quality = 0; pt = 0; } else { quality = rank >> L1MuRegionalCand::PT_LENGTH; pt = rank & ( (1<<L1MuRegionalCand::PT_LENGTH) - 1); } }
unsigned csc::L1Track::deltaPhi12 | ( | void | ) | const [inline] |
unsigned csc::L1Track::deltaPhi23 | ( | void | ) | const [inline] |
unsigned L1Track::encodeRank | ( | const unsigned & | pt, |
const unsigned & | quality | ||
) | [static] |
Definition at line 134 of file L1Track.cc.
References L1MuRegionalCand::PT_LENGTH.
{ if(pt == 0) return 0; return pt | (quality << L1MuRegionalCand::PT_LENGTH); }
unsigned csc::L1Track::endcap | ( | ) | const [inline] |
unsigned csc::L1Track::front_rear | ( | ) | const [inline] |
unsigned csc::L1Track::localPhi | ( | ) | const [inline] |
Definition at line 35 of file L1Track.h.
References m_lphi.
Referenced by CSCTFanalyzer::analyze().
{ return m_lphi; }
unsigned csc::L1Track::mb1ID | ( | ) | const [inline] |
Definition at line 42 of file L1Track.h.
References mb1_id.
Referenced by CSCTFanalyzer::analyze().
{ return mb1_id; }
unsigned csc::L1Track::mb1Tbin | ( | void | ) | const [inline] |
unsigned csc::L1Track::me1ID | ( | ) | const [inline] |
Definition at line 38 of file L1Track.h.
References me1_id.
Referenced by CSCTFanalyzer::analyze().
{ return me1_id; }
unsigned csc::L1Track::me1Tbin | ( | void | ) | const [inline] |
unsigned csc::L1Track::me2ID | ( | ) | const [inline] |
Definition at line 39 of file L1Track.h.
References me2_id.
Referenced by CSCTFanalyzer::analyze().
{ return me2_id; }
unsigned csc::L1Track::me2Tbin | ( | void | ) | const [inline] |
unsigned csc::L1Track::me3ID | ( | ) | const [inline] |
Definition at line 40 of file L1Track.h.
References me3_id.
Referenced by CSCTFanalyzer::analyze().
{ return me3_id; }
unsigned csc::L1Track::me3Tbin | ( | void | ) | const [inline] |
unsigned csc::L1Track::me4ID | ( | ) | const [inline] |
Definition at line 41 of file L1Track.h.
References me4_id.
Referenced by CSCTFanalyzer::analyze().
{ return me4_id; }
unsigned csc::L1Track::me4Tbin | ( | void | ) | const [inline] |
unsigned csc::L1Track::mode | ( | void | ) | const [inline] |
Definition at line 88 of file L1Track.h.
References m_ptAddress.
Referenced by CSCTFanalyzer::analyze(), and modeExtended().
{ return (m_ptAddress>>16)&0xF; }
unsigned L1Track::modeExtended | ( | void | ) | const |
Definition at line 213 of file L1Track.cc.
References m_ptAddress, and mode().
{ unsigned modeExt = mode(); unsigned fr = (m_ptAddress>>21)&0x1; if (modeExt ==11 && fr==1) modeExt = 17; else if (modeExt==12 && fr==1) modeExt = 18; else if (modeExt==14 && fr==1) modeExt = 16; return modeExt; }
bool L1Track::operator!= | ( | const csc::L1Track & | rhs | ) | const |
bool L1Track::operator< | ( | const csc::L1Track & | rhs | ) | const |
bool L1Track::operator<= | ( | const csc::L1Track & | rhs | ) | const |
const csc::L1Track & L1Track::operator= | ( | const csc::L1Track & | rhs | ) |
Definition at line 77 of file L1Track.cc.
References L1MuRegionalCand::bx(), L1MuRegionalCand::charge_packed(), L1MuRegionalCand::charge_valid_packed(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::finehalo_packed(), L1MuRegionalCand::getDataWord(), m_bc0, m_bx0, m_empty, m_endcap, m_fr, m_lphi, m_mbTbin, m_me1Tbin, m_me2Tbin, m_me3Tbin, m_me4Tbin, m_name, m_output_link, m_ptAddress, m_rank, m_se, m_sector, m_winner, mb1_id, me1_id, me2_id, me3_id, me4_id, L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), L1MuRegionalCand::setBx(), L1MuRegionalCand::setChargePacked(), L1MuRegionalCand::setChargeValidPacked(), L1MuRegionalCand::setDataWord(), L1MuRegionalCand::setEtaPacked(), L1MuRegionalCand::setFineHaloPacked(), L1MuRegionalCand::setPhiPacked(), L1MuRegionalCand::setPtPacked(), L1MuRegionalCand::setQualityPacked(), L1MuRegionalCand::setType(), and L1MuRegionalCand::type_idx().
{ if(this != &rhs) { m_fr=rhs.m_fr; m_se=rhs.m_se; m_bx0=rhs.m_bx0; m_bc0=rhs.m_bc0; m_empty = rhs.m_empty; this->setBx(rhs.bx()); this->setDataWord(rhs.getDataWord()); m_name = rhs.m_name; m_lphi = rhs.m_lphi; this->setType(rhs.type_idx()); this->setPhiPacked(rhs.phi_packed()); this->setEtaPacked(rhs.eta_packed()); this->setPtPacked(rhs.pt_packed()); this->setChargePacked(rhs.charge_packed()); this->setChargeValidPacked(rhs.charge_valid_packed()); this->setFineHaloPacked(rhs.finehalo_packed()); this->setQualityPacked(rhs.quality_packed()); m_endcap = rhs.m_endcap; m_sector = rhs.m_sector; m_ptAddress = rhs.m_ptAddress; m_rank = rhs.m_rank; me1_id = rhs.me1_id; me2_id = rhs.me2_id; me3_id = rhs.me3_id; me4_id = rhs.me4_id; mb1_id = rhs.mb1_id; m_me1Tbin = rhs.m_me1Tbin; m_me2Tbin = rhs.m_me2Tbin; m_me3Tbin = rhs.m_me3Tbin; m_me4Tbin = rhs.m_me4Tbin; m_mbTbin = rhs.m_mbTbin; m_output_link = rhs.m_output_link; m_winner = rhs.m_winner; } return *this; }
bool L1Track::operator== | ( | const csc::L1Track & | rhs | ) | const |
bool L1Track::operator> | ( | const csc::L1Track & | rhs | ) | const |
bool L1Track::operator>= | ( | const csc::L1Track & | rhs | ) | const |
unsigned csc::L1Track::outputLink | ( | ) | const [inline] |
Definition at line 61 of file L1Track.h.
References m_output_link.
Referenced by CSCTFanalyzer::analyze().
{return m_output_link;}
void L1Track::Print | ( | void | ) | const |
Definition at line 184 of file L1Track.cc.
References BX(), L1MuRegionalCand::charge_packed(), gather_cfg::cout, L1MuRegionalCand::empty(), endcap(), L1MuRegionalCand::eta_packed(), L1MuRegionalCand::phi_packed(), L1MuRegionalCand::pt_packed(), L1MuRegionalCand::quality_packed(), and winner().
{ if (!empty()) { std::cout << "\t Pt(int): " << " " << pt_packed() << " Phi(int): " << " " << phi_packed() << " Eta(int): " << " " << eta_packed() << " Quality: " << " " << quality_packed() << " charge: " << " " << charge_packed() << " side: " << " " << endcap() << " bx: " << " " << BX() << " Winner: " << " " << winner() << std::endl; } else { std::cout <<"\t Empty track!\n"; std::cout << "\t Pt(int): " << " " << "unassigned or zero" << " Phi(int): " << " " << phi_packed() << " Eta(int): " << " " << eta_packed() << " Quality: " << " " << "unassigned or zero" << " charge: " << " " << charge_packed() << " side: " << " " << endcap() << " bx: " << " " << BX() << " Winner: " << " " << winner() << std::endl; } }
unsigned csc::L1Track::ptLUTAddress | ( | ) | const [inline] |
Definition at line 56 of file L1Track.h.
References m_ptAddress.
Referenced by CSCTFanalyzer::analyze(), and CSCTFSectorProcessor::run().
{ return m_ptAddress; }
unsigned L1Track::rank | ( | ) | const |
Definition at line 118 of file L1Track.cc.
References m_rank.
Referenced by CSCTFanalyzer::analyze(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and setRank().
{ return m_rank; }
unsigned csc::L1Track::sector | ( | ) | const [inline] |
Definition at line 45 of file L1Track.h.
References m_sector.
Referenced by CSCTFanalyzer::analyze().
{ return m_sector; }
void csc::L1Track::set_front_rear | ( | unsigned | fr | ) | [inline] |
void csc::L1Track::setBits | ( | unsigned | se, |
unsigned | bx0, | ||
unsigned | bc0 | ||
) | [inline] |
void csc::L1Track::setLocalPhi | ( | const unsigned & | lphi | ) | [inline] |
Definition at line 36 of file L1Track.h.
References m_lphi.
Referenced by CSCTFSectorProcessor::run(), and CSCTFSPCoreLogic::run().
{ m_lphi = lphi; }
void csc::L1Track::setOutputLink | ( | unsigned | oPL | ) | [inline] |
Definition at line 62 of file L1Track.h.
References m_output_link.
Referenced by CSCTFanalyzer::analyze(), CSCTFSectorProcessor::run(), and CSCTFSPCoreLogic::run().
{ m_output_link = oPL; }
void csc::L1Track::setPtLUTAddress | ( | const unsigned & | adr | ) | [inline] |
Definition at line 58 of file L1Track.h.
References m_ptAddress.
Referenced by CSCTFSectorProcessor::run(), and CSCTFSPCoreLogic::run().
{ m_ptAddress = adr; }
void csc::L1Track::setRank | ( | const unsigned & | rank | ) | [inline] |
void L1Track::setStationIds | ( | const unsigned & | me1, |
const unsigned & | me2, | ||
const unsigned & | me3, | ||
const unsigned & | me4, | ||
const unsigned & | mb1 | ||
) |
Definition at line 123 of file L1Track.cc.
References MuonStationSelectors_cff::mb1, mb1_id, me1_id, me2_id, me3_id, and me4_id.
Referenced by CSCTFSectorProcessor::run(), and CSCTFSPCoreLogic::run().
void csc::L1Track::setTbins | ( | unsigned | me1, |
unsigned | me2, | ||
unsigned | me3, | ||
unsigned | me4, | ||
unsigned | mb | ||
) | [inline] |
bool csc::L1Track::sign | ( | void | ) | const [inline] |
unsigned csc::L1Track::station | ( | ) | const [inline] |
unsigned csc::L1Track::subsector | ( | ) | const [inline] |
bool csc::L1Track::synch_err | ( | void | ) | const [inline] |
bool csc::L1Track::winner | ( | ) | const [inline] |
friend class ::CSCTFSPCoreLogic [friend] |
friend class ::CSCTFUnpacker [friend] |
friend class CSCTFSectorProcessor [friend] |
bool csc::L1Track::m_bc0 [private] |
bool csc::L1Track::m_bx0 [private] |
bool csc::L1Track::m_empty [private] |
Definition at line 117 of file L1Track.h.
Referenced by L1Track(), and operator=().
unsigned csc::L1Track::m_endcap [private] |
Definition at line 109 of file L1Track.h.
Referenced by endcap(), L1Track(), and operator=().
unsigned csc::L1Track::m_fr [private] |
Definition at line 113 of file L1Track.h.
Referenced by front_rear(), L1Track(), operator=(), and set_front_rear().
unsigned csc::L1Track::m_lphi [private] |
Definition at line 111 of file L1Track.h.
Referenced by L1Track(), localPhi(), operator=(), and setLocalPhi().
unsigned csc::L1Track::m_mbTbin [private] |
Definition at line 122 of file L1Track.h.
Referenced by L1Track(), mb1Tbin(), operator=(), and setTbins().
unsigned csc::L1Track::m_me1Tbin [private] |
Definition at line 122 of file L1Track.h.
Referenced by L1Track(), me1Tbin(), operator=(), and setTbins().
unsigned csc::L1Track::m_me2Tbin [private] |
Definition at line 122 of file L1Track.h.
Referenced by L1Track(), me2Tbin(), operator=(), and setTbins().
unsigned csc::L1Track::m_me3Tbin [private] |
Definition at line 122 of file L1Track.h.
Referenced by L1Track(), me3Tbin(), operator=(), and setTbins().
unsigned csc::L1Track::m_me4Tbin [private] |
Definition at line 122 of file L1Track.h.
Referenced by L1Track(), me4Tbin(), operator=(), and setTbins().
std::string csc::L1Track::m_name [private] |
Definition at line 107 of file L1Track.h.
Referenced by L1Track(), and operator=().
unsigned csc::L1Track::m_output_link [private] |
Definition at line 116 of file L1Track.h.
Referenced by L1Track(), operator=(), outputLink(), and setOutputLink().
unsigned csc::L1Track::m_ptAddress [private] |
Definition at line 112 of file L1Track.h.
Referenced by addressEta(), deltaPhi12(), deltaPhi23(), L1Track(), mode(), modeExtended(), operator=(), ptLUTAddress(), setPtLUTAddress(), and sign().
unsigned csc::L1Track::m_rank [private] |
bool csc::L1Track::m_se [private] |
Definition at line 121 of file L1Track.h.
Referenced by L1Track(), operator=(), setBits(), and synch_err().
unsigned csc::L1Track::m_sector [private] |
Definition at line 109 of file L1Track.h.
Referenced by L1Track(), operator=(), and sector().
bool csc::L1Track::m_winner [private] |
Definition at line 118 of file L1Track.h.
Referenced by L1Track(), operator=(), and winner().
unsigned csc::L1Track::mb1_id [private] |
Definition at line 114 of file L1Track.h.
Referenced by L1Track(), mb1ID(), operator=(), and setStationIds().
unsigned csc::L1Track::me1_id [private] |
Definition at line 114 of file L1Track.h.
Referenced by L1Track(), me1ID(), operator=(), and setStationIds().
unsigned csc::L1Track::me2_id [private] |
Definition at line 114 of file L1Track.h.
Referenced by L1Track(), me2ID(), operator=(), and setStationIds().
unsigned csc::L1Track::me3_id [private] |
Definition at line 114 of file L1Track.h.
Referenced by L1Track(), me3ID(), operator=(), and setStationIds().
unsigned csc::L1Track::me4_id [private] |
Definition at line 114 of file L1Track.h.
Referenced by L1Track(), me4ID(), operator=(), and setStationIds().