CMS 3D CMS Logo

L1MuGMTCand Class Reference

L1 Global Muon Trigger Candidate. More...

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

Inheritance diagram for L1MuGMTCand:

L1MuGMTExtendedCand SimpleL1MuGMTCand

List of all members.

Public Member Functions

int bx () const
 get bunch crossing identifier
int charge () const
 get charge (+1 -1)
bool charge_valid () const
 is the charge valid ?
bool empty () const
 is it an empty muon candidate?
unsigned int etaIndex () const
 get eta-code
unsigned int etaRegionIndex () const
float etaValue () const
 get eta-value of muon candidate this functionality will be moved to an extra Producer
unsigned getDataWord () const
 get muon data word
bool isHaloCand () const
 interpretation of quality code: is the candidate a beam halo muon ?
bool isMatchedCand () const
 interpretation of quality code: is the candidate a matched candidate ?
bool isol () const
 get isolation
bool isSyncWord () const
 is the candidate a sync word
 L1MuGMTCand (const L1MuGMTCand &)
 copy constructor
 L1MuGMTCand (unsigned data, int bx=0)
 constructor from dataword
 L1MuGMTCand ()
 constructor
unsigned int linearizedPt (float lsbValue, unsigned maxScale) const
bool mip () const
 get mip
std::string name () const
 get name of object
bool operator!= (const L1MuGMTCand &) const
 unequal operator
bool operator== (const L1MuGMTCand &) const
 equal operator
unsigned int phiIndex () const
 get phi-code
unsigned int phiRegionIndex () const
float phiValue () const
 get phi-value of muon candidate in radians (low edge of bin) this functionality will be moved to an extra Producer
void print () const
 print parameters of muon candidate
unsigned int ptIndex () const
 get pt-code
float ptValue () const
 get pt-value of muon candidate in GeV this functionality will be moved to an extra Producer
unsigned int quality () const
 get quality
void reset ()
 reset muon candidate
void setBx (int bx)
 set bunch crossing identifier
void setChargePacked (unsigned ch)
 set packed charge/synchronization word of muon candidate (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)
void setEtaPacked (unsigned eta)
 set packed eta-code of muon candidate
void setEtaValue (float etaVal)
 Set Eta Value (need to set type, first).
void setIsolation (bool isol)
 set isolation of muon candidate
void setMIP (bool mip)
 set min ionizing bit for muon candidate
void setPhiPacked (unsigned phi)
 Setters.
void setPhiValue (float phiVal)
 Setters for physical values.
void setPtPacked (unsigned pt)
 set packed pt-code of muon candidate
void setPtValue (float ptVal)
 Set Pt Value.
void setQuality (unsigned quality)
 set quality of muon candidate
unsigned sysign () const
 get charge/synchronization word (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)
bool useInDiMuonTrigger () const
 interpretation of quality code: is the candidate to be used in a di-muon trigger ?
bool useInSingleMuonTrigger () const
 interpretation of quality code: is the candidate to be used in a single muon trigger ?
virtual ~L1MuGMTCand ()
 destructor

Protected 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  { ISO_START = 22 }
enum  { ISO_LENGTH = 1 }
enum  { MIP_START = 23 }
enum  { MIP_LENGTH = 1 }
enum  { SYSIGN_START = 24 }
enum  { SYSIGN_LENGTH = 2 }

Protected Member Functions

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

Protected Attributes

int m_bx
unsigned m_dataWord
float m_etaValue
std::string m_name
float m_phiValue
float m_ptValue

Static Protected Attributes

static const float m_invalidValue = -10.

Friends

std::ostream & operator<< (std::ostream &, const L1MuGMTCand &)
 output stream operator


Detailed Description

L1 Global Muon Trigger Candidate.

This candidate contains only information sent to the GT.

Definition at line 42 of file L1MuGMTCand.h.


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
PHI_START 

Definition at line 226 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
PHI_LENGTH 

