CMS 3D CMS Logo

L1MuRegionalCand Class Reference

A regional muon trigger candidate as received by the GMT. More...

#include <DataFormats/L1GlobalMuonTrigger/interface/L1MuRegionalCand.h>

Inheritance diagram for L1MuRegionalCand:

csc::L1Track L1MuDTTrack L1MuDTTrackCand

List of all members.

Public Types

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 }

Public Member Functions

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

Private Member Functions

unsigned readDataField (unsigned start, unsigned count) const
void writeDataField (unsigned start, unsigned count, unsigned value)

Private Attributes

int m_bx
unsigned m_dataWord
float m_etaValue
float m_phiValue
float m_ptValue

Static Private Attributes

static const float m_invalidValue = -10.


Detailed Description

A regional muon trigger candidate as received by the GMT.

Definition at line 28 of file L1MuRegionalCand.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
PHI_START 

Definition at line 187 of file L1MuRegionalCand.h.

00187 { PHI_START=0};       enum { PHI_LENGTH = 8};     // Bits 0:7   phi (8 bits)

anonymous enum

Enumerator:
PHI_LENGTH 

Definition at line 187 of file L1MuRegionalCand.h.

00187 { PHI_START=0};       enum { PHI_LENGTH = 8};     // Bits 0:7   phi (8 bits)

anonymous enum

Enumerator:
PT_START 

Definition at line 188 of file L1MuRegionalCand.h.

00188 { PT_START=8};        enum { PT_LENGTH =  5};     // Bits 8:12  pt  (5 bits)

anonymous enum

Enumerator:
PT_LENGTH 

Definition at line 188 of file L1MuRegionalCand.h.

00188 { PT_START=8};        enum { PT_LENGTH =  5};     // Bits 8:12  pt  (5 bits)

anonymous enum

Enumerator:
QUAL_START 

Definition at line 189 of file L1MuRegionalCand.h.

00189 { QUAL_START=13};     enum { QUAL_LENGTH = 3};    // Bits 13:15 quality (3 bits)

anonymous enum

Enumerator:
QUAL_LENGTH 

Definition at line 189 of file L1MuRegionalCand.h.

00189 { QUAL_START=13};     enum { QUAL_LENGTH = 3};    // Bits 13:15 quality (3 bits)

anonymous enum

Enumerator:
ETA_START 

Definition at line 190 of file L1MuRegionalCand.h.

00190 { ETA_START=16};      enum { ETA_LENGTH = 6};     // Bits 16:21 eta (6 bits)

anonymous enum

Enumerator:
ETA_LENGTH 

Definition at line 190 of file L1MuRegionalCand.h.

00190 { ETA_START=16};      enum { ETA_LENGTH = 6};     // Bits 16:21 eta (6 bits)

anonymous enum

Enumerator:
FINEHALO_START 

Definition at line 191 of file L1MuRegionalCand.h.

00191 { FINEHALO_START=22}; enum { FINEHALO_LENGTH = 1};// Bit  22 Eta is fine (DT) / Halo (CSC)

anonymous enum

Enumerator:
FINEHALO_LENGTH 

Definition at line 191 of file L1MuRegionalCand.h.

00191 { FINEHALO_START=22}; enum { FINEHALO_LENGTH = 1};// Bit  22 Eta is fine (DT) / Halo (CSC)

anonymous enum

Enumerator:
CHARGE_START 

Definition at line 192 of file L1MuRegionalCand.h.

00192 { CHARGE_START=23};   enum { CHARGE_LENGTH = 1};  // Bit  23 Charge: 0 = positive

anonymous enum

Enumerator:
CHARGE_LENGTH 

Definition at line 192 of file L1MuRegionalCand.h.

00192 { CHARGE_START=23};   enum { CHARGE_LENGTH = 1};  // Bit  23 Charge: 0 = positive

anonymous enum

Enumerator:
CHVALID_START 

Definition at line 193 of file L1MuRegionalCand.h.

