test
CMS 3D CMS Logo

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

#include <CSCCorrelatedLCTDigi.h>

Inheritance diagram for CSCCorrelatedLCTDigi:
csctf::TrackStub

Public Member Functions

void clear ()
 default More...
 
 CSCCorrelatedLCTDigi (const int trknmb, const int valid, const int quality, const int keywire, const int strip, const int pattern, const int bend, const int bx, const int mpclink=0, const uint16_t bx0=0, const uint16_t syncErr=0, const uint16_t cscID=0)
 Constructors. More...
 
 CSCCorrelatedLCTDigi ()
 Default. More...
 
int getBend () const
 return bend More...
 
int getBX () const
 return BX More...
 
uint16_t getBX0 () const
 
int getCLCTPattern () const
 return CLCT pattern number (in use again Feb 2011) More...
 
uint16_t getCSCID () const
 
int getKeyWG () const
 return the key wire group More...
 
int getMPCLink () const
 return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank More...
 
int getPattern () const
 return pattern More...
 
int getQuality () const
 return the 4 bit Correlated LCT Quality More...
 
int getStrip () const
 return the key halfstrip from 0,159 More...
 
int getStripType () const
 return strip type (obsolete since mid-2008) More...
 
uint16_t getSyncErr () const
 
int getTrknmb () const
 return track number More...
 
bool isValid () const
 return valid pattern bit More...
 
bool operator!= (const CSCCorrelatedLCTDigi &rhs) const
 
bool operator== (const CSCCorrelatedLCTDigi &) const
 Comparison. More...
 
void print () const
 Print content of correlated LCT digi. More...
 
void setBend (unsigned int b)
 set bend More...
 
void setBX (unsigned int b)
 set bx More...
 
void setBX0 (unsigned int b)
 set bx0 More...
 
void setCSCID (unsigned int c)
 set cscID More...
 
void setMPCLink (const uint16_t &link)
 Set mpc link number after MPC sorting. More...
 
void setPattern (unsigned int p)
 set pattern More...
 
void setQuality (unsigned int q)
 set quality code More...
 
void setStrip (unsigned int s)
 set strip More...
 
void setSyncErr (unsigned int s)
 set syncErr More...
 
void setTrknmb (const uint16_t number)
 Set track number (1,2) after sorting LCTs. More...
 
void setValid (unsigned int v)
 set valid More...
 
void setWireGroup (unsigned int wiregroup)
 set wiregroup number More...
 

Private Attributes

uint16_t bend
 
uint16_t bx
 
uint16_t bx0
 
uint16_t cscID
 
uint16_t keywire
 
uint16_t mpclink
 
uint16_t pattern
 
uint16_t quality
 
uint16_t strip
 
uint16_t syncErr
 
uint16_t trknmb
 
uint16_t valid
 

Detailed Description

Digi for Correlated LCT trigger primitives.

Author
L. Gray, UF

Digi for Correlated LCT trigger primitives.

Author
L.Gray, UF

Definition at line 15 of file CSCCorrelatedLCTDigi.h.

Constructor & Destructor Documentation

CSCCorrelatedLCTDigi::CSCCorrelatedLCTDigi ( const int  trknmb,
const int  valid,
const int  quality,
const int  keywire,
const int  strip,
const int  pattern,
const int  bend,
const int  bx,
const int  mpclink = 0,
const uint16_t  bx0 = 0,
const uint16_t  syncErr = 0,
const uint16_t  cscID = 0 
)

Constructors.

Definition at line 14 of file CSCCorrelatedLCTDigi.cc.

22  :
23  trknmb(itrknmb),
24  valid(ivalid),
25  quality(iquality),
26  keywire(ikeywire),
27  strip(istrip),
28  pattern(ipattern),
29  bend(ibend),
30  bx(ibx),
31  mpclink(impclink),
32  bx0(ibx0),
33  syncErr(isyncErr),
34  cscID(icscID)
35 {}
CSCCorrelatedLCTDigi::CSCCorrelatedLCTDigi ( )

Default.

Definition at line 38 of file CSCCorrelatedLCTDigi.cc.

References clear().

38  {
39  clear(); // set contents to zero
40 }

Member Function Documentation

void CSCCorrelatedLCTDigi::clear ( void  )

default

Clears this LCT.