Definition at line 226 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
PT_START 

Definition at line 227 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
PT_LENGTH 

Definition at line 227 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
QUAL_START 

Definition at line 228 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
QUAL_LENGTH 

Definition at line 228 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
ETA_START 

Definition at line 229 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
ETA_LENGTH 

Definition at line 229 of file L1MuGMTCand.h.

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

anonymous enum [protected]

Enumerator:
ISO_START 

Definition at line 230 of file L1MuGMTCand.h.

00230 { ISO_START=22};    enum { ISO_LENGTH = 1};    // Bit  22    Isolation

anonymous enum [protected]

Enumerator:
ISO_LENGTH 

Definition at line 230 of file L1MuGMTCand.h.

00230 { ISO_START=22};    enum { ISO_LENGTH = 1};    // Bit  22    Isolation

anonymous enum [protected]

Enumerator:
MIP_START 

Definition at line 231 of file L1MuGMTCand.h.

00231 { MIP_START=23};    enum { MIP_LENGTH = 1};    // Bit  23    MIP

anonymous enum [protected]

Enumerator:
MIP_LENGTH 

Definition at line 231 of file L1MuGMTCand.h.

00231 { MIP_START=23};    enum { MIP_LENGTH = 1};    // Bit  23    MIP

anonymous enum [protected]

Enumerator:
SYSIGN_START 

Definition at line 232 of file L1MuGMTCand.h.

00232 { SYSIGN_START=24}; enum { SYSIGN_LENGTH = 2}; // Bit  24:25 Charge/Syncword

anonymous enum [protected]

Enumerator:
SYSIGN_LENGTH 

Definition at line 232 of file L1MuGMTCand.h.

00232 { SYSIGN_START=24}; enum { SYSIGN_LENGTH = 2}; // Bit  24:25 Charge/Syncword


Constructor & Destructor Documentation

L1MuGMTCand::L1MuGMTCand (  ) 

constructor

Definition at line 51 of file L1MuGMTCand.cc.

References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.

00051                          : m_name("L1MuGMTCand"), m_bx(0), m_dataWord(0) {
00052   m_phiValue = m_invalidValue; 
00053   m_etaValue = m_invalidValue;
00054   m_ptValue = m_invalidValue;
00055 }

L1MuGMTCand::L1MuGMTCand ( unsigned  data,
int  bx = 0 
)

constructor from dataword

Definition at line 63 of file L1MuGMTCand.cc.

References m_etaValue, m_invalidValue, m_phiValue, and m_ptValue.

00063                                               : 
00064   m_name("L1MuGMTCand"), m_bx(bx) , m_dataWord(data) {
00065 
00066   m_phiValue = m_invalidValue; 
00067   m_etaValue = m_invalidValue;
00068   m_ptValue = m_invalidValue;
00069 
00070 }

L1MuGMTCand::L1MuGMTCand ( const L1MuGMTCand mu  ) 

copy constructor

Definition at line 58 of file L1MuGMTCand.cc.

00058                                               :
00059   m_name(mu.m_name), m_bx(mu.m_bx), m_dataWord(mu.m_dataWord),
00060   m_phiValue(mu.m_phiValue), m_etaValue(mu.m_etaValue), m_ptValue(mu.m_ptValue) {
00061 }

L1MuGMTCand::~L1MuGMTCand (  )  [virtual]

destructor

Definition at line 75 of file L1MuGMTCand.cc.

References reset().

00075                           {
00076 
00077   reset();
00078 
00079 }


Member Function Documentation

int L1MuGMTCand::bx (  )  const [inline]

get bunch crossing identifier

Definition at line 122 of file L1MuGMTCand.h.

References m_bx.

Referenced by print().

00122 { return m_bx; }

int L1MuGMTCand::charge (  )  const [inline]

get charge (+1 -1)

Reimplemented in SimpleL1MuGMTCand.

Definition at line 137 of file L1MuGMTCand.h.

