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 setMPCLink (const uint16_t &link)
 Set mpc link number after MPC sorting. More...
 
void setQuality (unsigned int q)
 set quality code More...
 
void setTrknmb (const uint16_t number)
 Set track number (1,2) after sorting LCTs. 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 13 of file CSCCorrelatedLCTDigi.cc.

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

Default.

Definition at line 37 of file CSCCorrelatedLCTDigi.cc.

References clear().

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

Member Function Documentation

void CSCCorrelatedLCTDigi::clear ( void  )

default

Clears this LCT.

clear this LCT

Definition at line 42 of file CSCCorrelatedLCTDigi.cc.

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

Referenced by CSCMotherboardME11::clear(), CSCMotherboard::clear(), Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), CSCCorrelatedLCTDigi(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), CSCMotherboardME11::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().

42  {
43  trknmb = 0;
44  valid = 0;
45  quality = 0;
46  keywire = 0;
47  strip = 0;
48  pattern = 0;
49  bend = 0;
50  bx = 0;
51  mpclink = 0;
52  bx0 = 0;
53  syncErr = 0;
54  cscID = 0;
55 }
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 operator<<(), and print().

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

return track number

Definition at line 31 of file CSCCorrelatedLCTDigi.h.

References trknmb.

Referenced by L1EmulBias::ModifyCollection(), csctf::TrackStub::operator<(), operator<<(), csctf::TrackStub::operator>(), and print().

31 { return trknmb; }
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 58 of file CSCCorrelatedLCTDigi.cc.

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

Referenced by operator!=().

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

Print content of correlated LCT digi.

Debug.

Definition at line 66 of file CSCCorrelatedLCTDigi.cc.

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

66  {
67  if (isValid()) {
68  std::cout << "CSC LCT #" << getTrknmb()
69  << ": Valid = " << isValid()
70  << " Quality = " << getQuality()
71  << " Key Wire = " << getKeyWG()
72  << " Strip = " << getStrip()
73  << " Pattern = " << getPattern()
74  << " Bend = " << ( (getBend() == 0) ? 'L' : 'R' )
75  << " BX = " << getBX()
76  << " MPC Link = " << getMPCLink() << std::endl;
77  }
78  else {
79  std::cout << "Not a valid correlated LCT." << std::endl;
80  }
81 }
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
tuple cout
Definition: gather_cfg.py:121
int getKeyWG() const
return the key wire group
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::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 85 of file CSCCorrelatedLCTDigi.h.

References lumiQueryAPI::q.

void CSCCorrelatedLCTDigi::setTrknmb ( const uint16_t  number)
inline

Set track number (1,2) after sorting LCTs.

Definition at line 68 of file CSCCorrelatedLCTDigi.h.

References contentValuesFiles::number.

Referenced by CSCMotherboardME11::correlateLCTs(), CSCMotherboard::correlateLCTs(), and L1EmulBias::ModifyCollection().

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 94 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 95 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 97 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), and getBX0().

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 99 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), and getCSCID().

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 91 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 96 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::pattern
private

Definition at line 93 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::quality
private

Definition at line 90 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::strip
private

Definition at line 92 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::syncErr
private

Definition at line 98 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), and getSyncErr().

uint16_t CSCCorrelatedLCTDigi::trknmb
private

Definition at line 88 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::valid
private

Definition at line 89 of file CSCCorrelatedLCTDigi.h.

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