clear this LCT

Definition at line 43 of file CSCCorrelatedLCTDigi.cc.

References bend, bx, bx0, cscID, keywire, mpclink, pattern, quality, strip, syncErr, trknmb, and valid.

Referenced by CSCMotherboardME11::clear(), CSCMotherboardME11GEM::clear(), CSCMotherboard::clear(), Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), CSCCorrelatedLCTDigi(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), CSCMotherboardME11::run(), CSCMotherboardME3141RPC::run(), CSCMotherboardME21GEM::run(), CSCMotherboardME11GEM::run(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), L1DummyProducer::SimpleDigi(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().

43  {
44  trknmb = 0;
45  valid = 0;
46  quality = 0;
47  keywire = 0;
48  strip = 0;
49  pattern = 0;
50  bend = 0;
51  bx = 0;
52  mpclink = 0;
53  bx0 = 0;
54  syncErr = 0;
55  cscID = 0;
56 }
int CSCCorrelatedLCTDigi::getBend ( ) const
inline
int CSCCorrelatedLCTDigi::getBX ( ) const
inline
uint16_t CSCCorrelatedLCTDigi::getBX0 ( ) const
inline
int CSCCorrelatedLCTDigi::getCLCTPattern ( ) const
inline

return CLCT pattern number (in use again Feb 2011)

Definition at line 55 of file CSCCorrelatedLCTDigi.h.

55 { return (pattern & 0xF); }
uint16_t CSCCorrelatedLCTDigi::getCSCID ( ) const
inline
int CSCCorrelatedLCTDigi::getKeyWG ( ) const
inline
int CSCCorrelatedLCTDigi::getMPCLink ( ) const
inline

return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank

Definition at line 61 of file CSCCorrelatedLCTDigi.h.

References mpclink.

Referenced by l1t::EMTFHit::ImportCSCCorrelatedLCTDigi(), operator<<(), print(), and L1TMuon::TriggerPrimitive::TriggerPrimitive().

61 { return mpclink; }
int CSCCorrelatedLCTDigi::getPattern ( ) const
inline
int CSCCorrelatedLCTDigi::getQuality ( ) const
inline
int CSCCorrelatedLCTDigi::getStrip ( ) const
inline
int CSCCorrelatedLCTDigi::getStripType ( ) const
inline

return strip type (obsolete since mid-2008)

Definition at line 58 of file CSCCorrelatedLCTDigi.h.

58 { return ((pattern & 0x8) >> 3); }
uint16_t CSCCorrelatedLCTDigi::getSyncErr ( ) const
inline
int CSCCorrelatedLCTDigi::getTrknmb ( ) const
inline
bool CSCCorrelatedLCTDigi::isValid ( void  ) const
inline
bool CSCCorrelatedLCTDigi::operator!= ( const CSCCorrelatedLCTDigi rhs) const
inline

Definition at line 78 of file CSCCorrelatedLCTDigi.h.

References operator==().

79  { return !(this->operator==(rhs)); }
bool operator==(const CSCCorrelatedLCTDigi &) const
Comparison.
bool CSCCorrelatedLCTDigi::operator== ( const CSCCorrelatedLCTDigi rhs) const

Comparison.

Definition at line 59 of file CSCCorrelatedLCTDigi.cc.

References bend, bx, keywire, mpclink, pattern, quality, strip, trknmb, and valid.

Referenced by operator!=().

59  {
60  return ((trknmb == rhs.trknmb) && (quality == rhs.quality) &&
61  (keywire == rhs.keywire) && (strip == rhs.strip) &&
62  (pattern == rhs.pattern) && (bend == rhs.bend) &&
63  (bx == rhs.bx) && (valid == rhs.valid) && (mpclink == rhs.mpclink) );
64 }
void CSCCorrelatedLCTDigi::print ( void  ) const

Print content of correlated LCT digi.

Debug.

Definition at line 67 of file CSCCorrelatedLCTDigi.cc.

References getBend(), getBX(), getKeyWG(), getMPCLink(), getPattern(), getQuality(), getStrip(), getTrknmb(), and isValid().

67  {
68  if (isValid()) {
69  edm::LogVerbatim("CSCDigi")
70  << "CSC LCT #" << getTrknmb()
71  << ": Valid = " << isValid()
72  << " Quality = " << getQuality()
73  << " Key Wire = " << getKeyWG()
74  << " Strip = " << getStrip()
75  << " Pattern = " << getPattern()
76  << " Bend = " << ( (getBend() == 0) ? 'L' : 'R' )
77  << " BX = " << getBX()
78  << " MPC Link = " << getMPCLink();
79  }
80  else {
81  edm::LogVerbatim("CSCDigi") << "Not a valid correlated LCT.";
82  }
83 }
int getStrip() const
return the key halfstrip from 0,159
int getQuality() const
return the 4 bit Correlated LCT Quality
int getBend() const
return bend
int getTrknmb() const
return track number
int getBX() const
return BX
int getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
bool isValid() const
return valid pattern bit
int getPattern() const
return pattern
int getKeyWG() const
return the key wire group
void CSCCorrelatedLCTDigi::setBend ( unsigned int  b)
inline

set bend

Definition at line 97 of file CSCCorrelatedLCTDigi.h.

References b.

97 {bend=b;}
double b
Definition: hdecay.h:120
void CSCCorrelatedLCTDigi::setBX ( unsigned int  b)
inline

set bx

Definition at line 100 of file CSCCorrelatedLCTDigi.h.

References b.

Referenced by L1TMuonEndCapTrackProducer::produce().

100 {bx=b;}
double b
Definition: hdecay.h:120
void CSCCorrelatedLCTDigi::setBX0 ( unsigned int  b)
inline

set bx0

Definition at line 103 of file CSCCorrelatedLCTDigi.h.

References b, and bx0.

103 {bx0=b;}
double b
Definition: hdecay.h:120
void CSCCorrelatedLCTDigi::setCSCID ( unsigned int  c)
inline

set cscID

Definition at line 109 of file CSCCorrelatedLCTDigi.h.

References EnergyCorrector::c, and cscID.

void CSCCorrelatedLCTDigi::setMPCLink ( const uint16_t &  link)
inline

Set mpc link number after MPC sorting.

Definition at line 71 of file CSCCorrelatedLCTDigi.h.

References MainPageGenerator::link, and mpclink.

void CSCCorrelatedLCTDigi::setPattern ( unsigned int  p)
inline
void CSCCorrelatedLCTDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 85 of file CSCCorrelatedLCTDigi.h.

References lumiQueryAPI::q.

void CSCCorrelatedLCTDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 91 of file CSCCorrelatedLCTDigi.h.

References alignCSCRings::s.

void CSCCorrelatedLCTDigi::setSyncErr ( unsigned int  s)
inline

set syncErr

Definition at line 106 of file CSCCorrelatedLCTDigi.h.

References alignCSCRings::s, and syncErr.

void CSCCorrelatedLCTDigi::setTrknmb ( const uint16_t  number)
inline
void CSCCorrelatedLCTDigi::setValid ( unsigned int  v)
inline

set valid

Definition at line 88 of file CSCCorrelatedLCTDigi.h.

References findQualityFiles::v.

void CSCCorrelatedLCTDigi::setWireGroup ( unsigned int  wiregroup)
inline

set wiregroup number

Definition at line 82 of file CSCCorrelatedLCTDigi.h.

82 {keywire= wiregroup;}

Member Data Documentation

uint16_t CSCCorrelatedLCTDigi::bend
private

Definition at line 118 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getBend(), and operator==().

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 119 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getBX(), and operator==().

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 121 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getBX0(), and setBX0().

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 123 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getCSCID(), and setCSCID().

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 115 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getKeyWG(), and operator==().

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 120 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getMPCLink(), operator==(), and setMPCLink().

uint16_t CSCCorrelatedLCTDigi::pattern
private
uint16_t CSCCorrelatedLCTDigi::quality
private

Definition at line 114 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getQuality(), and operator==().

uint16_t CSCCorrelatedLCTDigi::strip
private

Definition at line 116 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getStrip(), and operator==().

uint16_t CSCCorrelatedLCTDigi::syncErr
private

Definition at line 122 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getSyncErr(), and setSyncErr().

uint16_t CSCCorrelatedLCTDigi::trknmb
private

Definition at line 112 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getTrknmb(), and operator==().

uint16_t CSCCorrelatedLCTDigi::valid
private

Definition at line 113 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), isValid(), and operator==().