References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.

Referenced by cms::HICFTSfromL1orL2::FTSfromL1(), print(), L1MuonPixelTrackFitter::setL1Constraint(), and L1MuonRegionProducer::setL1Constraint().

00137 { return (readDataField( SYSIGN_START, SYSIGN_LENGTH) & 1 ) == 0 ? 1: -1; }

bool L1MuGMTCand::charge_valid (  )  const [inline]

is the charge valid ?

Definition at line 140 of file L1MuGMTCand.h.

References readDataField(), sysign(), SYSIGN_LENGTH, and SYSIGN_START.

Referenced by L2MuonSeedGenerator::produce().

00140                               { 
00141       unsigned sysign = readDataField( SYSIGN_START, SYSIGN_LENGTH) ;
00142       return  (sysign == 0 || sysign == 1 );
00143     }

bool L1MuGMTCand::empty (  )  const [inline]

is it an empty muon candidate?

Reimplemented in SimpleL1MuGMTCand.

Definition at line 66 of file L1MuGMTCand.h.

References PT_LENGTH, PT_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), operator<<(), L1MuGMTExtendedCand::print(), print(), L2MuonSeedGenerator::produce(), and L1GlobalTriggerRawToDigi::unpackGMT().

00066 { return readDataField( PT_START, PT_LENGTH) == 0; }

unsigned int L1MuGMTCand::etaIndex (  )  const [inline]

get eta-code

Definition at line 110 of file L1MuGMTCand.h.

References ETA_LENGTH, ETA_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), etaRegionIndex(), L1MuGMTMerger::merge(), print(), and L1GlobalTriggerRawToDigi::unpackGMT().

00110 { return readDataField( ETA_START, ETA_LENGTH); }

unsigned int L1MuGMTCand::etaRegionIndex (  )  const [inline]

Reimplemented in SimpleL1MuGMTCand.

Definition at line 193 of file L1MuGMTCand.h.

References etaIndex().

00193 { return etaIndex(); }

float L1MuGMTCand::etaValue (  )  const

get eta-value of muon candidate this functionality will be moved to an extra Producer

Definition at line 116 of file L1MuGMTCand.cc.

References m_etaValue, and m_invalidValue.

Referenced by cms::HICFTSfromL1orL2::FTSfromL1(), print(), SimpleL1MuGMTCand::print(), FastL1MuonProducer::produce(), L1MuonPixelTrackFitter::setL1Constraint(), and L1MuonRegionProducer::setL1Constraint().

00116                                   {
00117 
00118   if(m_etaValue == m_invalidValue) {
00119     edm::LogWarning("ValueInvalid") << 
00120      "L1MuGMTCand::etaValue requested physical value is invalid";
00121   }
00122   return m_etaValue;
00123 
00124 }

unsigned L1MuGMTCand::getDataWord (  )  const [inline]

get muon data word

Definition at line 69 of file L1MuGMTCand.h.

References m_dataWord.

00069 { return m_dataWord; }

bool L1MuGMTCand::isHaloCand (  )  const [inline]

interpretation of quality code: is the candidate a beam halo muon ?

Definition at line 107 of file L1MuGMTCand.h.

References quality().

00107 { return quality() == 1; }

bool L1MuGMTCand::isMatchedCand (  )  const [inline]

interpretation of quality code: is the candidate a matched candidate ?

Definition at line 104 of file L1MuGMTCand.h.

References quality().

00104 { return quality() == 7; }

bool L1MuGMTCand::isol (  )  const [inline]

get isolation

Definition at line 116 of file L1MuGMTCand.h.

References ISO_LENGTH, ISO_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), l1extra::L1MuonParticle::L1MuonParticle(), and print().

00116 { return readDataField( ISO_START, ISO_LENGTH) == 1; }

bool L1MuGMTCand::isSyncWord (  )  const [inline]

is the candidate a sync word

Definition at line 146 of file L1MuGMTCand.h.

