CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
CSCCorrelatedLCTDigi Class Reference

#include <CSCCorrelatedLCTDigi.h>

Inheritance diagram for CSCCorrelatedLCTDigi:
csctf::TrackStub

Public Types

enum  Type {
  CLCTALCT, ALCTCLCT, ALCTCLCTGEM, ALCTCLCT2GEM,
  ALCT2GEM, CLCT2GEM, CLCTONLY, ALCTONLY
}
 SIMULATION ONLY ////. More...
 

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...
 
const CSCALCTDigigetALCT () const
 
int getBend () const
 return bend More...
 
int getBX () const
 return BX More...
 
uint16_t getBX0 () const
 
const CSCCLCTDigigetCLCT () const
 
int getCLCTPattern () const
 return CLCT pattern number (in use again Feb 2011) More...
 
uint16_t getCSCID () const
 
float getFractionalStrip () const
 return the fractional strip. counts from 0.25 More...
 
const GEMPadDigigetGEM1 () const
 
const GEMPadDigigetGEM2 () const
 
int getKeyWG () const
 return the key wire group. counts from 0. 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...
 
int getType () const
 
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 setALCT (const CSCALCTDigi &alct)
 
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 setCLCT (const CSCCLCTDigi &clct)
 
void setCSCID (unsigned int c)
 set cscID More...
 
void setGEM1 (const GEMPadDigi &gem)
 
void setGEM2 (const GEMPadDigi &gem)
 
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 setType (int type)
 
void setValid (unsigned int v)
 set valid More...
 
void setWireGroup (unsigned int wiregroup)
 set wiregroup number More...
 

Private Attributes

CSCALCTDigi alct_
 
uint16_t bend
 
uint16_t bx
 
uint16_t bx0
 
CSCCLCTDigi clct_
 
uint16_t cscID
 
GEMPadDigi gem1_
 
GEMPadDigi gem2_
 
uint16_t keywire
 
uint16_t mpclink
 
uint16_t pattern
 
uint16_t quality
 
uint16_t strip
 
uint16_t syncErr
 
uint16_t trknmb
 
int type_
 SIMULATION ONLY ////. More...
 
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 18 of file CSCCorrelatedLCTDigi.h.

Member Enumeration Documentation

SIMULATION ONLY ////.

Enumerator
CLCTALCT 
ALCTCLCT 
ALCTCLCTGEM 
ALCTCLCT2GEM 
ALCT2GEM 
CLCT2GEM 
CLCTONLY 
ALCTONLY 

Definition at line 122 of file CSCCorrelatedLCTDigi.h.

122  {
123  CLCTALCT, // CLCT-centric
124  ALCTCLCT, // ALCT-centric
125  ALCTCLCTGEM, // ALCT-CLCT-1 GEM pad
126  ALCTCLCT2GEM, // ALCT-CLCT-2 GEM pads in coincidence
127  ALCT2GEM, // ALCT-2 GEM pads in coincidence
128  CLCT2GEM, // CLCT-2 GEM pads in coincidence
129  CLCTONLY, // Missing ALCT
130  ALCTONLY // Missing CLCT
131  };

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.

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

Default.

Definition at line 40 of file CSCCorrelatedLCTDigi.cc.

References clear().

40  {
41  clear(); // set contents to zero
42 }

Member Function Documentation

void CSCCorrelatedLCTDigi::clear ( void  )

default

Clears this LCT.

clear this LCT

Definition at line 45 of file CSCCorrelatedLCTDigi.cc.

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

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

45  {
46  trknmb = 0;
47  valid = 0;
48  quality = 0;
49  keywire = 0;
50  strip = 0;
51  pattern = 0;
52  bend = 0;
53  bx = 0;
54  mpclink = 0;
55  bx0 = 0;
56  syncErr = 0;
57  cscID = 0;
58 }
const CSCALCTDigi& CSCCorrelatedLCTDigi::getALCT ( ) const
inline