00193 { CHVALID_START=24};  enum { CHVALID_LENGTH = 1}; // Bit  24 Charge is vaild (1=valid)

anonymous enum

Enumerator:
CHVALID_LENGTH 

Definition at line 193 of file L1MuRegionalCand.h.

00193 { CHVALID_START=24};  enum { CHVALID_LENGTH = 1}; // Bit  24 Charge is vaild (1=valid)

anonymous enum

Enumerator:
TYPE_START 

Definition at line 196 of file L1MuRegionalCand.h.

00196 { TYPE_START=30};     enum { TYPE_LENGTH = 2};    // Bit  30/31 type DT, bRPC, CSC, fRPC

anonymous enum

Enumerator:
TYPE_LENGTH 

Definition at line 196 of file L1MuRegionalCand.h.

00196 { TYPE_START=30};     enum { TYPE_LENGTH = 2};    // Bit  30/31 type DT, bRPC, CSC, fRPC


Constructor & Destructor Documentation

L1MuRegionalCand::L1MuRegionalCand ( unsigned  dataword = 0,
int  bx = 0 
)

constructor from data word

Definition at line 44 of file L1MuRegionalCand.cc.

References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.

00044                                                             : m_bx(bx), m_dataWord(dataword) {
00045   m_phiValue = m_invalidValue; 
00046   m_etaValue = m_invalidValue;
00047   m_ptValue = m_invalidValue;
00048 }

L1MuRegionalCand::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

Definition at line 51 of file L1MuRegionalCand.cc.

References m_etaValue, m_invalidValue, m_phiValue, m_ptValue, setChargePacked(), setChargeValidPacked(), setEtaPacked(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), and setType().

00053                                                                                      : 
00054                      m_bx(bx), m_dataWord(0) {
00055   setType(type_idx);
00056   setPhiPacked(phi);
00057   setEtaPacked(eta);
00058   setPtPacked(pt);
00059   setChargePacked(charge);
00060   setChargeValidPacked(ch_valid);
00061   setFineHaloPacked(finehalo);
00062   setQualityPacked(quality);     
00063   m_phiValue = m_invalidValue; 
00064   m_etaValue = m_invalidValue;
00065   m_ptValue = m_invalidValue;
00066 }

virtual L1MuRegionalCand::~L1MuRegionalCand (  )  [inline, virtual]

destructor

Definition at line 40 of file L1MuRegionalCand.h.

00040 {}


Member Function Documentation

int L1MuRegionalCand::bx (  )  const [inline]

return bunch crossing identifier

Definition at line 76 of file L1MuRegionalCand.h.

References m_bx.

Referenced by csc::L1Track::BX(), RPCTrigger::giveFinallCandindates(), L1MuDTTrack::operator!=(), csc::L1Track::operator=(), L1MuDTTrack::operator=(), L1MuDTTrack::operator==(), L1MuDTTrack::print(), print(), L1MuDTTrackFinder::run(), and L1DummyProducer::SimpleDigi().

00076 { return  m_bx; }

unsigned L1MuRegionalCand::charge_packed (  )  const [inline]

return charge packed as in hardware (0=pos, 1=neg)

Definition at line 99 of file L1MuRegionalCand.h.

References CHARGE_LENGTH, CHARGE_START, and readDataField().

Referenced by RPCTrigger::giveFinallCandindates(), csc::L1Track::operator=(), L1MuDTTrack::print(), L1MuGMTMerger::projectedPhi(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), and L1MuGMTMerger::sysign().

unsigned L1MuRegionalCand::charge_valid_packed (  )  const [inline]

return charge valid packed as in hardware (1=valid, 0=not valid)

Definition at line 102 of file L1MuRegionalCand.h.

References CHVALID_LENGTH, CHVALID_START, and readDataField().

Referenced by chargeValid(), csc::L1Track::operator=(), and L1MuGMTMerger::sysign().