References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.

00146 { return readDataField( SYSIGN_START, SYSIGN_LENGTH) == 3; }

unsigned int L1MuGMTCand::linearizedPt ( float  lsbValue,
unsigned  maxScale 
) const [inline]

Reimplemented in SimpleL1MuGMTCand.

Definition at line 191 of file L1MuGMTCand.h.

00191 { return 0; }

bool L1MuGMTCand::mip (  )  const [inline]

get mip

Definition at line 119 of file L1MuGMTCand.h.

References MIP_LENGTH, MIP_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), l1extra::L1MuonParticle::L1MuonParticle(), and print().

00119 { return readDataField( MIP_START, MIP_LENGTH) == 1; } 

std::string L1MuGMTCand::name (  )  const [inline]

get name of object

Reimplemented in SimpleL1MuGMTCand.

Definition at line 72 of file L1MuGMTCand.h.

References m_name.

00072 { return m_name; }

bool L1MuGMTCand::operator!= ( const L1MuGMTCand cand  )  const

unequal operator

Definition at line 155 of file L1MuGMTCand.cc.

References m_bx, and m_dataWord.

00155                                                           {
00156 
00157   if ( m_bx        != cand.m_bx )        return true;  
00158   if ( m_dataWord  != cand.m_dataWord )  return true;
00159   return false;
00160 
00161 }

bool L1MuGMTCand::operator== ( const L1MuGMTCand cand  )  const

equal operator

Definition at line 143 of file L1MuGMTCand.cc.

References m_bx, and m_dataWord.

00143                                                           {
00144 
00145   if ( m_bx        != cand.m_bx )        return false; 
00146   if ( m_dataWord  != cand.m_dataWord )  return false;
00147   return true;
00148 
00149 }

unsigned int L1MuGMTCand::phiIndex (  )  const [inline]

get phi-code

Definition at line 75 of file L1MuGMTCand.h.

References PHI_LENGTH, PHI_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), L1MuGMTMerger::merge(), phiRegionIndex(), print(), and L1GlobalTriggerRawToDigi::unpackGMT().

00075 { return readDataField( PHI_START, PHI_LENGTH); }

unsigned int L1MuGMTCand::phiRegionIndex (  )  const [inline]

Reimplemented in SimpleL1MuGMTCand.

Definition at line 195 of file L1MuGMTCand.h.

References phiIndex().

00195 { return phiIndex(); }

float L1MuGMTCand::phiValue (  )  const

get phi-value of muon candidate in radians (low edge of bin) this functionality will be moved to an extra Producer

Definition at line 102 of file L1MuGMTCand.cc.

References m_invalidValue, and m_phiValue.

Referenced by cms::HICFTSfromL1orL2::FTSfromL1(), print(), SimpleL1MuGMTCand::print(), FastL1MuonProducer::produce(), L1MuonPixelTrackFitter::setL1Constraint(), and L1MuonRegionProducer::setL1Constraint().

00102                                   {
00103 
00104   if(m_phiValue == m_invalidValue) {
00105     edm::LogWarning("ValueInvalid") << 
00106      "L1MuGMTCand::phiValue requested physical value is invalid";
00107   }
00108   return m_phiValue;
00109 
00110 }

void L1MuGMTCand::print ( void   )  const

print parameters of muon candidate

Reimplemented in L1MuGMTExtendedCand, and SimpleL1MuGMTCand.

Definition at line 167 of file L1MuGMTCand.cc.

References bx(), charge(), empty(), lat::endl(), etaIndex(), etaValue(), isol(), m_etaValue, m_invalidValue, m_phiValue, m_ptValue, mip(), phiIndex(), phiValue(), ptIndex(), ptValue(), and quality().

Referenced by L1MuGMTExtendedCand::print().

