CMS 3D CMS Logo

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

#include <L1MuDTTrack.h>

Inheritance diagram for L1MuDTTrack:
L1MuRegionalCand

Classes

class  Rank
 define a rank for muon candidates More...
 

Public Member Functions

L1MuDTAddressArray address () const
 get address-array for this muon candidate More...
 
int address (int stat) const
 get relative address of a given station More...
 
int charge () const
 get charge (1 bit) More...
 
void disable ()
 disable muon candidate More...
 
bool empty () const
 is it an empty muon candidate? More...
 
void enable ()
 enable muon candidate More...
 
unsigned int eta () const
 get eta-code (6 bits) More...
 
bool fineEtaBit () const
 get fine eta bit More...
 
const L1MuDTTrackSegEtagetEndTSeta () const
 return end eta track segment of muon candidate More...
 
const L1MuDTTrackSegPhigetEndTSphi () const
 return end phi track segment of muon candidate More...
 
const L1MuDTTrackSegEtagetStartTSeta () const
 return start eta track segment of muon candidate More...
 
const L1MuDTTrackSegPhigetStartTSphi () const
 return start phi track segment of muon candidate More...
 
const std::vector
< L1MuDTTrackSegEta > & 
getTSeta () const
 return all eta track segments of the muon candidate More...
 
const std::vector
< L1MuDTTrackSegPhi > & 
getTSphi () const
 return all phi track segments of the muon candidate More...
 
 L1MuDTTrack ()
 default constructor More...
 
 L1MuDTTrack (const L1MuDTSecProcId &)
 constructor More...
 
 L1MuDTTrack (const L1MuDTTrack &)
 copy constructor More...
 
std::string name () const
 get name of object More...
 
int numberOfTSeta () const
 return number of eta track segments used to form the muon candidate More...
 
int numberOfTSphi () const
 return number of phi track segments used to form the muon candidate More...
 
bool operator!= (const L1MuDTTrack &) const
 unequal operator More...
 
L1MuDTTrackoperator= (const L1MuDTTrack &)
 assignment operator More...
 
bool operator== (const L1MuDTTrack &) const
 equal operator More...
 
unsigned int phi () const
 get phi-code (8 bits) More...
 
void print () const
 print parameters of muon candidate More...
 
unsigned int pt () const
 get pt-code (5 bits) More...
 
void reset ()
 reset muon candidate More...
 
void setAddresses (const L1MuDTAddressArray &addr)
 set relative addresses of muon candidate More...
 
void setCharge (int charge)
 set charge of muon candidate More...
 
void setEta (int eta)
 set eta-code of muon candidate More...
 
void setFineEtaBit ()
 set fine eta bit More...
 
void setName (std::string name)
 set name of object More...
 
void setPhi (int phi)
 set phi-code of muon candidate More...
 
void setPt (int pt)
 set pt-code of muon candidate More...
 
void setQuality (unsigned int quality)
 set quality of muon candidate More...
 
void setTC (TrackClass tc)
 set track-class of muon candidate More...
 
void setTSeta (const std::vector< const L1MuDTTrackSegEta * > &tsList)
 set eta track segments used to form the muon candidate More...
 
void setTSphi (const std::vector< const L1MuDTTrackSegPhi * > &tsList)
 set phi track segments used to form the muon candidate More...
 
const L1MuDTSecProcIdspid () const
 return Sector Processor in which the muon candidate was found More...
 
TrackClass tc () const
 get track-class More...
 
unsigned int triggerScale (float value, const edm::EventSetup &c) const
 convert pt value in GeV to pt code More...
 
virtual ~L1MuDTTrack ()
 destructor More...
 
- 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...
 
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...
 
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...
 
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...
 

Private Attributes

L1MuDTAddressArray m_addArray
 
bool m_empty
 
std::string m_name
 
L1MuDTSecProcId m_spid
 
TrackClass m_tc
 
std::vector< L1MuDTTrackSegEtam_tsetaList
 
std::vector< L1MuDTTrackSegPhim_tsphiList
 

Friends

std::ostream & operator<< (std::ostream &, const L1MuDTTrack &)
 output stream operator More...
 

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