bool L1MuRegionalCand::chargeValid (  )  const [inline]

is the charge valid ?

Definition at line 64 of file L1MuRegionalCand.h.

References charge_valid_packed().

Referenced by print().

00064 { return charge_valid_packed() == 1; }

int L1MuRegionalCand::chargeValue (  )  const [inline]

get charge

Definition at line 61 of file L1MuRegionalCand.h.

References CHARGE_LENGTH, CHARGE_START, and readDataField().

Referenced by L1MuDTTrack::charge(), and print().

00061 { return readDataField( CHARGE_START, CHARGE_LENGTH) == 0 ? 1: -1; }

virtual bool L1MuRegionalCand::empty (  )  const [inline, virtual]

Getters - values.

return empty flag

Reimplemented in L1MuDTTrack.

Definition at line 47 of file L1MuRegionalCand.h.

References PHI_LENGTH, PHI_START, PT_LENGTH, PT_START, and readDataField().

Referenced by L1MuGMTSortRankUnit::getVeryLowQualityLevel(), L1MuGMTSortRankUnit::isDisabled(), L1MuGMTMerger::merge_rank(), print(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().

00047                                { 
00048       return (readDataField( PT_START, PT_LENGTH) == 0) || (readDataField( PHI_START, PHI_LENGTH) == 0xff); 
00049     }

unsigned L1MuRegionalCand::eta_packed (  )  const [inline]

return eta packed as in hardware

Definition at line 93 of file L1MuRegionalCand.h.

References ETA_LENGTH, ETA_START, and readDataField().

Referenced by L1MuGMTMerger::convertedEta(), L1MuDTTrack::eta(), L1MuGMTSortRankUnit::getVeryLowQualityLevel(), RPCTrigger::giveFinallCandindates(), L1MuGMTSortRankUnit::isDisabled(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), L1MuDTTrack::print(), print(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().

00093 { return readDataField( ETA_START, ETA_LENGTH); }

float L1MuRegionalCand::etaValue (  )  const

get eta-value of muon candidate

Definition at line 86 of file L1MuRegionalCand.cc.

References m_etaValue, and m_invalidValue.

Referenced by print(), and L1DummyProducer::SimpleDigi().

00086                                        {
00087   if(m_etaValue == m_invalidValue) {
00088     edm::LogWarning("ValueInvalid") << 
00089      "L1MuRegionalCand::etaValue requested physical value is invalid";
00090   }
00091   return m_etaValue;
00092 }

unsigned L1MuRegionalCand::finehalo_packed (  )  const [inline]

return eta-fine (for DT) / halo (for CSC) bit

Definition at line 96 of file L1MuRegionalCand.h.

References FINEHALO_LENGTH, FINEHALO_START, and readDataField().

Referenced by isFineHalo(), csc::L1Track::operator=(), and L1MuDTTrack::print().

unsigned L1MuRegionalCand::getDataWord (  )  const [inline]

return data word

Definition at line 105 of file L1MuRegionalCand.h.

References m_dataWord.

Referenced by csc::L1Track::operator=(), L1MuDTTrack::operator=(), L1MuDTTrackFinder::run(), and L1DummyProducer::SimpleDigi().

00105 { return m_dataWord; };

bool L1MuRegionalCand::isFineHalo (  )  const [inline]

is it fine (DT) / halo (CSC) ?

Definition at line 67 of file L1MuRegionalCand.h.

References finehalo_packed().

Referenced by L1MuDTTrack::fineEtaBit(), and print().

00067 { return finehalo_packed() == 1; }

unsigned L1MuRegionalCand::phi_packed (  )  const [inline]

Getters - packed format.

return phi packed as in hardware

Definition at line 84 of file L1MuRegionalCand.h.

References PHI_LENGTH, PHI_START, and readDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuGMTSortRankUnit::isDisabled(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), L1MuDTTrack::phi(), L1MuDTTrack::print(), print(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().

00084 { return readDataField (PHI_START, PHI_LENGTH); } 

float L1MuRegionalCand::phiValue (  )  const

get phi-value of muon candidate in radians (low edge of bin)

Definition at line 78 of file L1MuRegionalCand.cc.

References m_invalidValue, and m_phiValue.

Referenced by print(), and L1DummyProducer::SimpleDigi().

00078                                        {
00079   if(m_phiValue == m_invalidValue) {
00080     edm::LogWarning("ValueInvalid") << 
00081      "L1MuRegionalCand::phiValue requested physical value is invalid";
00082   }
00083   return m_phiValue;
00084 }

void L1MuRegionalCand::print ( void   )  const [virtual]

print candidate

Reimplemented in L1MuDTTrack.

Definition at line 102 of file L1MuRegionalCand.cc.

References bx(), chargeValid(), chargeValue(), empty(), eta_packed(), etaValue(), isFineHalo(), m_etaValue, m_invalidValue, m_phiValue, m_ptValue, phi_packed(), phiValue(), pt_packed(), ptValue(), quality(), and type_idx().

00102                                    {
00103   if ( !empty() ) {
00104     if(m_phiValue == m_invalidValue ||
00105        m_etaValue == m_invalidValue ||
00106        m_ptValue == m_invalidValue) {
00107       edm::LogVerbatim("GMT_Input_info")
00108            << setiosflags(ios::showpoint | ios::fixed | ios::right | ios::adjustfield)
00109        << "pt(index) = " << setw(2) << setprecision(1) << pt_packed() << "  "
00110        << "charge = " << setw(2) << chargeValue() << "  "
00111        << "eta(index) = " << setw(2) << eta_packed() << "  "
00112        << "phi(index) = " << setw(3) << phi_packed() << "  "
00113        << "quality = " << setw(1) << quality() << "  "
00114        << "charge_valid = " << setw(1) << chargeValid() << "  "
00115        << "fine_halo = " << setw(1) << isFineHalo() << "  "
00116        << "bx = " << setw(3) << bx() << "  " 
00117        << "type_idx = " << setw(1) << type_idx();
00118     } else {
00119       edm::LogVerbatim("GMT_Input_info")
00120            << setiosflags(ios::showpoint | ios::fixed | ios::right | ios::adjustfield)
00121            << "pt = " << setw(5) << setprecision(1) << ptValue() << " GeV  "
00122            << "charge = " << setw(2) << chargeValue() << " "
00123            << "eta = " << setw(6) << setprecision(3) << etaValue() << "  "
00124            << "phi = " << setw(5) << setprecision(3) << phiValue() << " rad  "
00125            << "quality = " << setw(1) << quality() << "  "
00126            << "charge_valid = " << setw(1) << chargeValid() << "  "
00127            << "fine_halo = " << setw(1) << isFineHalo() << "  "
00128            << "bx = " << setw(3) << bx() << "  " 
00129            << "type_idx = " << setw(1) << type_idx();
00130     }
00131   }
00132 }

unsigned L1MuRegionalCand::pt_packed (  )  const [inline]

return pt packed as in hardware

Definition at line 87 of file L1MuRegionalCand.h.

References PT_LENGTH, PT_START, and readDataField().

Referenced by L1MuGMTMerger::merge_rank(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), L1MuDTTrack::print(), print(), L1MuGMTMerger::projectedPhi(), L1MuDTTrack::pt(), L1MuGMTPSB::receiveData(), L1MuGMTEtaProjectionUnit::run(), L1MuGMTPhiProjectionUnit::run(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().

00087 { return readDataField (PT_START, PT_LENGTH); } 

float L1MuRegionalCand::ptValue (  )  const

get pt-value of muon candidate in GeV

Definition at line 94 of file L1MuRegionalCand.cc.

References m_invalidValue, and m_ptValue.

Referenced by print(), and L1DummyProducer::SimpleDigi().

00094                                       {
00095   if(m_ptValue == m_invalidValue) {
00096     edm::LogWarning("ValueInvalid") << 
00097      "L1MuRegionalCand::ptValue requested physical value is invalid";
00098   }
00099   return m_ptValue;
00100 }

unsigned int L1MuRegionalCand::quality (  )  const [inline]

return quality

Definition at line 70 of file L1MuRegionalCand.h.

References quality_packed().

Referenced by RPCTrigger::giveFinallCandindates(), L1EmulBias::ModifyCollection(), L1MuDTTrack::operator!=(), L1MuDTTrack::Rank::operator()(), L1MuDTTrack::operator==(), and print().

00070 { return quality_packed(); }    

unsigned int L1MuRegionalCand::quality_packed (  )  const [inline]

return quality packed as in hardware

Definition at line 90 of file L1MuRegionalCand.h.

References QUAL_LENGTH, QUAL_START, and readDataField().

Referenced by L1MuGMTSortRankUnit::getVeryLowQualityLevel(), L1MuGMTMerger::merge_rank(), csc::L1Track::operator=(), L1MuDTTrack::print(), quality(), L1MuDTTrackCand::setTC(), and L1MuGMTSortRankUnit::sort_rank().

00090 { return readDataField( QUAL_START, QUAL_LENGTH); }

unsigned L1MuRegionalCand::readDataField ( unsigned  start,
unsigned  count 
) const [private]

Definition at line 135 of file L1MuRegionalCand.cc.

References m_dataWord.

Referenced by charge_packed(), charge_valid_packed(), chargeValue(), empty(), eta_packed(), finehalo_packed(), phi_packed(), pt_packed(), quality_packed(), and type_idx().

00135                                                                              {
00136   unsigned mask = ( (1 << count) - 1 ) << start;
00137   return (m_dataWord & mask) >> start;
00138 }

void L1MuRegionalCand::reset ( void   )  [virtual]

reset

Reimplemented in L1MuDTTrack.

Definition at line 68 of file L1MuRegionalCand.cc.

References m_bx, m_dataWord, m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.

Referenced by L1MuDTTrack::reset().

00068                              {
00069 
00070   m_bx       = 0;
00071   m_dataWord = 0;
00072   m_phiValue = m_invalidValue; 
00073   m_etaValue = m_invalidValue;
00074   m_ptValue = m_invalidValue;
00075 
00076 }

void L1MuRegionalCand::setBx ( int  bx  )  [inline]

Set Bunch Crossing.

Definition at line 115 of file L1MuRegionalCand.h.

References m_bx.

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrack::operator=(), L1MuGMTHWFileReader::readNextEvent(), CSCTFSectorProcessor::run(), L1MuDTAssignmentUnit::run(), CSCTFSPCoreLogic::run(), and L1DummyProducer::SimpleDigi().

00115 { m_bx = bx; }

void L1MuRegionalCand::setChargePacked ( unsigned  ch  )  [inline]

Set Charge (0=pos, 1=neg).

Definition at line 127 of file L1MuRegionalCand.h.

References CHARGE_LENGTH, CHARGE_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), RPCFileReader::produce(), and CSCTFSPCoreLogic::run().

void L1MuRegionalCand::setChargeValid ( bool  valid  )  [inline]

Set Charge Valid.

Definition at line 156 of file L1MuRegionalCand.h.

References CHVALID_LENGTH, CHVALID_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrack::L1MuDTTrack(), and L1MuDTTrack::setCharge().

void L1MuRegionalCand::setChargeValidPacked ( unsigned  valid  )  [inline]

Set Charge Valid.

Definition at line 130 of file L1MuRegionalCand.h.

References CHVALID_LENGTH, CHVALID_START, and writeDataField().

Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), and CSCTFSectorProcessor::run().

void L1MuRegionalCand::setChargeValue ( int  charge  )  [inline]

Set Charge Value: -1, 1.

Definition at line 153 of file L1MuRegionalCand.h.

References CHARGE_LENGTH, CHARGE_START, and writeDataField().

Referenced by L1MuDTTrack::setCharge().

00153 { writeDataField (CHARGE_START, CHARGE_LENGTH, charge == 1 ? 0 : 1); }

void L1MuRegionalCand::setDataWord ( unsigned  dataword  )  [inline]

Set data word.

Definition at line 166 of file L1MuRegionalCand.h.

References m_dataWord.

Referenced by L1MuDTTrack::operator=(), and L1DummyProducer::SimpleDigi().

00166 { m_dataWord = dataword;}

void L1MuRegionalCand::setEtaPacked ( unsigned  eta  )  [inline]

Set Eta: 6-bit code.

Definition at line 133 of file L1MuRegionalCand.h.

References ETA_LENGTH, ETA_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), CSCTFSPCoreLogic::run(), and L1MuDTTrack::setEta().

void L1MuRegionalCand::setEtaValue ( float  etaVal  )  [inline]

Set Eta Value (need to set type, first).

Definition at line 150 of file L1MuRegionalCand.h.

References m_etaValue.

Referenced by FastL1MuonProducer::loadL1Muons(), RPCFileReader::produce(), L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

00150 {m_etaValue = etaVal;}

void L1MuRegionalCand::setFineHalo ( bool  fh  )  [inline]

Set Fine / Halo.

Definition at line 159 of file L1MuRegionalCand.h.

References FINEHALO_LENGTH, FINEHALO_START, and writeDataField().

Referenced by L1MuDTTrack::setFineEtaBit().

00159 { writeDataField (FINEHALO_START, FINEHALO_LENGTH, fh ? 1 : 0); }

void L1MuRegionalCand::setFineHaloPacked ( unsigned  fh  )  [inline]

Set Fine / Halo.

Definition at line 136 of file L1MuRegionalCand.h.

References FINEHALO_LENGTH, FINEHALO_START, and writeDataField().

Referenced by L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), and CSCTFSPCoreLogic::run().

