#include <L1MuDTTrackCand.h>
Public Member Functions | |
L1MuDTTrackCand () | |
L1MuDTTrackCand (unsigned dataword, int bx, int uwh, int usc, int utag, int adr1, int adr2, int adr3, int adr4, int utc) | |
L1MuDTTrackCand (unsigned type_idx, unsigned phi, unsigned eta, unsigned pt, unsigned charge, unsigned ch_valid, unsigned finehalo, unsigned quality, int bx, int uwh, int usc, int utag, int adr1, int adr2, int adr3, int adr4) | |
int | scNum () const |
void | setAdd (int ust) |
void | setTC () |
int | stNum (int ust) const |
int | TCNum () const |
int | TrkTag () const |
int | whNum () const |
~L1MuDTTrackCand () | |
Private Attributes | |
int | sector |
int | TClassCode |
int | TrkAdd [4] |
int | TrkTagCode |
int | wheel |
Definition at line 34 of file L1MuDTTrackCand.h.
L1MuDTTrackCand::L1MuDTTrackCand | ( | ) |
Definition at line 36 of file L1MuDTTrackCand.cc.
References sector, TClassCode, TrkAdd, TrkTagCode, and wheel.
: L1MuRegionalCand(0,0) { wheel = 0; sector = 0; TrkTagCode = -1; TrkAdd[0] = 3; TrkAdd[1] = 15; TrkAdd[2] = 15; TrkAdd[3] = 15; TClassCode = 11; }
L1MuDTTrackCand::L1MuDTTrackCand | ( | unsigned | dataword, |
int | bx, | ||
int | uwh, | ||
int | usc, | ||
int | utag, | ||
int | adr1, | ||
int | adr2, | ||
int | adr3, | ||
int | adr4, | ||
int | utc | ||
) |
Definition at line 48 of file L1MuDTTrackCand.cc.
References sector, setAdd(), TClassCode, TrkAdd, TrkTagCode, and wheel.
: L1MuRegionalCand(dataword, bx) { wheel = uwh; sector = usc; TrkTagCode = utag; TrkAdd[0] = adr1&0x03; TrkAdd[1] = adr2; TrkAdd[2] = adr3; TrkAdd[3] = adr4; TClassCode = utc; setAdd(1); setAdd(2); setAdd(3); setAdd(4); }
L1MuDTTrackCand::L1MuDTTrackCand | ( | unsigned | type_idx, |
unsigned | phi, | ||
unsigned | eta, | ||
unsigned | pt, | ||
unsigned | charge, | ||
unsigned | ch_valid, | ||
unsigned | finehalo, | ||
unsigned | quality, | ||
int | bx, | ||
int | uwh, | ||
int | usc, | ||
int | utag, | ||
int | adr1, | ||
int | adr2, | ||
int | adr3, | ||
int | adr4 | ||
) |
Definition at line 67 of file L1MuDTTrackCand.cc.
References sector, L1MuRegionalCand::setChargePacked(), L1MuRegionalCand::setChargeValidPacked(), L1MuRegionalCand::setEtaPacked(), L1MuRegionalCand::setFineHaloPacked(), L1MuRegionalCand::setPhiPacked(), L1MuRegionalCand::setPtPacked(), L1MuRegionalCand::setQualityPacked(), setTC(), L1MuRegionalCand::setType(), TrkAdd, TrkTagCode, and wheel.
: L1MuRegionalCand(0, bx) { setType(type_idx); setPhiPacked(phi); setEtaPacked(eta); setPtPacked(pt); setChargePacked(charge); setChargeValidPacked(ch_valid); setFineHaloPacked(finehalo); setQualityPacked(quality); wheel = uwh; sector = usc; TrkTagCode = utag; TrkAdd[0] = adr1; TrkAdd[1] = adr2; TrkAdd[2] = adr3; TrkAdd[3] = adr4; setTC(); }
L1MuDTTrackCand::~L1MuDTTrackCand | ( | ) |
Definition at line 96 of file L1MuDTTrackCand.cc.
{ }
int L1MuDTTrackCand::scNum | ( | ) | const |
void L1MuDTTrackCand::setAdd | ( | int | ust | ) |
Definition at line 144 of file L1MuDTTrackCand.cc.
References stNum(), and TrkAdd.
Referenced by L1MuDTTrackCand().
{ unsigned int uadd = stNum(ust); switch (uadd) { case 0: { TrkAdd[ust-1] = 8; break; } case 1: { TrkAdd[ust-1] = 9; break; } case 2: { TrkAdd[ust-1] = 0; break; } case 3: { TrkAdd[ust-1] = 1; break; } case 4: { TrkAdd[ust-1] = 10; break; } case 5: { TrkAdd[ust-1] = 11; break; } case 6: { TrkAdd[ust-1] = 2; break; } case 7: { TrkAdd[ust-1] = 3; break; } case 8: { TrkAdd[ust-1] = 12; break; } case 9: { TrkAdd[ust-1] = 13; break; } case 10: { TrkAdd[ust-1] = 4; break; } case 11: { TrkAdd[ust-1] = 5; break; } case 15: { TrkAdd[ust-1] = 15; break; } default: { TrkAdd[ust-1] = 15; break; } } if (ust!=1) return; switch (uadd) { case 0: { TrkAdd[0] = 2; break; } case 1: { TrkAdd[0] = 1; break; } case 15: { TrkAdd[0] = 3; break; } default: { TrkAdd[0] = 3; break; } } }
void L1MuDTTrackCand::setTC | ( | ) |
Definition at line 122 of file L1MuDTTrackCand.cc.
References L1MuRegionalCand::quality_packed(), TClassCode, and TrkAdd.
Referenced by L1MuDTTrackCand().
{ unsigned int uqua = quality_packed(); switch (uqua) { case 7: { TClassCode = 0; break; } case 6: { TClassCode = 1; if ( TrkAdd[3] != 15 ) TClassCode = 2; break; } case 5: { TClassCode = 3; break; } case 4: { TClassCode = 4; break; } case 3: { TClassCode = 5; if ( TrkAdd[3] != 15 ) TClassCode = 6; if ( TrkAdd[2] != 15 ) TClassCode = 7; break; } case 2: { TClassCode = 8; if ( TrkAdd[2] != 15 ) TClassCode = 9; break; } case 1: { TClassCode = 10; break; } default: { TClassCode = 11; break; } } }
int L1MuDTTrackCand::stNum | ( | int | ust | ) | const |
Definition at line 110 of file L1MuDTTrackCand.cc.
References TrkAdd.
Referenced by setAdd().
{ return TrkAdd[ust-1]; }
int L1MuDTTrackCand::TCNum | ( | ) | const |
int L1MuDTTrackCand::TrkTag | ( | ) | const |
int L1MuDTTrackCand::whNum | ( | ) | const |
int L1MuDTTrackCand::sector [private] |
Definition at line 64 of file L1MuDTTrackCand.h.
Referenced by L1MuDTTrackCand(), and scNum().
int L1MuDTTrackCand::TClassCode [private] |
Definition at line 66 of file L1MuDTTrackCand.h.
Referenced by L1MuDTTrackCand(), setTC(), and TCNum().
int L1MuDTTrackCand::TrkAdd[4] [private] |
Definition at line 67 of file L1MuDTTrackCand.h.
Referenced by L1MuDTTrackCand(), setAdd(), setTC(), and stNum().
int L1MuDTTrackCand::TrkTagCode [private] |
Definition at line 65 of file L1MuDTTrackCand.h.
Referenced by L1MuDTTrackCand(), and TrkTag().
int L1MuDTTrackCand::wheel [private] |
Definition at line 63 of file L1MuDTTrackCand.h.
Referenced by L1MuDTTrackCand(), and whNum().