L1 Muon Track Candidate

N. Neumeister CERN EP J. Troconiz UAM Madrid

Definition at line 49 of file L1MuDTTrack.h.

Constructor & Destructor Documentation

L1MuDTTrack::L1MuDTTrack ( )

default constructor

Definition at line 48 of file L1MuDTTrack.cc.

L1MuDTTrack::L1MuDTTrack ( const L1MuDTSecProcId spid)

constructor

Definition at line 63 of file L1MuDTTrack.cc.

L1MuDTTrack::L1MuDTTrack ( const L1MuDTTrack id)

copy constructor

Definition at line 78 of file L1MuDTTrack.cc.

L1MuDTTrack::~L1MuDTTrack ( )
virtual

destructor

Definition at line 89 of file L1MuDTTrack.cc.

Member Function Documentation

L1MuDTAddressArray L1MuDTTrack::address ( ) const
inline

get address-array for this muon candidate

Definition at line 96 of file L1MuDTTrack.h.

int L1MuDTTrack::address ( int  stat) const
inline

get relative address of a given station

Definition at line 99 of file L1MuDTTrack.h.

int L1MuDTTrack::charge ( void  ) const
inline

get charge (1 bit)

Definition at line 84 of file L1MuDTTrack.h.

void L1MuDTTrack::disable ( )
inline

disable muon candidate

Definition at line 129 of file L1MuDTTrack.h.

bool L1MuDTTrack::empty ( void  ) const
inlinevirtual

is it an empty muon candidate?

Reimplemented from L1MuRegionalCand.

Definition at line 90 of file L1MuDTTrack.h.

void L1MuDTTrack::enable ( )
inline

enable muon candidate

Definition at line 126 of file L1MuDTTrack.h.

unsigned int L1MuDTTrack::eta ( void  ) const
inline

get eta-code (6 bits)

Definition at line 78 of file L1MuDTTrack.h.

Referenced by Particle.Particle::__str__().

bool L1MuDTTrack::fineEtaBit ( ) const
inline

get fine eta bit

Definition at line 81 of file L1MuDTTrack.h.

const L1MuDTTrackSegEta & L1MuDTTrack::getEndTSeta ( ) const

return end eta track segment of muon candidate

Definition at line 158 of file L1MuDTTrack.cc.

const L1MuDTTrackSegPhi & L1MuDTTrack::getEndTSphi ( ) const

return end phi track segment of muon candidate

Definition at line 138 of file L1MuDTTrack.cc.

const L1MuDTTrackSegEta & L1MuDTTrack::getStartTSeta ( ) const

return start eta track segment of muon candidate

Definition at line 148 of file L1MuDTTrack.cc.

const L1MuDTTrackSegPhi & L1MuDTTrack::getStartTSphi ( ) const

return start phi track segment of muon candidate

Definition at line 128 of file L1MuDTTrack.cc.

const std::vector<L1MuDTTrackSegEta>& L1MuDTTrack::getTSeta ( ) const
inline

return all eta track segments of the muon candidate

Definition at line 117 of file L1MuDTTrack.h.

const std::vector<L1MuDTTrackSegPhi>& L1MuDTTrack::getTSphi ( ) const
inline

return all phi track segments of the muon candidate

Definition at line 108 of file L1MuDTTrack.h.

std::string L1MuDTTrack::name ( void  ) const
inline

get name of object

Definition at line 69 of file L1MuDTTrack.h.

Referenced by VIDSelectorBase.VIDSelectorBase::initialize().

int L1MuDTTrack::numberOfTSeta ( ) const
inline

return number of eta track segments used to form the muon candidate

Definition at line 105 of file L1MuDTTrack.h.

int L1MuDTTrack::numberOfTSphi ( ) const
inline

return number of phi track segments used to form the muon candidate

Definition at line 102 of file L1MuDTTrack.h.

bool L1MuDTTrack::operator!= ( const L1MuDTTrack track) const

unequal operator

Definition at line 255 of file L1MuDTTrack.cc.

L1MuDTTrack & L1MuDTTrack::operator= ( const L1MuDTTrack track)

assignment operator

Definition at line 213 of file L1MuDTTrack.cc.