void L1MuRegionalCand::setPhiPacked ( unsigned  phi  )  [inline]

Set Phi: 0..143.

Definition at line 118 of file L1MuRegionalCand.h.

References PHI_LENGTH, PHI_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), and L1MuDTTrack::setPhi().

void L1MuRegionalCand::setPhiValue ( float  phiVal  )  [inline]

Setters - values.

Set Phi Value

Definition at line 144 of file L1MuRegionalCand.h.

References m_phiValue.

Referenced by FastL1MuonProducer::loadL1Muons(), RPCFileReader::produce(), L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

00144 {m_phiValue = phiVal;}

void L1MuRegionalCand::setPtPacked ( unsigned  pt  )  [inline]

Set Pt: 0..31.

Definition at line 121 of file L1MuRegionalCand.h.

References PT_LENGTH, PT_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), RPCFileReader::produce(), CSCTFSectorProcessor::run(), and L1MuDTTrack::setPt().

00121 { writeDataField (PT_START, PT_LENGTH, pt); }

void L1MuRegionalCand::setPtValue ( float  ptVal  )  [inline]

Set Pt Value.

Definition at line 147 of file L1MuRegionalCand.h.

References m_ptValue.

Referenced by FastL1MuonProducer::loadL1Muons(), L1MuGMTPSB::receiveData(), L1DummyProducer::SimpleDigi(), and L1GlobalTriggerRawToDigi::unpackGMT().

