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

118  {CLCTALCT, // CLCT-centric
119  ALCTCLCT, // ALCT-centric
120  ALCTCLCTGEM, // ALCT-CLCT-1 GEM pad
121  ALCTCLCT2GEM, // ALCT-CLCT-2 GEM pads in coincidence
122  ALCT2GEM, // ALCT-2 GEM pads in coincidence
123  CLCT2GEM, // CLCT-2 GEM pads in coincidence
124  CLCTONLY, // Missing ALCT
125  ALCTONLY // Missing CLCT
126  };

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(), 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().

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 }
const CSCALCTDigi& CSCCorrelatedLCTDigi::getALCT ( ) const
inline

Definition at line 135 of file CSCCorrelatedLCTDigi.h.

References alct_.

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

135 {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 136 of file CSCCorrelatedLCTDigi.h.

References clct_.

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

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

return CLCT pattern number (in use again Feb 2011)

Definition at line 61 of file CSCCorrelatedLCTDigi.h.

61 { 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 59 of file CSCCorrelatedLCTDigi.cc.

References f, and getStrip().

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

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

Definition at line 137 of file CSCCorrelatedLCTDigi.h.

References gem1_.

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

Definition at line 138 of file CSCCorrelatedLCTDigi.h.

References gem2_.

138 {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 67 of file CSCCorrelatedLCTDigi.h.

References mpclink.

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

67 { 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 64 of file CSCCorrelatedLCTDigi.h.

64 { 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 84 of file CSCCorrelatedLCTDigi.h.

References operator==().

85  { 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) &&
66  (keywire == rhs.keywire) && (strip == rhs.strip) &&
67  (pattern == rhs.pattern) && (bend == rhs.bend) &&
68  (bx == rhs.bx) && (valid == rhs.valid) && (mpclink == rhs.mpclink) );
69 }
void CSCCorrelatedLCTDigi::print ( void  ) const

Print content of correlated LCT digi.

Debug.

Definition at line 72 of file CSCCorrelatedLCTDigi.cc.

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

Referenced by setMPCLink().

72  {
73  if (isValid()) {
74  edm::LogVerbatim("CSCDigi")
75  << "CSC LCT #" << getTrknmb()
76  << ": Valid = " << isValid()
77  << " Quality = " << getQuality()
78  << " Key Wire = " << getKeyWG()
79  << " Strip = " << getStrip()
80  << " Pattern = " << getPattern()
81  << " Bend = " << ( (getBend() == 0) ? 'L' : 'R' )
82  << " BX = " << getBX()
83  << " MPC Link = " << getMPCLink();
84  }
85  else {
86  edm::LogVerbatim("CSCDigi") << "Not a valid correlated LCT.";
87  }
88 }
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 131 of file CSCCorrelatedLCTDigi.h.

References alct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set bend

Definition at line 103 of file CSCCorrelatedLCTDigi.h.

References b.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set bx

Definition at line 106 of file CSCCorrelatedLCTDigi.h.

References b.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

set bx0

Definition at line 109 of file CSCCorrelatedLCTDigi.h.

References b, and bx0.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

Definition at line 132 of file CSCCorrelatedLCTDigi.h.

References clct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

132 {clct_ = clct;}
void CSCCorrelatedLCTDigi::setCSCID ( unsigned int  c)
inline

set cscID

Definition at line 115 of file CSCCorrelatedLCTDigi.h.

References EnergyCorrector::c, and cscID.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

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

References mpclink, operator==(), and print().

Referenced by CSCGEMMotherboard::constructLCTsGEM().

77 { mpclink = link; }
void CSCCorrelatedLCTDigi::setPattern ( unsigned int  p)
inline
void CSCCorrelatedLCTDigi::setQuality ( unsigned int  q)
inline

set quality code

Definition at line 91 of file CSCCorrelatedLCTDigi.h.

References lumiQueryAPI::q.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setStrip ( unsigned int  s)
inline

set strip

Definition at line 97 of file CSCCorrelatedLCTDigi.h.

References alignCSCRings::s.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

void CSCCorrelatedLCTDigi::setSyncErr ( unsigned int  s)
inline

set syncErr

Definition at line 112 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 74 of file CSCCorrelatedLCTDigi.h.

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

74 {trknmb = number;}
void CSCCorrelatedLCTDigi::setType ( int  type)
inline

Definition at line 129 of file CSCCorrelatedLCTDigi.h.

References type_.

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

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

set wiregroup number

Definition at line 88 of file CSCCorrelatedLCTDigi.h.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

88 {keywire= wiregroup;}

Member Data Documentation

CSCALCTDigi CSCCorrelatedLCTDigi::alct_
private

Definition at line 157 of file CSCCorrelatedLCTDigi.h.

Referenced by getALCT(), and setALCT().

uint16_t CSCCorrelatedLCTDigi::bend
private

Definition at line 147 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 148 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 150 of file CSCCorrelatedLCTDigi.h.

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

CSCCLCTDigi CSCCorrelatedLCTDigi::clct_
private

Definition at line 158 of file CSCCorrelatedLCTDigi.h.

Referenced by getCLCT(), and setCLCT().

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 152 of file CSCCorrelatedLCTDigi.h.

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

GEMPadDigi CSCCorrelatedLCTDigi::gem1_
private

Definition at line 159 of file CSCCorrelatedLCTDigi.h.

Referenced by getGEM1(), and setGEM1().

GEMPadDigi CSCCorrelatedLCTDigi::gem2_
private

Definition at line 160 of file CSCCorrelatedLCTDigi.h.

Referenced by getGEM2(), and setGEM2().

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 144 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 149 of file CSCCorrelatedLCTDigi.h.

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

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

Definition at line 143 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::strip
private

Definition at line 145 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::syncErr
private

Definition at line 151 of file CSCCorrelatedLCTDigi.h.

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

uint16_t CSCCorrelatedLCTDigi::trknmb
private

Definition at line 141 of file CSCCorrelatedLCTDigi.h.

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

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

Definition at line 142 of file CSCCorrelatedLCTDigi.h.

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