bool L1MuDTTrack::operator== ( const L1MuDTTrack track) const

equal operator

Definition at line 234 of file L1MuDTTrack.cc.

unsigned int L1MuDTTrack::phi ( void  ) const
inline

get phi-code (8 bits)

Definition at line 75 of file L1MuDTTrack.h.

Referenced by Particle.Particle::__str__().

void L1MuDTTrack::print ( void  ) const
virtual

print parameters of muon candidate

Reimplemented from L1MuRegionalCand.

Definition at line 276 of file L1MuDTTrack.cc.

unsigned int L1MuDTTrack::pt ( void  ) const
inline
void L1MuDTTrack::reset ( void  )
virtual

reset muon candidate

Reimplemented from L1MuRegionalCand.

Definition at line 99 of file L1MuDTTrack.cc.

void L1MuDTTrack::setAddresses ( const L1MuDTAddressArray addr)
inline

set relative addresses of muon candidate

Definition at line 156 of file L1MuDTTrack.h.

void L1MuDTTrack::setCharge ( int  charge)
inline

set charge of muon candidate

Definition at line 150 of file L1MuDTTrack.h.

void L1MuDTTrack::setEta ( int  eta)

set eta-code of muon candidate

Definition at line 114 of file L1MuDTTrack.cc.

void L1MuDTTrack::setFineEtaBit ( )
inline

set fine eta bit

Definition at line 144 of file L1MuDTTrack.h.

void L1MuDTTrack::setName ( std::string  name)
inline

set name of object

Definition at line 132 of file L1MuDTTrack.h.

void L1MuDTTrack::setPhi ( int  phi)
inline

set phi-code of muon candidate

Definition at line 138 of file L1MuDTTrack.h.

void L1MuDTTrack::setPt ( int  pt)
inline

set pt-code of muon candidate

Definition at line 147 of file L1MuDTTrack.h.

void L1MuDTTrack::setQuality ( unsigned int  quality)
inline

set quality of muon candidate

Definition at line 153 of file L1MuDTTrack.h.

void L1MuDTTrack::setTC ( TrackClass  tc)
inline

set track-class of muon candidate

Definition at line 135 of file L1MuDTTrack.h.

void L1MuDTTrack::setTSeta ( const std::vector< const L1MuDTTrackSegEta * > &  tsList)

set eta track segments used to form the muon candidate

Definition at line 183 of file L1MuDTTrack.cc.

void L1MuDTTrack::setTSphi ( const std::vector< const L1MuDTTrackSegPhi * > &  tsList)

set phi track segments used to form the muon candidate

Definition at line 168 of file L1MuDTTrack.cc.

const L1MuDTSecProcId& L1MuDTTrack::spid ( ) const
inline

return Sector Processor in which the muon candidate was found

Definition at line 93 of file L1MuDTTrack.h.

TrackClass L1MuDTTrack::tc ( ) const
inline

get track-class

Definition at line 87 of file L1MuDTTrack.h.

unsigned int L1MuDTTrack::triggerScale ( float  value,
const edm::EventSetup c 
) const

convert pt value in GeV to pt code

Definition at line 198 of file L1MuDTTrack.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const L1MuDTTrack  
)
friend

output stream operator

Member Data Documentation

L1MuDTAddressArray L1MuDTTrack::m_addArray
private

Definition at line 202 of file L1MuDTTrack.h.

bool L1MuDTTrack::m_empty
private

Definition at line 199 of file L1MuDTTrack.h.

std::string L1MuDTTrack::m_name
private

Definition at line 198 of file L1MuDTTrack.h.

L1MuDTSecProcId L1MuDTTrack::m_spid
private

Definition at line 197 of file L1MuDTTrack.h.

TrackClass L1MuDTTrack::m_tc
private

Definition at line 200 of file L1MuDTTrack.h.

std::vector<L1MuDTTrackSegEta> L1MuDTTrack::m_tsetaList
private

Definition at line 204 of file L1MuDTTrack.h.

std::vector<L1MuDTTrackSegPhi> L1MuDTTrack::m_tsphiList
private

Definition at line 203 of file L1MuDTTrack.h.