00147 {m_ptValue = ptVal;}

void L1MuRegionalCand::setQualityPacked ( unsigned  qual  )  [inline]

Set Quality: 0..7.

Definition at line 124 of file L1MuRegionalCand.h.

References QUAL_LENGTH, QUAL_START, and writeDataField().

Referenced by RPCTrigger::giveFinallCandindates(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), L1EmulBias::ModifyCollection(), RPCFileReader::produce(), CSCTFSectorProcessor::run(), and L1MuDTTrack::setQuality().

void L1MuRegionalCand::setType ( unsigned  type  )  [inline]

Setters - packed format.

Set Type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC

Definition at line 112 of file L1MuRegionalCand.h.

References TYPE_LENGTH, TYPE_START, and writeDataField().

Referenced by L1MuDTTrack::enable(), RPCTrigger::giveFinallCandindates(), L1MuDTTrack::L1MuDTTrack(), L1MuDTTrackCand::L1MuDTTrackCand(), L1MuRegionalCand(), csc::L1Track::L1Track(), L1EmulBias::ModifyCollection(), RPCFileReader::produce(), L1MuGMTHWFileReader::readNextEvent(), and L1GlobalTriggerRawToDigi::unpackGMT().

unsigned L1MuRegionalCand::type_idx (  )  const [inline]