00167                               {
00168 
00169   if ( !empty() ) {
00170     if(m_phiValue == m_invalidValue ||
00171        m_etaValue == m_invalidValue ||
00172        m_ptValue == m_invalidValue) {
00173       edm::LogVerbatim("GMT_Candidate_info")
00174            << setiosflags(ios::right | ios::adjustfield | ios::showpoint | ios::fixed)
00175            << "bx = " << setw(2) << bx() << " " << endl
00176            << "pt(index) = "  << setw(2) << ptIndex() << "  "
00177            << "charge = " << setw(2) << charge() << "  "
00178            << "eta(index) = " << setw(2) << etaIndex() << "  "
00179            << "phi(index) = " << setw(3) << phiIndex() << "  "
00180            << "quality = " << setw(1) << quality() << "  "
00181            << "isolated = " << setw(1) << isol() << "  "
00182            << "mip = " << setw(1) << mip() << endl;
00183     } else {
00184       edm::LogVerbatim("GMT_Candidate_info")
00185            << setiosflags(ios::right | ios::adjustfield | ios::showpoint | ios::fixed)
00186            << "bx = " << setw(2) << bx() << " " << endl
00187            << "pt = "  << setw(5) << setprecision(1) << ptValue() << " GeV  "
00188            << "charge = " << setw(2) << charge() << "  "
00189            << "eta = " << setw(5) << setprecision(2) << etaValue() << "  "
00190            << "phi = " << setw(5) << setprecision(3) << phiValue() << " rad  "
00191            << "quality = " << setw(1) << quality() << "  "
00192            << "isolated = " << setw(1) << isol() << "  "
00193            << "mip = " << setw(1) << mip() << endl;
00194     }
00195   }
00196 
00197 }

unsigned int L1MuGMTCand::ptIndex (  )  const [inline]

get pt-code

Definition at line 78 of file L1MuGMTCand.h.

References PT_LENGTH, PT_START, and readDataField().

Referenced by L1GtMuonCondition::checkObjectParameter(), L1MuGMTMerger::merge(), print(), and L1GlobalTriggerRawToDigi::unpackGMT().

00078 { return readDataField( PT_START, PT_LENGTH); }

float L1MuGMTCand::ptValue (  )  const

get pt-value of muon candidate in GeV this functionality will be moved to an extra Producer

Definition at line 130 of file L1MuGMTCand.cc.

References m_invalidValue, and m_ptValue.

Referenced by cms::HICFTSfromL1orL2::FTSfromL1(), print(), SimpleL1MuGMTCand::print(), ParamL3MuonProducer::produce(), and FastL1MuonProducer::produce().

00130                                  {
00131 
00132   if(m_ptValue == m_invalidValue) {
00133     edm::LogWarning("ValueInvalid") << 
00134      "L1MuRegionalCand::ptValue requested physical value is invalid";
00135   }
00136   return m_ptValue;
00137 
00138 }

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

get quality

Quality codes:

0 .. no muon 1 .. beam halo muon (CSC) 2 .. very low quality level 1 (e.g. ignore in single and di-muon trigger) 3 .. very low quality level 2 (e.g. ignore in single muon trigger use in di-muon trigger) 4 .. very low quality level 3 (e.g. ignore in di-muon trigger, use in single-muon trigger) 5 .. unmatched RPC 6 .. unmatched DT or CSC 7 .. matched DT-RPC or CSC-RPC

attention: try not to rely on quality codes in analysis: they may change again

Reimplemented in SimpleL1MuGMTCand.

Definition at line 95 of file L1MuGMTCand.h.

References QUAL_LENGTH, QUAL_START, and readDataField().

Referenced by HLTInfo::analyze(), L1GtMuonCondition::checkObjectParameter(), L1MuGMTExtendedCand::detector(), HLTTauL1DQMOfflineSource::getL1extraObjects(), L1TauAnalyzer::getL1extraObjects(), isHaloCand(), isMatchedCand(), print(), L2MuonSeedGenerator::produce(), useInDiMuonTrigger(), and useInSingleMuonTrigger().

