CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes | Friends
csc::L1Track Class Reference

#include <L1Track.h>

Inheritance diagram for csc::L1Track:
L1MuRegionalCand

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 ()
 
 L1Track (const csc::L1TrackId &)
 
 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::L1Trackoperator= (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 ()
 
- Public Member Functions inherited from L1MuRegionalCand
int bx () const
 return bunch crossing identifier More...
 
unsigned charge_packed () const
 return charge packed as in hardware (0=pos, 1=neg) More...
 
unsigned charge_valid_packed () const
 return charge valid packed as in hardware (1=valid, 0=not valid) More...
 
bool chargeValid () const
 is the charge valid ? More...
 
int chargeValue () const
 get charge More...
 
virtual bool empty () const
 return empty flag More...
 
unsigned eta_packed () const
 return eta packed as in hardware More...
 
float etaValue () const
 get eta-value of muon candidate More...
 
unsigned finehalo_packed () const
 return eta-fine (for DT) / halo (for CSC) bit More...
 
unsigned getDataWord () const
 return data word More...
 
bool isFineHalo () const
 is it fine (DT) / halo (CSC) ? More...
 
 L1MuRegionalCand (unsigned dataword=0, int bx=0)
 constructor from data word More...
 
 L1MuRegionalCand (unsigned type_idx, unsigned phi, unsigned eta, unsigned pt, unsigned charge, unsigned ch_valid, unsigned finehalo, unsigned quality, int bx)
 constructor from packed members More...
 
unsigned phi_packed () const
 return phi packed as in hardware More...
 
float phiValue () const
 get phi-value of muon candidate in radians (low edge of bin) More...
 
virtual void print () const
 print candidate More...
 
unsigned pt_packed () const
 return pt packed as in hardware More...
 
float ptValue () const
 get pt-value of muon candidate in GeV More...
 
unsigned int quality () const
 return quality More...
 
unsigned int quality_packed () const
 return quality packed as in hardware More...
 
virtual void reset ()
 reset More...
 
void setBx (int bx)
 Set Bunch Crossing. More...
 
void setChargePacked (unsigned ch)
 Set Charge (0=pos, 1=neg) More...
 
void setChargeValid (bool valid)
 Set Charge Valid. More...
 
void setChargeValidPacked (unsigned valid)
 Set Charge Valid. More...
 
void setChargeValue (int charge)
 Set Charge Value: -1, 1. More...
 
void setDataWord (unsigned dataword)
 Set data word. More...
 
void setEtaPacked (unsigned eta)
 Set Eta: 6-bit code. More...
 
void setEtaValue (float etaVal)
 Set Eta Value (need to set type, first) More...
 
void setFineHalo (bool fh)
 Set Fine / Halo. More...
 
void setFineHaloPacked (unsigned fh)
 Set Fine / Halo. More...
 
void setPhiPacked (unsigned phi)
 Set Phi: 0..143. More...
 
void setPhiValue (float phiVal)
 Set Phi Value. More...
 
void setPtPacked (unsigned pt)
 Set Pt: 0..31. More...
 
void setPtValue (float ptVal)
 Set Pt Value. More...
 
void setQualityPacked (unsigned qual)
 Set Quality: 0..7. More...
 
void setType (unsigned type)
 Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC. More...
 
unsigned type_idx () const
 return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC More...
 
virtual ~L1MuRegionalCand ()
 destructor More...
 

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
 

Additional Inherited Members

- Public Types inherited from L1MuRegionalCand
enum  { PHI_START =0 }
 
enum  { PHI_LENGTH = 8 }
 
enum  { PT_START =8 }
 
enum  { PT_LENGTH = 5 }
 
enum  { QUAL_START =13 }
 
enum  { QUAL_LENGTH = 3 }
 
enum  { ETA_START =16 }
 
enum  { ETA_LENGTH = 6 }
 
enum  { FINEHALO_START =22 }
 
enum  { FINEHALO_LENGTH = 1 }
 
enum  { CHARGE_START =23 }
 
enum  { CHARGE_LENGTH = 1 }
 
enum  { CHVALID_START =24 }
 
enum  { CHVALID_LENGTH = 1 }
 
enum  { TYPE_START =30 }
 
enum  { TYPE_LENGTH = 2 }
 

Detailed Description

Definition at line 21 of file L1Track.h.

Constructor & Destructor Documentation

csc::L1Track::L1Track ( )
inline

Definition at line 24 of file L1Track.h.

References L1MuRegionalCand::setPtPacked(), and L1MuRegionalCand::setType().

24 : L1MuRegionalCand(), m_name("csc::L1Track") { setType(2); setPtPacked(0); }
std::string m_name
Definition: L1Track.h:107
L1MuRegionalCand(unsigned dataword=0, int bx=0)
constructor from data word
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
void setPtPacked(unsigned pt)
Set Pt: 0..31.
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().

6  : m_name("csc::L1Track")
7  {
8  m_endcap = id.endcap();
9  m_sector = id.sector();
10  m_lphi = 0;
11  m_ptAddress = 0;
12  m_empty = true;
13  setType(2);
14  setPtPacked(0);
15  m_rank = 0;
16  me1_id = 0;
17  me2_id = 0;
18  me3_id = 0;
19  me4_id = 0;
20  mb1_id = 0;
21  m_me1Tbin = 0;
22  m_me2Tbin = 0;
23  m_me3Tbin = 0;
24  m_me4Tbin = 0;
25  m_mbTbin = 0;
26  m_output_link = 0;
27  m_winner = false;
28  m_fr=0;
29  m_se=true; m_bx0=true; m_bc0=true;
30  }
unsigned m_me2Tbin
Definition: L1Track.h:122
std::string m_name
Definition: L1Track.h:107
unsigned m_ptAddress
Definition: L1Track.h:112
bool m_bc0
Definition: L1Track.h:121
unsigned m_me3Tbin
Definition: L1Track.h:122
unsigned me3_id
Definition: L1Track.h:114
bool m_se
Definition: L1Track.h:121
unsigned m_mbTbin
Definition: L1Track.h:122
unsigned mb1_id
Definition: L1Track.h:114
unsigned m_me1Tbin
Definition: L1Track.h:122
unsigned me2_id
Definition: L1Track.h:114
unsigned me1_id
Definition: L1Track.h:114
unsigned m_sector
Definition: L1Track.h:109
unsigned m_output_link
Definition: L1Track.h:116
unsigned m_me4Tbin
Definition: L1Track.h:122
unsigned m_rank
Definition: L1Track.h:115
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
unsigned m_fr
Definition: L1Track.h:113
void setPtPacked(unsigned pt)
Set Pt: 0..31.
unsigned m_lphi
Definition: L1Track.h:111
unsigned me4_id
Definition: L1Track.h:114
bool m_bx0
Definition: L1Track.h:121
unsigned m_endcap
Definition: L1Track.h:109
bool m_winner
Definition: L1Track.h:118
bool m_empty
Definition: L1Track.h:117
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().

32  : L1MuRegionalCand(rhs.type_idx(),rhs.phi_packed(),rhs.eta_packed(),
33  rhs.pt_packed(),rhs.charge_packed(),
35  rhs.quality_packed(),rhs.bx()),
36  m_name(rhs.m_name)
37  {
38  this->setBx(rhs.bx());
39  this->setDataWord(rhs.getDataWord());
40  m_name = rhs.m_name;
41  this->setType(rhs.type_idx());
42  this->setPhiPacked(rhs.phi_packed());
43  this->setEtaPacked(rhs.eta_packed());
44  this->setPtPacked(rhs.pt_packed());
45  this->setChargePacked(rhs.charge_packed());
48  this->setQualityPacked(rhs.quality_packed());
49  m_empty = rhs.m_empty;
50  m_lphi = rhs.m_lphi;
51  m_endcap = rhs.m_endcap;
52  m_sector = rhs.m_sector;
54  m_rank = rhs.m_rank;
55  me1_id = rhs.me1_id;
56  me2_id = rhs.me2_id;
57  me3_id = rhs.me3_id;
58  me4_id = rhs.me4_id;
59  mb1_id = rhs.mb1_id;
60  m_me1Tbin = rhs.m_me1Tbin;
61  m_me2Tbin = rhs.m_me2Tbin;
62  m_me3Tbin = rhs.m_me3Tbin;
63  m_me4Tbin = rhs.m_me4Tbin;
64  m_mbTbin = rhs.m_mbTbin;
66  m_winner = rhs.m_winner;
67  m_fr=rhs.m_fr;
68  m_se=rhs.m_se;
69  m_bx0=rhs.m_bx0;
70  m_bc0=rhs.m_bc0;
71  }
unsigned m_me2Tbin
Definition: L1Track.h:122
unsigned charge_valid_packed() const
return charge valid packed as in hardware (1=valid, 0=not valid)
std::string m_name
Definition: L1Track.h:107
unsigned m_ptAddress
Definition: L1Track.h:112
bool m_bc0
Definition: L1Track.h:121
unsigned m_me3Tbin
Definition: L1Track.h:122
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
unsigned me3_id
Definition: L1Track.h:114
bool m_se
Definition: L1Track.h:121
L1MuRegionalCand(unsigned dataword=0, int bx=0)
constructor from data word
unsigned m_mbTbin
Definition: L1Track.h:122
unsigned mb1_id
Definition: L1Track.h:114
void setChargeValidPacked(unsigned valid)
Set Charge Valid.
void setBx(int bx)
Set Bunch Crossing.
unsigned m_me1Tbin
Definition: L1Track.h:122
unsigned me2_id
Definition: L1Track.h:114
unsigned me1_id
Definition: L1Track.h:114
unsigned m_sector
Definition: L1Track.h:109
void setDataWord(unsigned dataword)
Set data word.
unsigned getDataWord() const
return data word
unsigned m_output_link
Definition: L1Track.h:116
unsigned m_me4Tbin
Definition: L1Track.h:122
unsigned m_rank
Definition: L1Track.h:115
unsigned eta_packed() const
return eta packed as in hardware
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
unsigned finehalo_packed() const
return eta-fine (for DT) / halo (for CSC) bit
void setChargePacked(unsigned ch)
Set Charge (0=pos, 1=neg)
unsigned m_fr
Definition: L1Track.h:113
void setPtPacked(unsigned pt)
Set Pt: 0..31.
unsigned m_lphi
Definition: L1Track.h:111
unsigned me4_id
Definition: L1Track.h:114
void setPhiPacked(unsigned phi)
Set Phi: 0..143.
bool m_bx0
Definition: L1Track.h:121
unsigned int quality_packed() const
return quality packed as in hardware
int bx() const
return bunch crossing identifier
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
void setFineHaloPacked(unsigned fh)
Set Fine / Halo.
unsigned m_endcap
Definition: L1Track.h:109
unsigned pt_packed() const
return pt packed as in hardware
unsigned type_idx() const
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
bool m_winner
Definition: L1Track.h:118
bool m_empty
Definition: L1Track.h:117
unsigned phi_packed() const
return phi packed as in hardware
L1Track::~L1Track ( )
virtual

Definition at line 73 of file L1Track.cc.

74  {
75  }

Member Function Documentation

unsigned csc::L1Track::addressEta ( void  ) const
inline

Definition at line 87 of file L1Track.h.

References m_ptAddress.

87 { return (m_ptAddress>>12)&0xF; }
unsigned m_ptAddress
Definition: L1Track.h:112
bool csc::L1Track::bc0 ( void  ) const
inline

Definition at line 92 of file L1Track.h.

References m_bc0.

Referenced by setBits().

92 { return m_bc0; }
bool m_bc0
Definition: L1Track.h:121
int csc::L1Track::BX ( ) const
inline

Definition at line 51 of file L1Track.h.

References L1MuRegionalCand::bx().

Referenced by CSCTFanalyzer::analyze(), and Print().

51 { return bx(); }
int bx() const
return bunch crossing identifier
bool csc::L1Track::bx0 ( void  ) const
inline

Definition at line 91 of file L1Track.h.

References m_bx0.

Referenced by setBits().

91 { return m_bx0; }
bool m_bx0
Definition: L1Track.h:121
unsigned csc::L1Track::cscid ( ) const
inline

Definition at line 49 of file L1Track.h.

49 { return 0; }
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().

141  {
142  if(rank == 0)
143  {
144  quality = 0;
145  pt = 0;
146  }
147  else
148  {
150  pt = rank & ( (1<<L1MuRegionalCand::PT_LENGTH) - 1);
151  }
152  }
unsigned rank() const
Definition: L1Track.cc:118
unsigned int quality() const
return quality
unsigned csc::L1Track::deltaPhi12 ( void  ) const
inline

Definition at line 85 of file L1Track.h.

References m_ptAddress.

85 { return m_ptAddress&0xFF; }
unsigned m_ptAddress
Definition: L1Track.h:112
unsigned csc::L1Track::deltaPhi23 ( void  ) const
inline

Definition at line 86 of file L1Track.h.

References m_ptAddress.

86 { return (m_ptAddress>>8)&0xF; }
unsigned m_ptAddress
Definition: L1Track.h:112
unsigned L1Track::encodeRank ( const unsigned &  pt,
const unsigned &  quality 
)
static

Definition at line 134 of file L1Track.cc.

References L1MuRegionalCand::PT_LENGTH.

135  {
136  if(pt == 0) return 0;
137  return pt | (quality << L1MuRegionalCand::PT_LENGTH);
138  }
unsigned int quality() const
return quality
unsigned csc::L1Track::endcap ( ) const
inline

Definition at line 44 of file L1Track.h.

References m_endcap.

Referenced by CSCTFanalyzer::analyze(), geometryXMLparser.CSCAlignable::index(), and Print().

44 { return m_endcap; }
unsigned m_endcap
Definition: L1Track.h:109
unsigned csc::L1Track::front_rear ( ) const
inline

Definition at line 57 of file L1Track.h.

References m_fr.

57 { return m_fr; }
unsigned m_fr
Definition: L1Track.h:113
unsigned csc::L1Track::localPhi ( ) const
inline

Definition at line 35 of file L1Track.h.

References m_lphi.

Referenced by CSCTFanalyzer::analyze().

35 { return m_lphi; }
unsigned m_lphi
Definition: L1Track.h:111
unsigned csc::L1Track::mb1ID ( ) const
inline

Definition at line 42 of file L1Track.h.

References mb1_id.

Referenced by CSCTFanalyzer::analyze().

42 { return mb1_id; }
unsigned mb1_id
Definition: L1Track.h:114
unsigned csc::L1Track::mb1Tbin ( void  ) const
inline

Definition at line 97 of file L1Track.h.

References m_mbTbin.

97 { return m_mbTbin; }
unsigned m_mbTbin
Definition: L1Track.h:122
unsigned csc::L1Track::me1ID ( ) const
inline

Definition at line 38 of file L1Track.h.

References me1_id.

Referenced by CSCTFanalyzer::analyze().

38 { return me1_id; }
unsigned me1_id
Definition: L1Track.h:114
unsigned csc::L1Track::me1Tbin ( void  ) const
inline

Definition at line 93 of file L1Track.h.

References m_me1Tbin.

93 { return m_me1Tbin; }
unsigned m_me1Tbin
Definition: L1Track.h:122
unsigned csc::L1Track::me2ID ( ) const
inline

Definition at line 39 of file L1Track.h.

References me2_id.

Referenced by CSCTFanalyzer::analyze().

39 { return me2_id; }
unsigned me2_id
Definition: L1Track.h:114
unsigned csc::L1Track::me2Tbin ( void  ) const
inline

Definition at line 94 of file L1Track.h.

References m_me2Tbin.

94 { return m_me2Tbin; }
unsigned m_me2Tbin
Definition: L1Track.h:122
unsigned csc::L1Track::me3ID ( ) const
inline

Definition at line 40 of file L1Track.h.

References me3_id.

Referenced by CSCTFanalyzer::analyze().

40 { return me3_id; }
unsigned me3_id
Definition: L1Track.h:114
unsigned csc::L1Track::me3Tbin ( void  ) const
inline

Definition at line 95 of file L1Track.h.

References m_me3Tbin.

95 { return m_me3Tbin; }
unsigned m_me3Tbin
Definition: L1Track.h:122
unsigned csc::L1Track::me4ID ( ) const
inline

Definition at line 41 of file L1Track.h.

References me4_id.

Referenced by CSCTFanalyzer::analyze().

41 { return me4_id; }
unsigned me4_id
Definition: L1Track.h:114
unsigned csc::L1Track::me4Tbin ( void  ) const
inline

Definition at line 96 of file L1Track.h.

References m_me4Tbin.

96 { return m_me4Tbin; }
unsigned m_me4Tbin
Definition: L1Track.h:122
unsigned csc::L1Track::mode ( void  ) const
inline

Definition at line 88 of file L1Track.h.

References m_ptAddress.

Referenced by CSCTFanalyzer::analyze(), and modeExtended().

88 { return (m_ptAddress>>16)&0xF; }
unsigned m_ptAddress
Definition: L1Track.h:112
unsigned L1Track::modeExtended ( void  ) const

Definition at line 213 of file L1Track.cc.

References m_ptAddress, and mode().

214  {
215  unsigned modeExt = mode();
216  unsigned fr = (m_ptAddress>>21)&0x1;
217 
218  if (modeExt ==11 && fr==1)
219  modeExt = 17;
220  else if (modeExt==12 && fr==1)
221  modeExt = 18;
222  else if (modeExt==14 && fr==1)
223  modeExt = 16;
224  return modeExt;
225  }
unsigned mode(void) const
Definition: L1Track.h:88
unsigned m_ptAddress
Definition: L1Track.h:112
bool L1Track::operator!= ( const csc::L1Track rhs) const

Definition at line 179 of file L1Track.cc.

References rank().

180  {
181  return (rank() != rhs.rank());
182  }
unsigned rank() const
Definition: L1Track.cc:118
bool L1Track::operator< ( const csc::L1Track rhs) const

Definition at line 159 of file L1Track.cc.

References rank().

160  {
161  return (rank() < rhs.rank());
162  }
unsigned rank() const
Definition: L1Track.cc:118
bool L1Track::operator<= ( const csc::L1Track rhs) const

Definition at line 169 of file L1Track.cc.

References rank().

170  {
171  return (rank() <= rhs.rank());
172  }
unsigned rank() const
Definition: L1Track.cc:118
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().

78  {
79  if(this != &rhs)
80  {
81  m_fr=rhs.m_fr;
82  m_se=rhs.m_se;
83  m_bx0=rhs.m_bx0;
84  m_bc0=rhs.m_bc0;
85  m_empty = rhs.m_empty;
86  this->setBx(rhs.bx());
87  this->setDataWord(rhs.getDataWord());
88  m_name = rhs.m_name;
89  m_lphi = rhs.m_lphi;
90  this->setType(rhs.type_idx());
91  this->setPhiPacked(rhs.phi_packed());
92  this->setEtaPacked(rhs.eta_packed());
93  this->setPtPacked(rhs.pt_packed());
94  this->setChargePacked(rhs.charge_packed());
97  this->setQualityPacked(rhs.quality_packed());
98  m_endcap = rhs.m_endcap;
99  m_sector = rhs.m_sector;
100  m_ptAddress = rhs.m_ptAddress;
101  m_rank = rhs.m_rank;
102  me1_id = rhs.me1_id;
103  me2_id = rhs.me2_id;
104  me3_id = rhs.me3_id;
105  me4_id = rhs.me4_id;
106  mb1_id = rhs.mb1_id;
107  m_me1Tbin = rhs.m_me1Tbin;
108  m_me2Tbin = rhs.m_me2Tbin;
109  m_me3Tbin = rhs.m_me3Tbin;
110  m_me4Tbin = rhs.m_me4Tbin;
111  m_mbTbin = rhs.m_mbTbin;
113  m_winner = rhs.m_winner;
114  }
115  return *this;
116  }
unsigned m_me2Tbin
Definition: L1Track.h:122
unsigned charge_valid_packed() const
return charge valid packed as in hardware (1=valid, 0=not valid)
std::string m_name
Definition: L1Track.h:107
unsigned m_ptAddress
Definition: L1Track.h:112
bool m_bc0
Definition: L1Track.h:121
unsigned m_me3Tbin
Definition: L1Track.h:122
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
unsigned me3_id
Definition: L1Track.h:114
bool m_se
Definition: L1Track.h:121
unsigned m_mbTbin
Definition: L1Track.h:122
unsigned mb1_id
Definition: L1Track.h:114
void setChargeValidPacked(unsigned valid)
Set Charge Valid.
void setBx(int bx)
Set Bunch Crossing.
unsigned m_me1Tbin
Definition: L1Track.h:122
unsigned me2_id
Definition: L1Track.h:114
unsigned me1_id
Definition: L1Track.h:114
unsigned m_sector
Definition: L1Track.h:109
void setDataWord(unsigned dataword)
Set data word.
unsigned getDataWord() const
return data word
unsigned m_output_link
Definition: L1Track.h:116
unsigned m_me4Tbin
Definition: L1Track.h:122
unsigned m_rank
Definition: L1Track.h:115
unsigned eta_packed() const
return eta packed as in hardware
void setType(unsigned type)
Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC.
unsigned finehalo_packed() const
return eta-fine (for DT) / halo (for CSC) bit
void setChargePacked(unsigned ch)
Set Charge (0=pos, 1=neg)
unsigned m_fr
Definition: L1Track.h:113
void setPtPacked(unsigned pt)
Set Pt: 0..31.
unsigned m_lphi
Definition: L1Track.h:111
unsigned me4_id
Definition: L1Track.h:114
void setPhiPacked(unsigned phi)
Set Phi: 0..143.
bool m_bx0
Definition: L1Track.h:121
unsigned int quality_packed() const
return quality packed as in hardware
int bx() const
return bunch crossing identifier
void setQualityPacked(unsigned qual)
Set Quality: 0..7.
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
void setFineHaloPacked(unsigned fh)
Set Fine / Halo.
unsigned m_endcap
Definition: L1Track.h:109
unsigned pt_packed() const
return pt packed as in hardware
unsigned type_idx() const
return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC
bool m_winner
Definition: L1Track.h:118
bool m_empty
Definition: L1Track.h:117
unsigned phi_packed() const
return phi packed as in hardware
bool L1Track::operator== ( const csc::L1Track rhs) const

Definition at line 174 of file L1Track.cc.

References rank().

175  {
176  return (rank() == rhs.rank());
177  }
unsigned rank() const
Definition: L1Track.cc:118
bool L1Track::operator> ( const csc::L1Track rhs) const

Definition at line 154 of file L1Track.cc.

References rank().

155  {
156  return (rank() > rhs.rank());
157  }
unsigned rank() const
Definition: L1Track.cc:118
bool L1Track::operator>= ( const csc::L1Track rhs) const

Definition at line 164 of file L1Track.cc.

References rank().

165  {
166  return (rank() >= rhs.rank());
167  }
unsigned rank() const
Definition: L1Track.cc:118
unsigned csc::L1Track::outputLink ( ) const
inline

Definition at line 61 of file L1Track.h.

References m_output_link.

Referenced by CSCTFanalyzer::analyze().

61 {return m_output_link;}
unsigned m_output_link
Definition: L1Track.h:116
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().

185  {
186  if (!empty())
187  {
188  std::cout << "\t Pt(int): " << " " << pt_packed()
189  << " Phi(int): " << " " << phi_packed()
190  << " Eta(int): " << " " << eta_packed()
191  << " Quality: " << " " << quality_packed()
192  << " charge: " << " " << charge_packed()
193  << " side: " << " " << endcap()
194  << " bx: " << " " << BX()
195  << " Winner: " << " " << winner()
196  << std::endl;
197  }
198  else
199  {
200  std::cout <<"\t Empty track!\n";
201  std::cout << "\t Pt(int): " << " " << "unassigned or zero"
202  << " Phi(int): " << " " << phi_packed()
203  << " Eta(int): " << " " << eta_packed()
204  << " Quality: " << " " << "unassigned or zero"
205  << " charge: " << " " << charge_packed()
206  << " side: " << " " << endcap()
207  << " bx: " << " " << BX()
208  << " Winner: " << " " << winner()
209  << std::endl;
210  }
211  }
virtual bool empty() const
return empty flag
unsigned charge_packed() const
return charge packed as in hardware (0=pos, 1=neg)
unsigned eta_packed() const
return eta packed as in hardware
bool winner() const
Definition: L1Track.h:63
unsigned int quality_packed() const
return quality packed as in hardware
unsigned endcap() const
Definition: L1Track.h:44
tuple cout
Definition: gather_cfg.py:121
unsigned pt_packed() const
return pt packed as in hardware
int BX() const
Definition: L1Track.h:51
unsigned phi_packed() const
return phi packed as in hardware
unsigned csc::L1Track::ptLUTAddress ( ) const
inline

Definition at line 56 of file L1Track.h.

References m_ptAddress.

Referenced by CSCTFanalyzer::analyze(), and CSCTFSectorProcessor::run().

56 { return m_ptAddress; }
unsigned m_ptAddress
Definition: L1Track.h:112
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().

119  {
120  return m_rank;
121  }
unsigned m_rank
Definition: L1Track.h:115
unsigned csc::L1Track::sector ( ) const
inline

Definition at line 45 of file L1Track.h.

References m_sector.

Referenced by CSCTFanalyzer::analyze(), and geometryXMLparser.DTAlignable::index().

45 { return m_sector; }
unsigned m_sector
Definition: L1Track.h:109
void csc::L1Track::set_front_rear ( unsigned  fr)
inline

Definition at line 59 of file L1Track.h.

References m_fr.

59 { m_fr=fr; }
unsigned m_fr
Definition: L1Track.h:113
void csc::L1Track::setBits ( unsigned  se,
unsigned  bx0,
unsigned  bc0 
)
inline

Definition at line 98 of file L1Track.h.

References bc0(), bx0(), m_bc0, m_bx0, and m_se.

98 { m_se=se; m_bx0=bx0; m_bc0=bc0; }
bool bx0(void) const
Definition: L1Track.h:91
bool m_bc0
Definition: L1Track.h:121
bool bc0(void) const
Definition: L1Track.h:92
bool m_se
Definition: L1Track.h:121
bool m_bx0
Definition: L1Track.h:121
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().

36 { m_lphi = lphi; }
unsigned m_lphi
Definition: L1Track.h:111
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().

62 { m_output_link = oPL; }
unsigned m_output_link
Definition: L1Track.h:116
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().

58 { m_ptAddress = adr; }
unsigned m_ptAddress
Definition: L1Track.h:112
void csc::L1Track::setRank ( const unsigned &  rank)
inline

Definition at line 33 of file L1Track.h.

References m_rank, and rank().

Referenced by CSCTFSectorProcessor::run().

33 { m_rank = rank; }
unsigned m_rank
Definition: L1Track.h:115
unsigned rank() const
Definition: L1Track.cc:118
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().

126  {
127  me1_id = me1;
128  me2_id = me2;
129  me3_id = me3;
130  me4_id = me4;
131  mb1_id = mb1;
132  }
unsigned me3_id
Definition: L1Track.h:114
unsigned mb1_id
Definition: L1Track.h:114
unsigned me2_id
Definition: L1Track.h:114
unsigned me1_id
Definition: L1Track.h:114
unsigned me4_id
Definition: L1Track.h:114
void csc::L1Track::setTbins ( unsigned  me1,
unsigned  me2,
unsigned  me3,
unsigned  me4,
unsigned  mb 
)
inline

Definition at line 99 of file L1Track.h.

References m_mbTbin, m_me1Tbin, m_me2Tbin, m_me3Tbin, and m_me4Tbin.

Referenced by CSCTFSPCoreLogic::run().

99 { m_me1Tbin=me1; m_me2Tbin=me2; m_me3Tbin=me3; m_me4Tbin=me4; m_mbTbin=mb; }
unsigned m_me2Tbin
Definition: L1Track.h:122
unsigned m_me3Tbin
Definition: L1Track.h:122
unsigned m_mbTbin
Definition: L1Track.h:122
unsigned m_me1Tbin
Definition: L1Track.h:122
unsigned m_me4Tbin
Definition: L1Track.h:122
bool csc::L1Track::sign ( void  ) const
inline

Definition at line 89 of file L1Track.h.

References m_ptAddress.

89 { return (m_ptAddress>>20)&0x1; }
unsigned m_ptAddress
Definition: L1Track.h:112
unsigned csc::L1Track::station ( ) const
inline

Definition at line 46 of file L1Track.h.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

46 { return 0; }
unsigned csc::L1Track::subsector ( ) const
inline

Definition at line 48 of file L1Track.h.

48 { return 0; }
bool csc::L1Track::synch_err ( void  ) const
inline

Definition at line 90 of file L1Track.h.

References m_se.

90 { return m_se; }
bool m_se
Definition: L1Track.h:121
bool csc::L1Track::winner ( ) const
inline

Definition at line 63 of file L1Track.h.

References m_winner.

Referenced by Print().

63 {return m_winner;}
bool m_winner
Definition: L1Track.h:118

Friends And Related Function Documentation

friend class ::CSCTFSPCoreLogic
friend

Definition at line 80 of file L1Track.h.

friend class ::CSCTFUnpacker
friend

Definition at line 79 of file L1Track.h.

friend class CSCTFSectorProcessor
friend

Only the Unpacker and SectorProcessor should have access to addTrackStub() This prevents people from adding too many track stubs.

Definition at line 78 of file L1Track.h.

Member Data Documentation

bool csc::L1Track::m_bc0
private

Definition at line 121 of file L1Track.h.

Referenced by bc0(), L1Track(), operator=(), and setBits().

bool csc::L1Track::m_bx0
private

Definition at line 121 of file L1Track.h.

Referenced by bx0(), L1Track(), operator=(), and setBits().

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
unsigned csc::L1Track::m_rank
private

Definition at line 115 of file L1Track.h.

Referenced by L1Track(), operator=(), rank(), and setRank().

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().