return type: 0 DT, 1 bRPC, 2 CSC, 3 fRPC

Definition at line 73 of file L1MuRegionalCand.h.

References readDataField(), TYPE_LENGTH, and TYPE_START.

Referenced by L1MuGMTMerger::convertedEta(), L1MuGMTSortRankUnit::getVeryLowQualityLevel(), RPCTrigger::giveFinallCandindates(), L1MuGMTSortRankUnit::isDisabled(), L1MuGMTMerger::merge_rank(), L1EmulBias::ModifyCollection(), csc::L1Track::operator=(), print(), L1MuGMTMerger::projectedPhi(), L1MuGMTPSB::receiveData(), L1MuGMTSortRankUnit::sort_rank(), and L1GlobalTriggerRawToDigi::unpackGMT().

00073 { return (int) readDataField( TYPE_START, TYPE_LENGTH); };

void L1MuRegionalCand::writeDataField ( unsigned  start,
unsigned  count,
unsigned  value 
) [private]

Definition at line 140 of file L1MuRegionalCand.cc.

References m_dataWord.

Referenced by setChargePacked(), setChargeValid(), setChargeValidPacked(), setChargeValue(), setEtaPacked(), setFineHalo(), setFineHaloPacked(), setPhiPacked(), setPtPacked(), setQualityPacked(), and setType().