Definition at line 140 of file CSCCorrelatedLCTDigi.h.

References alct_.

Referenced by L1TMuon::TriggerPrimitive::TriggerPrimitive().

140 { return alct_; }
int CSCCorrelatedLCTDigi::getBend ( ) const
inline
int CSCCorrelatedLCTDigi::getBX ( ) const
inline
uint16_t CSCCorrelatedLCTDigi::getBX0 ( ) const
inline
const CSCCLCTDigi& CSCCorrelatedLCTDigi::getCLCT ( ) const
inline

Definition at line 141 of file CSCCorrelatedLCTDigi.h.

References clct_.

Referenced by L1TMuon::TriggerPrimitive::TriggerPrimitive().

141 { return clct_; }
int CSCCorrelatedLCTDigi::getCLCTPattern ( ) const
inline

return CLCT pattern number (in use again Feb 2011)

Definition at line 66 of file CSCCorrelatedLCTDigi.h.

66 { return (pattern & 0xF); }
uint16_t CSCCorrelatedLCTDigi::getCSCID ( ) const
inline
float CSCCorrelatedLCTDigi::getFractionalStrip ( ) const

return the fractional strip. counts from 0.25

return the fractional strip

Definition at line 61 of file CSCCorrelatedLCTDigi.cc.

References f, and getStrip().

Referenced by CSCComparatorDigiFitter::fit(), and getStrip().

61 { return 0.5f * (getStrip() + 1) - 0.25f; }
int getStrip() const
return the key halfstrip from 0,159
double f[11][100]
const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM1 ( ) const
inline

Definition at line 142 of file CSCCorrelatedLCTDigi.h.

References gem1_.

142 { return gem1_; }
const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM2 ( ) const
inline

Definition at line 143 of file CSCCorrelatedLCTDigi.h.

References gem2_.

143 { return gem2_; }
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 72 of file CSCCorrelatedLCTDigi.h.

References mpclink.

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

