CMS 3D CMS Logo

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

#include <L1TrackId.h>

Public Types

enum  { kRankBitWidth = 6 }
 

Public Member Functions

unsigned encodeLUTMode (const unsigned &rank) const
 
unsigned endcap () const
 
bool erase () const
 
bool hasMB1 (const unsigned &rank) const
 
bool hasME1 (const unsigned &rank) const
 Functions to determine which stations are in this track. More...
 
bool hasME2 (const unsigned &rank) const
 
bool hasME3 (const unsigned &rank) const
 
bool hasME4 (const unsigned &rank) const
 
bool inOverlap () const
 
 L1TrackId ()
 
 L1TrackId (const unsigned &side, const unsigned &sector)
 
 L1TrackId (const csc::L1TrackId &)
 
unsigned mode () const
 
unsigned numSegments () const
 
const L1TrackIdoperator= (const csc::L1TrackId &)
 
void overlapMode (const unsigned &rank, int &mode, int &stnA, int &stnB)
 
unsigned rank () const
 
unsigned sector () const
 
void setMode (const unsigned &mode)
 
void setOverlap (const unsigned &rank)
 
void setRank (const unsigned &rank)
 
bool sharesHit (const csc::L1TrackId &) const
 
unsigned station () const
 

Private Attributes

CSCDetId id_
 
bool m_erase
 
unsigned m_mode
 
bool m_overlap
 
unsigned m_rank
 

Detailed Description

Definition at line 19 of file L1TrackId.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kRankBitWidth 

Definition at line 22 of file L1TrackId.h.

Constructor & Destructor Documentation

L1TrackId::L1TrackId ( )

Definition at line 5 of file L1TrackId.cc.

L1TrackId::L1TrackId ( const unsigned &  side,
const unsigned &  sector 
)

Use a fake cscid and station... We just need to know endcap and sector

Definition at line 8 of file L1TrackId.cc.

L1TrackId::L1TrackId ( const csc::L1TrackId id)

Definition at line 17 of file L1TrackId.cc.

Member Function Documentation

unsigned L1TrackId::encodeLUTMode ( const unsigned &  rank) const

Definition at line 145 of file L1TrackId.cc.

unsigned csc::L1TrackId::endcap ( ) const
inline

Definition at line 30 of file L1TrackId.h.

References CSCDetId::endcap(), and id_.

30 { return id_.endcap(); }
int endcap() const
Definition: CSCDetId.h:93
CSCDetId id_
Definition: L1TrackId.h:63
bool csc::L1TrackId::erase ( ) const
inline

Definition at line 57 of file L1TrackId.h.

References m_erase.

57 { return m_erase; }
bool L1TrackId::hasMB1 ( const unsigned &  rank) const

Definition at line 394 of file L1TrackId.cc.

bool L1TrackId::hasME1 ( const unsigned &  rank) const

Functions to determine which stations are in this track.

Definition at line 267 of file L1TrackId.cc.

bool L1TrackId::hasME2 ( const unsigned &  rank) const

Definition at line 299 of file L1TrackId.cc.

bool L1TrackId::hasME3 ( const unsigned &  rank) const

Definition at line 341 of file L1TrackId.cc.

bool L1TrackId::hasME4 ( const unsigned &  rank) const

Definition at line 369 of file L1TrackId.cc.

bool csc::L1TrackId::inOverlap ( ) const
inline

Definition at line 43 of file L1TrackId.h.

References m_overlap.

43 { return m_overlap; }
bool m_overlap
Definition: L1TrackId.h:61
unsigned csc::L1TrackId::mode ( void  ) const
inline

Definition at line 35 of file L1TrackId.h.

References m_mode.

Referenced by setMode().

35 { return m_mode; }
unsigned m_mode
Definition: L1TrackId.h:60
unsigned csc::L1TrackId::numSegments ( ) const
inline

Definition at line 36 of file L1TrackId.h.

36 { return 0; } // finish later
const csc::L1TrackId & L1TrackId::operator= ( const csc::L1TrackId rhs)

Definition at line 27 of file L1TrackId.cc.

void L1TrackId::overlapMode ( const unsigned &  rank,
int &  mode,
int &  stnA,
int &  stnB 
)

Definition at line 78 of file L1TrackId.cc.

unsigned csc::L1TrackId::rank ( ) const
inline

Definition at line 34 of file L1TrackId.h.

References m_rank.

34 { return m_rank; }
unsigned m_rank
Definition: L1TrackId.h:60
unsigned csc::L1TrackId::sector ( ) const
inline

Definition at line 31 of file L1TrackId.h.

References id_, and CSCTriggerNumbering::triggerSectorFromLabels().

CSCDetId id_
Definition: L1TrackId.h:63
static int triggerSectorFromLabels(int station, int ring, int chamber)
void csc::L1TrackId::setMode ( const unsigned &  mode)
inline

Definition at line 39 of file L1TrackId.h.

References m_mode, and mode().

39 { m_mode = mode; }
unsigned m_mode
Definition: L1TrackId.h:60
unsigned mode() const
Definition: L1TrackId.h:35
void L1TrackId::setOverlap ( const unsigned &  rank)

Definition at line 46 of file L1TrackId.cc.

void L1TrackId::setRank ( const unsigned &  rank)

Definition at line 59 of file L1TrackId.cc.

bool L1TrackId::sharesHit ( const csc::L1TrackId a_id) const

Definition at line 41 of file L1TrackId.cc.

unsigned csc::L1TrackId::station ( ) const
inline

Definition at line 32 of file L1TrackId.h.

References id_, and CSCDetId::station().

32 { return id_.station(); }
CSCDetId id_
Definition: L1TrackId.h:63
int station() const
Definition: CSCDetId.h:86

Member Data Documentation

CSCDetId csc::L1TrackId::id_
private

Definition at line 63 of file L1TrackId.h.

Referenced by endcap(), sector(), and station().

bool csc::L1TrackId::m_erase
private

Definition at line 61 of file L1TrackId.h.

Referenced by erase().

unsigned csc::L1TrackId::m_mode
private

Definition at line 60 of file L1TrackId.h.

Referenced by mode(), and setMode().

bool csc::L1TrackId::m_overlap
private

Definition at line 61 of file L1TrackId.h.

Referenced by inOverlap().

unsigned csc::L1TrackId::m_rank
private

Definition at line 60 of file L1TrackId.h.

Referenced by rank().