00140                                                                                     {
00141   if ( value < (unsigned)0 || value >= (unsigned)( 1 << count ) ) edm::LogWarning("ValueOutOfRange") 
00142          << "L1MuRegionalCand::writeDataField(): value " << value  
00143          << " out of range for data field with bit width "  << count;
00144 
00145   unsigned mask = ( (1 << count) - 1 ) << start;
00146   m_dataWord &= ~mask; // clear
00147   m_dataWord |= (value << start) & mask ;
00148 }


Member Data Documentation

int L1MuRegionalCand::m_bx [private]

Definition at line 176 of file L1MuRegionalCand.h.

Referenced by bx(), reset(), and setBx().

unsigned L1MuRegionalCand::m_dataWord [private]

Definition at line 177 of file L1MuRegionalCand.h.

Referenced by getDataWord(), readDataField(), reset(), setDataWord(), and writeDataField().

float L1MuRegionalCand::m_etaValue [private]

Definition at line 180 of file L1MuRegionalCand.h.

Referenced by etaValue(), L1MuRegionalCand(), print(), reset(), and setEtaValue().

const float L1MuRegionalCand::m_invalidValue = -10. [static, private]

Definition at line 182 of file L1MuRegionalCand.h.

Referenced by etaValue(), L1MuRegionalCand(), phiValue(), print(), ptValue(), and reset().

float L1MuRegionalCand::m_phiValue [private]

Definition at line 179 of file L1MuRegionalCand.h.

Referenced by L1MuRegionalCand(), phiValue(), print(), reset(), and setPhiValue().

float L1MuRegionalCand::m_ptValue [private]

Definition at line 181 of file L1MuRegionalCand.h.

Referenced by L1MuRegionalCand(), print(), ptValue(), reset(), and setPtValue().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:57 2009 for CMSSW by  doxygen 1.5.4