72 { 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 69 of file CSCCorrelatedLCTDigi.h.

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

Definition at line 89 of file CSCCorrelatedLCTDigi.h.

References operator==().

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

Comparison.

Definition at line 64 of file CSCCorrelatedLCTDigi.cc.

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

Referenced by operator!=(), and setMPCLink().

64  {
65  return ((trknmb == rhs.trknmb) && (quality == rhs.quality) && (keywire == rhs.keywire) && (strip == rhs.strip) &&
66  (pattern == rhs.pattern) && (bend == rhs.bend) && (bx == rhs.bx) && (valid == rhs.valid) &&
67  (mpclink == rhs.mpclink));
68 }
void CSCCorrelatedLCTDigi::print ( void  ) const

Print content of correlated LCT digi.

Debug.

Definition at line 71 of file CSCCorrelatedLCTDigi.cc.

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

Referenced by setMPCLink().

71  {
72  if (isValid()) {
73  edm::LogVerbatim("CSCDigi") << "CSC LCT #" << getTrknmb() << ": Valid = " << isValid()
74  << " Quality = " << getQuality() << " Key Wire = " << getKeyWG()
75  << " Strip = " << getStrip() << " Pattern = " << getPattern()
76  << " Bend = " << ((getBend() == 0) ? 'L' : 'R') << " BX = " << getBX()
77  << " MPC Link = " << getMPCLink();
78  } else {
79  edm::LogVerbatim("CSCDigi") << "Not a valid correlated LCT.";
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
int getKeyWG() const
return the key wire group. counts from 0.
void CSCCorrelatedLCTDigi::setALCT ( const CSCALCTDigi alct)
inline

Definition at line 136 of file CSCCorrelatedLCTDigi.h.

References alct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

136 { alct_ = alct; }
void CSCCorrelatedLCTDigi::setBend ( unsigned int  b)
inline

set bend

Definition at line 107 of file CSCCorrelatedLCTDigi.h.

References b.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set bx

Definition at line 110 of file CSCCorrelatedLCTDigi.h.

References b.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set bx0

Definition at line 113 of file CSCCorrelatedLCTDigi.h.

References b, and bx0.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

113 { bx0 = b; }
double b
Definition: hdecay.h:118
void CSCCorrelatedLCTDigi::setCLCT ( const CSCCLCTDigi clct)
inline

Definition at line 137 of file CSCCorrelatedLCTDigi.h.

References clct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

137 { clct_ = clct; }
void CSCCorrelatedLCTDigi::setCSCID ( unsigned int  c)
inline
void CSCCorrelatedLCTDigi::setGEM1 ( const GEMPadDigi gem)
inline
void CSCCorrelatedLCTDigi::setGEM2 ( const GEMPadDigi gem)
inline
void CSCCorrelatedLCTDigi::setMPCLink ( const uint16_t &  link)
inline

Set mpc link number after MPC sorting.

Definition at line 82 of file CSCCorrelatedLCTDigi.h.

References MainPageGenerator::link, mpclink, operator==(), and print().

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set quality code

Definition at line 95 of file CSCCorrelatedLCTDigi.h.

References data-class-funcs::q.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 101 of file CSCCorrelatedLCTDigi.h.

References alignCSCRings::s.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setSyncErr ( unsigned int  s)
inline

set syncErr

Definition at line 116 of file CSCCorrelatedLCTDigi.h.

References alignCSCRings::s, and syncErr.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setTrknmb ( const uint16_t  number)
inline

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

Definition at line 79 of file CSCCorrelatedLCTDigi.h.

References contentValuesFiles::number.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), and L1EmulBias::ModifyCollection().

void CSCCorrelatedLCTDigi::setType ( int  type)
inline

Definition at line 134 of file CSCCorrelatedLCTDigi.h.

References type_.

Referenced by CSCMotherboard::constructLCTs(), and CSCGEMMotherboard::constructLCTsGEM().

134 { type_ = type; }
type
Definition: HCALResponse.h:21
int type_
SIMULATION ONLY ////.
void CSCCorrelatedLCTDigi::setValid ( unsigned int  v)
inline

set valid

Definition at line 98 of file CSCCorrelatedLCTDigi.h.

References findQualityFiles::v.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setWireGroup ( unsigned int  wiregroup)
inline

set wiregroup number

Definition at line 92 of file CSCCorrelatedLCTDigi.h.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

92 { keywire = wiregroup; }

Member Data Documentation

CSCALCTDigi CSCCorrelatedLCTDigi::alct_
private

Definition at line 162 of file CSCCorrelatedLCTDigi.h.

Referenced by getALCT(), and setALCT().

uint16_t CSCCorrelatedLCTDigi::bend
private

Definition at line 152 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 153 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 155 of file CSCCorrelatedLCTDigi.h.

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

CSCCLCTDigi CSCCorrelatedLCTDigi::clct_
private

Definition at line 163 of file CSCCorrelatedLCTDigi.h.

Referenced by getCLCT(), and setCLCT().

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 157 of file CSCCorrelatedLCTDigi.h.

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

GEMPadDigi CSCCorrelatedLCTDigi::gem1_
private

Definition at line 164 of file CSCCorrelatedLCTDigi.h.

Referenced by getGEM1(), and setGEM1().

GEMPadDigi CSCCorrelatedLCTDigi::gem2_
private

Definition at line 165 of file CSCCorrelatedLCTDigi.h.

Referenced by getGEM2(), and setGEM2().

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 149 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 154 of file CSCCorrelatedLCTDigi.h.

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

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

Definition at line 148 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::strip
private

Definition at line 150 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::syncErr
private

Definition at line 156 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::trknmb
private

Definition at line 146 of file CSCCorrelatedLCTDigi.h.

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

int CSCCorrelatedLCTDigi::type_
private
uint16_t CSCCorrelatedLCTDigi::valid
private

Definition at line 147 of file CSCCorrelatedLCTDigi.h.

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