00095 { return readDataField( QUAL_START, QUAL_LENGTH); }

unsigned L1MuGMTCand::readDataField ( unsigned  start,
unsigned  count 
) const [inline, protected]

Definition at line 235 of file L1MuGMTCand.h.

References m_dataWord.

Referenced by charge(), charge_valid(), empty(), etaIndex(), L1MuGMTExtendedCand::getDTCSCIndex(), L1MuGMTExtendedCand::getRPCIndex(), L1MuGMTExtendedCand::isFwd(), isol(), L1MuGMTExtendedCand::isRPC(), isSyncWord(), mip(), phiIndex(), ptIndex(), quality(), and sysign().

00235                                                                         {
00236   unsigned mask = ( (1 << count) - 1 ) << start;
00237   return (m_dataWord & mask) >> start;
00238 }

void L1MuGMTCand::reset ( void   ) 

reset muon candidate

Reimplemented in L1MuGMTExtendedCand, and SimpleL1MuGMTCand.

Definition at line 89 of file L1MuGMTCand.cc.

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

Referenced by L1MuGMTExtendedCand::reset(), and ~L1MuGMTCand().

00089                         {
00090 
00091   m_bx       = 0;
00092   m_dataWord = 0;
00093   m_phiValue = m_invalidValue; 
00094   m_etaValue = m_invalidValue;
00095   m_ptValue = m_invalidValue;
00096 
00097 }

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

set bunch crossing identifier

Definition at line 174 of file L1MuGMTCand.h.

