#include <CSCCorrelatedLCTDigi.h>
Public Member Functions | |
void | clear () |
default | |
CSCCorrelatedLCTDigi () | |
Default. | |
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. | |
int | getBend () const |
return bend | |
int | getBX () const |
return BX | |
uint16_t | getBX0 () const |
int | getCLCTPattern () const |
return CLCT pattern number (in use again Feb 2011) | |
uint16_t | getCSCID () const |
int | getKeyWG () const |
return the key wire group | |
int | getMPCLink () const |
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank | |
int | getPattern () const |
return pattern | |
int | getQuality () const |
return the 4 bit Correlated LCT Quality | |
int | getStrip () const |
return the key halfstrip from 0,159 | |
int | getStripType () const |
return strip type (obsolete since mid-2008) | |
uint16_t | getSyncErr () const |
int | getTrknmb () const |
return track number | |
bool | isValid () const |
return valid pattern bit | |
bool | operator!= (const CSCCorrelatedLCTDigi &rhs) const |
bool | operator== (const CSCCorrelatedLCTDigi &) const |
Comparison. | |
void | print () const |
Print content of correlated LCT digi. | |
void | setMPCLink (const uint16_t &link) |
Set mpc link number after MPC sorting. | |
void | setQuality (unsigned int q) |
set quality code | |
void | setTrknmb (const uint16_t number) |
Set track number (1,2) after sorting LCTs. | |
void | setWireGroup (unsigned int wiregroup) |
set wiregroup number | |
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 |
Digi for Correlated LCT trigger primitives.
Digi for Correlated LCT trigger primitives.
Definition at line 17 of file CSCCorrelatedLCTDigi.h.
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 |
||
) |
CSCCorrelatedLCTDigi::CSCCorrelatedLCTDigi | ( | ) |
Default.
Definition at line 39 of file CSCCorrelatedLCTDigi.cc.
References clear().
{ clear(); // set contents to zero }
void CSCCorrelatedLCTDigi::clear | ( | void | ) |
default
Clears this LCT.
clear this LCT
Definition at line 44 of file CSCCorrelatedLCTDigi.cc.
References bend, bx, bx0, cscID, keywire, mpclink, pattern, quality, strip, syncErr, trknmb, and valid.
Referenced by CSCMotherboard::clear(), CSCCorrelatedLCTDigi(), and L1DummyProducer::SimpleDigi().
int CSCCorrelatedLCTDigi::getBend | ( | ) | const [inline] |
return bend
Definition at line 51 of file CSCCorrelatedLCTDigi.h.
References bend.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), operator<<(), and print().
{ return bend; }
int CSCCorrelatedLCTDigi::getBX | ( | ) | const [inline] |
return BX
Definition at line 54 of file CSCCorrelatedLCTDigi.h.
References bx.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), csctf::TrackStub::BX(), CSCMotherboard::correlateLCTs(), operator<<(), and print().
{ return bx; }
uint16_t CSCCorrelatedLCTDigi::getBX0 | ( | ) | const [inline] |
Definition at line 66 of file CSCCorrelatedLCTDigi.h.
References bx0.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), and operator<<().
{return bx0;}
int CSCCorrelatedLCTDigi::getCLCTPattern | ( | ) | const [inline] |
return CLCT pattern number (in use again Feb 2011)
Definition at line 57 of file CSCCorrelatedLCTDigi.h.
{ return (pattern & 0xF); }
uint16_t CSCCorrelatedLCTDigi::getCSCID | ( | ) | const [inline] |
Definition at line 65 of file CSCCorrelatedLCTDigi.h.
References cscID.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), and operator<<().
{return cscID;}
int CSCCorrelatedLCTDigi::getKeyWG | ( | ) | const [inline] |
return the key wire group
Definition at line 42 of file CSCCorrelatedLCTDigi.h.
References keywire.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), operator<<(), and print().
{ return keywire; }
int CSCCorrelatedLCTDigi::getMPCLink | ( | ) | const [inline] |
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
Definition at line 63 of file CSCCorrelatedLCTDigi.h.
References mpclink.
Referenced by operator<<(), and print().
{ return mpclink; }
int CSCCorrelatedLCTDigi::getPattern | ( | ) | const [inline] |
return pattern
Definition at line 48 of file CSCCorrelatedLCTDigi.h.
References pattern.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), operator<<(), and print().
{ return pattern; }
int CSCCorrelatedLCTDigi::getQuality | ( | ) | const [inline] |
return the 4 bit Correlated LCT Quality
Definition at line 39 of file CSCCorrelatedLCTDigi.h.
References quality.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), csctf::TrackStub::operator<(), operator<<(), csctf::TrackStub::operator>(), and print().
{ return quality; }
int CSCCorrelatedLCTDigi::getStrip | ( | ) | const [inline] |
return the key halfstrip from 0,159
Definition at line 45 of file CSCCorrelatedLCTDigi.h.
References strip.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), operator<<(), and print().
{ return strip; }
int CSCCorrelatedLCTDigi::getStripType | ( | ) | const [inline] |
return strip type (obsolete since mid-2008)
Definition at line 60 of file CSCCorrelatedLCTDigi.h.
{ return ((pattern & 0x8) >> 3); }
uint16_t CSCCorrelatedLCTDigi::getSyncErr | ( | ) | const [inline] |
Definition at line 67 of file CSCCorrelatedLCTDigi.h.
References syncErr.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), and operator<<().
{return syncErr;}
int CSCCorrelatedLCTDigi::getTrknmb | ( | ) | const [inline] |
return track number
Definition at line 33 of file CSCCorrelatedLCTDigi.h.
References trknmb.
Referenced by L1EmulBias::ModifyCollection(), csctf::TrackStub::operator<(), operator<<(), csctf::TrackStub::operator>(), and print().
{ return trknmb; }
bool CSCCorrelatedLCTDigi::isValid | ( | void | ) | const [inline] |
return valid pattern bit
Definition at line 36 of file CSCCorrelatedLCTDigi.h.
References valid.
Referenced by CSCTMBHeader2007::addCorrelatedLCT0(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT0(), CSCTMBHeader2006::addCorrelatedLCT0(), CSCTMBHeader2007::addCorrelatedLCT1(), CSCTMBHeader2007_rev0x50c3::addCorrelatedLCT1(), CSCTMBHeader2006::addCorrelatedLCT1(), csctf::TrackStub::operator<(), operator<<(), csctf::TrackStub::operator>(), and print().
{ return valid; }
bool CSCCorrelatedLCTDigi::operator!= | ( | const CSCCorrelatedLCTDigi & | rhs | ) | const [inline] |
Definition at line 80 of file CSCCorrelatedLCTDigi.h.
References operator==().
{ return !(this->operator==(rhs)); }
bool CSCCorrelatedLCTDigi::operator== | ( | const CSCCorrelatedLCTDigi & | rhs | ) | const |
void CSCCorrelatedLCTDigi::print | ( | void | ) | const |
Print content of correlated LCT digi.
Debug.
Definition at line 68 of file CSCCorrelatedLCTDigi.cc.
References gather_cfg::cout, getBend(), getBX(), getKeyWG(), getMPCLink(), getPattern(), getQuality(), getStrip(), getTrknmb(), and isValid().
{ if (isValid()) { std::cout << "CSC LCT #" << getTrknmb() << ": Valid = " << isValid() << " Quality = " << getQuality() << " Key Wire = " << getKeyWG() << " Strip = " << getStrip() << " Pattern = " << getPattern() << " Bend = " << ( (getBend() == 0) ? 'L' : 'R' ) << " BX = " << getBX() << " MPC Link = " << getMPCLink() << std::endl; } else { std::cout << "Not a valid correlated LCT." << std::endl; } }
void CSCCorrelatedLCTDigi::setMPCLink | ( | const uint16_t & | link | ) | [inline] |
void CSCCorrelatedLCTDigi::setQuality | ( | unsigned int | q | ) | [inline] |
void CSCCorrelatedLCTDigi::setTrknmb | ( | const uint16_t | number | ) | [inline] |
Set track number (1,2) after sorting LCTs.
Definition at line 70 of file CSCCorrelatedLCTDigi.h.
Referenced by CSCMotherboard::correlateLCTs(), and L1EmulBias::ModifyCollection().
{trknmb = number;}
void CSCCorrelatedLCTDigi::setWireGroup | ( | unsigned int | wiregroup | ) | [inline] |
uint16_t CSCCorrelatedLCTDigi::bend [private] |
Definition at line 96 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getBend(), and operator==().
uint16_t CSCCorrelatedLCTDigi::bx [private] |
Definition at line 97 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getBX(), and operator==().
uint16_t CSCCorrelatedLCTDigi::bx0 [private] |
Definition at line 99 of file CSCCorrelatedLCTDigi.h.
uint16_t CSCCorrelatedLCTDigi::cscID [private] |
Definition at line 101 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), and getCSCID().
uint16_t CSCCorrelatedLCTDigi::keywire [private] |
Definition at line 93 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getKeyWG(), and operator==().
uint16_t CSCCorrelatedLCTDigi::mpclink [private] |
Definition at line 98 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getMPCLink(), operator==(), and setMPCLink().
uint16_t CSCCorrelatedLCTDigi::pattern [private] |
Definition at line 95 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getPattern(), and operator==().
uint16_t CSCCorrelatedLCTDigi::quality [private] |
Definition at line 92 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getQuality(), and operator==().
uint16_t CSCCorrelatedLCTDigi::strip [private] |
Definition at line 94 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getStrip(), and operator==().
uint16_t CSCCorrelatedLCTDigi::syncErr [private] |
Definition at line 100 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), and getSyncErr().
uint16_t CSCCorrelatedLCTDigi::trknmb [private] |
Definition at line 90 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), getTrknmb(), and operator==().
uint16_t CSCCorrelatedLCTDigi::valid [private] |
Definition at line 91 of file CSCCorrelatedLCTDigi.h.
Referenced by clear(), isValid(), and operator==().