References m_bx.

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), L1DummyProducer::SimpleDigi(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().

00174 { m_bx = bx; }

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

set packed charge/synchronization word of muon candidate (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)

Definition at line 171 of file L1MuGMTCand.h.

References SYSIGN_LENGTH, SYSIGN_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setCharge(), and L1DummyProducer::SimpleDigi().

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

set packed eta-code of muon candidate

Definition at line 162 of file L1MuGMTCand.h.

References ETA_LENGTH, ETA_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setEta(), L1DummyProducer::SimpleDigi(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().

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

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

Definition at line 185 of file L1MuGMTCand.h.

References m_etaValue.

Referenced by L1MuGMTMerger::merge(), SimpleL1MuGMTCand::setEta(), L1DummyProducer::SimpleDigi(), SimpleL1MuGMTCand::SimpleL1MuGMTCand(), and L1GlobalTriggerRawToDigi::unpackGMT().

00185 {m_etaValue = etaVal;}

void L1MuGMTCand::setIsolation ( bool  isol  )  [inline]

set isolation of muon candidate

Definition at line 165 of file L1MuGMTCand.h.

References ISO_LENGTH, ISO_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and L1DummyProducer::SimpleDigi().

void L1MuGMTCand::setMIP ( bool  mip  )  [inline]

set min ionizing bit for muon candidate

Definition at line 168 of file L1MuGMTCand.h.

References MIP_LENGTH, MIP_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and L1DummyProducer::SimpleDigi().

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

Setters.

set packed phi-code of muon candidate

Definition at line 153 of file L1MuGMTCand.h.

References PHI_LENGTH, PHI_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setPhi(), L1DummyProducer::SimpleDigi(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().

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

Setters for physical values.

Set Phi Value

Definition at line 179 of file L1MuGMTCand.h.

References m_phiValue.

Referenced by L1MuGMTMerger::merge(), SimpleL1MuGMTCand::setPhi(), L1DummyProducer::SimpleDigi(), SimpleL1MuGMTCand::SimpleL1MuGMTCand(), and L1GlobalTriggerRawToDigi::unpackGMT().

00179 {m_phiValue = phiVal;}

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

set packed pt-code of muon candidate

Definition at line 156 of file L1MuGMTCand.h.

References PT_LENGTH, PT_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), SimpleL1MuGMTCand::setPt(), L1DummyProducer::SimpleDigi(), SimpleL1MuGMTCand::SimpleL1MuGMTCand(), and FML1PtSmearer::smear().

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

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

Set Pt Value.

Definition at line 182 of file L1MuGMTCand.h.

References m_ptValue.

Referenced by L1MuGMTMerger::merge(), SimpleL1MuGMTCand::setPt(), L1DummyProducer::SimpleDigi(), SimpleL1MuGMTCand::SimpleL1MuGMTCand(), FML1PtSmearer::smear(), and L1GlobalTriggerRawToDigi::unpackGMT().

00182 {m_ptValue = ptVal;}

void L1MuGMTCand::setQuality ( unsigned  quality  )  [inline]

set quality of muon candidate

Definition at line 159 of file L1MuGMTCand.h.

References QUAL_LENGTH, QUAL_START, and writeDataField().

Referenced by L1MuGMTMerger::createDTCSCCand(), L1MuGMTMerger::createMergedCand(), L1MuGMTMerger::createRPCCand(), and SimpleL1MuGMTCand::SimpleL1MuGMTCand().

unsigned L1MuGMTCand::sysign (  )  const [inline]

get charge/synchronization word (0=POS, 1=NEG, 2=UNDEF, 3=SYNC)

Definition at line 113 of file L1MuGMTCand.h.

References readDataField(), SYSIGN_LENGTH, and SYSIGN_START.

Referenced by charge_valid().

bool L1MuGMTCand::useInDiMuonTrigger (  )  const [inline]

interpretation of quality code: is the candidate to be used in a di-muon trigger ?

Definition at line 101 of file L1MuGMTCand.h.

References quality().

00101 { return (quality() >= 3) && (quality() !=4); }; 

bool L1MuGMTCand::useInSingleMuonTrigger (  )  const [inline]

interpretation of quality code: is the candidate to be used in a single muon trigger ?

Definition at line 98 of file L1MuGMTCand.h.

References quality().

00098 { return quality() >= 4; };

void L1MuGMTCand::writeDataField ( unsigned  start,
unsigned  count,
unsigned  value 
) [inline, protected]

Definition at line 240 of file L1MuGMTCand.h.

References m_dataWord.

Referenced by setChargePacked(), L1MuGMTExtendedCand::setDTCSCIndex(), setEtaPacked(), L1MuGMTExtendedCand::setFwdBit(), setIsolation(), setMIP(), setPhiPacked(), setPtPacked(), setQuality(), L1MuGMTExtendedCand::setRPCBit(), and L1MuGMTExtendedCand::setRPCIndex().

00240                                                                                {
00241   unsigned mask = ( (1 << count) - 1 ) << start;
00242   m_dataWord &= ~mask; // clear
00243   m_dataWord |= (value << start) & mask ;
00244 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const L1MuGMTCand  
) [friend]

output stream operator


Member Data Documentation

int L1MuGMTCand::m_bx [protected]

Definition at line 216 of file L1MuGMTCand.h.

Referenced by bx(), operator!=(), operator==(), reset(), and setBx().

unsigned L1MuGMTCand::m_dataWord [protected]

Definition at line 217 of file L1MuGMTCand.h.

Referenced by getDataWord(), operator!=(), operator==(), readDataField(), reset(), and writeDataField().

float L1MuGMTCand::m_etaValue [protected]

Definition at line 220 of file L1MuGMTCand.h.

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

const float L1MuGMTCand::m_invalidValue = -10. [static, protected]

Definition at line 222 of file L1MuGMTCand.h.

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

std::string L1MuGMTCand::m_name [protected]

Reimplemented in SimpleL1MuGMTCand.

Definition at line 215 of file L1MuGMTCand.h.

Referenced by name().

float L1MuGMTCand::m_phiValue [protected]

Definition at line 219 of file L1MuGMTCand.h.

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

float L1MuGMTCand::m_ptValue [protected]

Definition at line 221 of file L1MuGMTCand.h.

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


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