CMS 3D CMS Logo

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

#include <CSCCorrelatedLCTDigi.h>

Inheritance diagram for CSCCorrelatedLCTDigi:
csctf::TrackStub

Public Types

enum  LCTBXMask { kBXDataMask = 0x1 }
 
enum  LCTKeyStripMasks { kEighthStripMask = 0x1, kQuartStripMask = 0x1, kHalfStripMask = 0xff }
 
enum  LCTKeyStripShifts { kEighthStripShift = 9, kQuartStripShift = 8, kHalfStripShift = 0 }
 
enum  LCTPatternMasks { kRun3SlopeMask = 0xf, kRun3PatternMask = 0x7, kLegacyPatternMask = 0xf }
 
enum  LCTPatternShifts { kRun3SlopeShift = 7, kRun3PatternShift = 4, kLegacyPatternShift = 0 }
 
enum  Type {
  CLCTALCT, ALCTCLCT, ALCTCLCTGEM, ALCTCLCT2GEM,
  ALCT2GEM, CLCT2GEM, CLCTONLY, ALCTONLY
}
 SIMULATION ONLY ////. More...
 
enum  Version { Version::Legacy = 0, Version::Run3 }
 

Public Member Functions

void clear ()
 clear this LCT More...
 
 CSCCorrelatedLCTDigi ()
 default More...
 
 CSCCorrelatedLCTDigi (const uint16_t trknmb, const uint16_t valid, const uint16_t quality, const uint16_t keywire, const uint16_t strip, const uint16_t pattern, const uint16_t bend, const uint16_t bx, const uint16_t mpclink=0, const uint16_t bx0=0, const uint16_t syncErr=0, const uint16_t cscID=0, const uint16_t hmt=0, const Version version=Version::Legacy)
 Constructors. More...
 
const CSCALCTDigigetALCT () const
 
uint16_t getBend () const
 
uint16_t getBX () const
 return BX More...
 
uint16_t getBX0 () const
 
uint16_t getBXData () const
 return 1-bit BX as in data More...
 
const CSCCLCTDigigetCLCT () const
 
uint16_t getCLCTPattern () const
 
uint16_t getCSCID () const
 
bool getEighthStrip () const
 get single eighth strip bit More...
 
float getFractionalSlope () const
 
float getFractionalStrip (uint16_t n=2) const
 return the fractional strip More...
 
const GEMPadDigigetGEM1 () const
 
const GEMPadDigigetGEM2 () const
 
uint16_t getHMT () const
 
uint16_t getKeyWG () const
 return the key wire group. counts from 0. More...
 
uint16_t getMPCLink () const
 return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank More...
 
uint16_t getPattern () const
 
uint16_t getQuality () const
 return the Quality More...
 
bool getQuartStrip () const
 get single quart strip bit More...
 
uint16_t getRun3Pattern () const
 return pattern More...
 
uint16_t getSlope () const
 return the slope More...
 
uint16_t getStrip (uint16_t n=2) const
 return the key halfstrip from 0,159 More...
 
uint16_t getStripType () const
 return strip type (obsolete since mid-2008) More...
 
uint16_t getSyncErr () const
 
uint16_t getTrknmb () const
 return track number More...
 
int getType () const
 
bool isRun3 () const
 Distinguish Run-1/2 from Run-3. 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 setALCT (const CSCALCTDigi &alct)
 
void setBend (const uint16_t b)
 set bend More...
 
void setBX (const uint16_t b)
 set bx More...
 
void setBX0 (const uint16_t b)
 set bx0 More...
 
void setCLCT (const CSCCLCTDigi &clct)
 
void setCSCID (const uint16_t c)
 set cscID More...
 
void setEighthStrip (const bool eighthStrip)
 set single eighth strip bit More...
 
void setGEM1 (const GEMPadDigi &gem)
 
void setGEM2 (const GEMPadDigi &gem)
 
void setHMT (const uint16_t h)
 set high-multiplicity bits More...
 
void setMPCLink (const uint16_t &link)
 Set mpc link number after MPC sorting. More...
 
void setPattern (const uint16_t p)
 set pattern More...
 
void setQuality (const uint16_t q)
 set quality code More...
 
void setQuartStrip (const bool quartStrip)
 set single quart strip bit More...
 
void setRun3 (const bool isRun3)
 
void setRun3Pattern (const uint16_t pattern)
 set pattern More...
 
void setSlope (const uint16_t slope)
 set the slope More...
 
void setStrip (const uint16_t s)
 set strip More...
 
void setSyncErr (const uint16_t 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 (const uint16_t v)
 set valid More...
 
void setWireGroup (const uint16_t wiregroup)
 set wiregroup number More...
 

Private Member Functions

uint16_t getDataWord (const uint16_t word, const unsigned shift, const unsigned mask) const
 
void setDataWord (const uint16_t newWord, uint16_t &word, const unsigned shift, const unsigned mask)
 

Private Attributes

CSCALCTDigi alct_
 
uint16_t bend
 
uint16_t bx
 
uint16_t bx0
 
CSCCLCTDigi clct_
 
uint16_t cscID
 
GEMPadDigi gem1_
 
GEMPadDigi gem2_
 
uint16_t hmt
 
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
 
Version version_
 

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

Member Enumeration Documentation

◆ LCTBXMask

Enumerator
kBXDataMask 

Definition at line 28 of file CSCCorrelatedLCTDigi.h.

28 { kBXDataMask = 0x1 };

◆ LCTKeyStripMasks

Enumerator
kEighthStripMask 
kQuartStripMask 
kHalfStripMask 

Definition at line 21 of file CSCCorrelatedLCTDigi.h.

21 { kEighthStripMask = 0x1, kQuartStripMask = 0x1, kHalfStripMask = 0xff };

◆ LCTKeyStripShifts

Enumerator
kEighthStripShift 
kQuartStripShift 
kHalfStripShift 

Definition at line 22 of file CSCCorrelatedLCTDigi.h.

◆ LCTPatternMasks

Enumerator
kRun3SlopeMask 
kRun3PatternMask 
kLegacyPatternMask 

Definition at line 24 of file CSCCorrelatedLCTDigi.h.

24 { kRun3SlopeMask = 0xf, kRun3PatternMask = 0x7, kLegacyPatternMask = 0xf };

◆ LCTPatternShifts

Enumerator
kRun3SlopeShift 
kRun3PatternShift 
kLegacyPatternShift 

Definition at line 25 of file CSCCorrelatedLCTDigi.h.

◆ Type

SIMULATION ONLY ////.

Enumerator
CLCTALCT 
ALCTCLCT 
ALCTCLCTGEM 
ALCTCLCT2GEM 
ALCT2GEM 
CLCT2GEM 
CLCTONLY 
ALCTONLY 

Definition at line 201 of file CSCCorrelatedLCTDigi.h.

201  {
202  CLCTALCT, // CLCT-centric
203  ALCTCLCT, // ALCT-centric
204  ALCTCLCTGEM, // ALCT-CLCT-1 GEM pad
205  ALCTCLCT2GEM, // ALCT-CLCT-2 GEM pads in coincidence
206  ALCT2GEM, // ALCT-2 GEM pads in coincidence
207  CLCT2GEM, // CLCT-2 GEM pads in coincidence
208  CLCTONLY, // Missing ALCT
209  ALCTONLY // Missing CLCT
210  };

◆ Version

Enumerator
Legacy 
Run3 

Definition at line 26 of file CSCCorrelatedLCTDigi.h.

26 { Legacy = 0, Run3 };

Constructor & Destructor Documentation

◆ CSCCorrelatedLCTDigi() [1/2]

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

Constructors.

Definition at line 14 of file CSCCorrelatedLCTDigi.cc.

28  : trknmb(itrknmb),
29  valid(ivalid),
30  quality(iquality),
31  keywire(ikeywire),
32  strip(istrip),
33  pattern(ipattern),
34  bend(ibend),
35  bx(ibx),
36  mpclink(impclink),
37  bx0(ibx0),
38  syncErr(isyncErr),
39  cscID(icscID),
40  hmt(ihmt),
41  version_(version) {}

◆ CSCCorrelatedLCTDigi() [2/2]

CSCCorrelatedLCTDigi::CSCCorrelatedLCTDigi ( )

default

Default.

Definition at line 44 of file CSCCorrelatedLCTDigi.cc.

44  {
45  clear(); // set contents to zero
46 }

References clear().

Member Function Documentation

◆ clear()

void CSCCorrelatedLCTDigi::clear ( void  )

clear this LCT

Clears this LCT.

Definition at line 49 of file CSCCorrelatedLCTDigi.cc.

49  {
50  trknmb = 0;
51  valid = 0;
52  quality = 0;
53  keywire = 0;
54  strip = 0;
55  pattern = 0;
56  bend = 0;
57  bx = 0;
58  mpclink = 0;
59  bx0 = 0;
60  syncErr = 0;
61  cscID = 0;
62  hmt = 0;
64  // clear the components
65  type_ = 0;
66  alct_.clear();
67  clct_.clear();
68  gem1_ = GEMPadDigi();
69  gem2_ = GEMPadDigi();
70 }

References alct_, bend, bx, bx0, clct_, CSCALCTDigi::clear(), CSCCLCTDigi::clear(), cscID, gem1_, gem2_, hmt, keywire, Legacy, mpclink, pattern, quality, strip, syncErr, trknmb, type_, valid, and version_.

Referenced by LCTContainer::clear(), CSCMotherboard::clear(), CSCCorrelatedLCTDigi(), BeautifulSoup.Tag::setString(), and L1DummyProducer::SimpleDigi().

◆ getALCT()

const CSCALCTDigi& CSCCorrelatedLCTDigi::getALCT ( ) const
inline

Definition at line 220 of file CSCCorrelatedLCTDigi.h.

220 { return alct_; }

References alct_.

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

◆ getBend()

uint16_t CSCCorrelatedLCTDigi::getBend ( ) const
inline

◆ getBX()

uint16_t CSCCorrelatedLCTDigi::getBX ( ) const
inline

◆ getBX0()

uint16_t CSCCorrelatedLCTDigi::getBX0 ( ) const
inline

◆ getBXData()

uint16_t CSCCorrelatedLCTDigi::getBXData ( ) const
inline

return 1-bit BX as in data

Definition at line 121 of file CSCCorrelatedLCTDigi.h.

121 { return bx & kBXDataMask; }

References bx, and kBXDataMask.

◆ getCLCT()

const CSCCLCTDigi& CSCCorrelatedLCTDigi::getCLCT ( ) const
inline

Definition at line 221 of file CSCCorrelatedLCTDigi.h.

221 { return clct_; }

References clct_.

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

◆ getCLCTPattern()

uint16_t CSCCorrelatedLCTDigi::getCLCTPattern ( ) const

return CLCT pattern number (in use again Feb 2011) This function should not be used for Run-3

Definition at line 147 of file CSCCorrelatedLCTDigi.cc.

147  {
148  return (isRun3() ? std::numeric_limits<uint16_t>::max() : (pattern & 0xF));
149 }

References isRun3(), SiStripPI::max, and pattern.

◆ getCSCID()

uint16_t CSCCorrelatedLCTDigi::getCSCID ( ) const
inline

◆ getDataWord()

uint16_t CSCCorrelatedLCTDigi::getDataWord ( const uint16_t  word,
const unsigned  shift,
const unsigned  mask 
) const
private

Definition at line 209 of file CSCCorrelatedLCTDigi.cc.

209  {
210  return (word >> shift) & mask;
211 }

References edm::shift.

Referenced by getEighthStrip(), getPattern(), getQuartStrip(), getRun3Pattern(), and getSlope().

◆ getEighthStrip()

bool CSCCorrelatedLCTDigi::getEighthStrip ( ) const

get single eighth strip bit

Definition at line 105 of file CSCCorrelatedLCTDigi.cc.

105  {
106  if (!isRun3())
107  return false;
109 }

References getDataWord(), isRun3(), kEighthStripMask, kEighthStripShift, and strip.

Referenced by getStrip().

◆ getFractionalSlope()

float CSCCorrelatedLCTDigi::getFractionalSlope ( ) const

slope in number of half-strips/layer negative means left-bending positive means right-bending

Definition at line 124 of file CSCCorrelatedLCTDigi.cc.

124  {
125  if (isRun3()) {
126  // 4-bit slope
127  float slope[17] = {
128  0.0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1.0, 1.125, 1.25, 1.375, 1.5, 1.625, 1.75, 2.0, 2.5};
129  return (2 * getBend() - 1) * slope[getSlope()];
130  } else {
131  int slope[11] = {0, 0, -8, 8, -6, 6, -4, 4, -2, 2, 0};
132  return float(slope[getPattern()] / 5.);
133  }
134 }

References dqmMemoryStats::float, getBend(), getPattern(), getSlope(), isRun3(), and slope.

◆ getFractionalStrip()

float CSCCorrelatedLCTDigi::getFractionalStrip ( uint16_t  n = 2) const

return the fractional strip

Definition at line 137 of file CSCCorrelatedLCTDigi.cc.

137  {
138  if (n == 8) {
139  return 0.125f * (getStrip(n) + 0.5);
140  } else if (n == 4) {
141  return 0.25f * (getStrip(n) + 0.5);
142  } else {
143  return 0.5f * (getStrip(n) + 0.5);
144  }
145 }

References getStrip(), and dqmiodumpmetadata::n.

Referenced by CSCStubMatcher::getGlobalPosition().

◆ getGEM1()

const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM1 ( ) const
inline

Definition at line 222 of file CSCCorrelatedLCTDigi.h.

222 { return gem1_; }

References gem1_.

◆ getGEM2()

const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM2 ( ) const
inline

Definition at line 223 of file CSCCorrelatedLCTDigi.h.

223 { return gem2_; }

References gem2_.

◆ getHMT()

uint16_t CSCCorrelatedLCTDigi::getHMT ( ) const

Run-3 introduces high-multiplicity bits for CSCs. The allocation is different for ME1/1 and non-ME1/1 chambers. Both LCTs in a chamber are needed for the complete high-multiplicity trigger information

Definition at line 171 of file CSCCorrelatedLCTDigi.cc.

171 { return (isRun3() ? hmt : std::numeric_limits<uint16_t>::max()); }

References hmt, isRun3(), and SiStripPI::max.

Referenced by operator<<(), and print().

◆ getKeyWG()

uint16_t CSCCorrelatedLCTDigi::getKeyWG ( ) const
inline

◆ getMPCLink()

uint16_t CSCCorrelatedLCTDigi::getMPCLink ( ) const
inline

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

Definition at line 131 of file CSCCorrelatedLCTDigi.h.

131 { return mpclink; }

References mpclink.

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

◆ getPattern()

uint16_t CSCCorrelatedLCTDigi::getPattern ( ) const

◆ getQuality()

uint16_t CSCCorrelatedLCTDigi::getQuality ( ) const
inline

◆ getQuartStrip()

bool CSCCorrelatedLCTDigi::getQuartStrip ( ) const

get single quart strip bit

Definition at line 99 of file CSCCorrelatedLCTDigi.cc.

99  {
100  if (!isRun3())
101  return false;
103 }

References getDataWord(), isRun3(), kQuartStripMask, kQuartStripShift, and strip.

Referenced by getStrip().

◆ getRun3Pattern()

uint16_t CSCCorrelatedLCTDigi::getRun3Pattern ( ) const

return pattern

Definition at line 159 of file CSCCorrelatedLCTDigi.cc.

159  {
160  if (!isRun3())
161  return 0;
163 }

References getDataWord(), isRun3(), kRun3PatternMask, kRun3PatternShift, and pattern.

◆ getSlope()

uint16_t CSCCorrelatedLCTDigi::getSlope ( ) const

return the slope

Definition at line 111 of file CSCCorrelatedLCTDigi.cc.

111  {
112  if (!isRun3())
113  return 0;
115 }

References getDataWord(), isRun3(), kRun3SlopeMask, kRun3SlopeShift, and pattern.

Referenced by getFractionalSlope().

◆ getStrip()

uint16_t CSCCorrelatedLCTDigi::getStrip ( uint16_t  n = 2) const

◆ getStripType()

uint16_t CSCCorrelatedLCTDigi::getStripType ( ) const
inline

return strip type (obsolete since mid-2008)

Definition at line 128 of file CSCCorrelatedLCTDigi.h.

128 { return ((pattern & 0x8) >> 3); }

References pattern.

◆ getSyncErr()

uint16_t CSCCorrelatedLCTDigi::getSyncErr ( ) const
inline

◆ getTrknmb()

uint16_t CSCCorrelatedLCTDigi::getTrknmb ( ) const
inline

◆ getType()

int CSCCorrelatedLCTDigi::getType ( ) const
inline

Definition at line 212 of file CSCCorrelatedLCTDigi.h.

212 { return type_; }

References type_.

Referenced by LCTQualityControl::checkValid(), operator<<(), and print().

◆ isRun3()

bool CSCCorrelatedLCTDigi::isRun3 ( ) const
inline

◆ isValid()

bool CSCCorrelatedLCTDigi::isValid ( void  ) const
inline

◆ operator!=()

bool CSCCorrelatedLCTDigi::operator!= ( const CSCCorrelatedLCTDigi rhs) const
inline

Definition at line 154 of file CSCCorrelatedLCTDigi.h.

154 { return !(this->operator==(rhs)); }

References operator==().

◆ operator==()

bool CSCCorrelatedLCTDigi::operator== ( const CSCCorrelatedLCTDigi rhs) const

Comparison.

Definition at line 178 of file CSCCorrelatedLCTDigi.cc.

178  {
179  return ((trknmb == rhs.trknmb) && (quality == rhs.quality) && (keywire == rhs.keywire) && (strip == rhs.strip) &&
180  (pattern == rhs.pattern) && (bend == rhs.bend) && (bx == rhs.bx) && (valid == rhs.valid) &&
181  (mpclink == rhs.mpclink) && (hmt == rhs.hmt));
182 }

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

Referenced by operator!=().

◆ print()

void CSCCorrelatedLCTDigi::print ( void  ) const

Print content of correlated LCT digi.

Debug.

Definition at line 185 of file CSCCorrelatedLCTDigi.cc.

185  {
186  if (isValid()) {
187  edm::LogVerbatim("CSCDigi") << "CSC LCT #" << getTrknmb() << ": Valid = " << isValid()
188  << " Quality = " << getQuality() << " Key Wire = " << getKeyWG()
189  << " Strip = " << getStrip() << " Pattern = " << getPattern()
190  << " Bend = " << ((getBend() == 0) ? 'L' : 'R') << " BX = " << getBX()
191  << " MPC Link = " << getMPCLink() << " Type (SIM) = " << getType()
192  << " HMT Bit = " << getHMT();
193  } else {
194  edm::LogVerbatim("CSCDigi") << "Not a valid correlated LCT.";
195  }
196 }

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

◆ setALCT()

void CSCCorrelatedLCTDigi::setALCT ( const CSCALCTDigi alct)
inline

Definition at line 216 of file CSCCorrelatedLCTDigi.h.

216 { alct_ = alct; }

References alct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), and CSCStubMatcher::matchLCTsToSimTrack().

◆ setBend()

void CSCCorrelatedLCTDigi::setBend ( const uint16_t  b)
inline

set bend

Definition at line 178 of file CSCCorrelatedLCTDigi.h.

178 { bend = b; }

References b, and bend.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setBX()

void CSCCorrelatedLCTDigi::setBX ( const uint16_t  b)
inline

set bx

Definition at line 181 of file CSCCorrelatedLCTDigi.h.

181 { bx = b; }

References b, and bx.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setBX0()

void CSCCorrelatedLCTDigi::setBX0 ( const uint16_t  b)
inline

set bx0

Definition at line 184 of file CSCCorrelatedLCTDigi.h.

184 { bx0 = b; }

References b, and bx0.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setCLCT()

void CSCCorrelatedLCTDigi::setCLCT ( const CSCCLCTDigi clct)
inline

Definition at line 217 of file CSCCorrelatedLCTDigi.h.

217 { clct_ = clct; }

References clct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setCSCID()

void CSCCorrelatedLCTDigi::setCSCID ( const uint16_t  c)
inline

set cscID

Definition at line 190 of file CSCCorrelatedLCTDigi.h.

190 { cscID = c; }

References c, and cscID.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setDataWord()

void CSCCorrelatedLCTDigi::setDataWord ( const uint16_t  newWord,
uint16_t &  word,
const unsigned  shift,
const unsigned  mask 
)
private

Definition at line 198 of file CSCCorrelatedLCTDigi.cc.

201  {
202  // clear the old value
203  word &= ~(mask << shift);
204 
205  // set the new value
206  word |= newWord << shift;
207 }

References edm::shift.

Referenced by setEighthStrip(), setPattern(), setQuartStrip(), setRun3Pattern(), and setSlope().

◆ setEighthStrip()

void CSCCorrelatedLCTDigi::setEighthStrip ( const bool  eighthStrip)

set single eighth strip bit

Definition at line 93 of file CSCCorrelatedLCTDigi.cc.

93  {
94  if (!isRun3())
95  return;
97 }

References isRun3(), kEighthStripMask, kEighthStripShift, setDataWord(), and strip.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setGEM1()

void CSCCorrelatedLCTDigi::setGEM1 ( const GEMPadDigi gem)
inline

Definition at line 218 of file CSCCorrelatedLCTDigi.h.

218 { gem1_ = gem; }

References mixOne_premix_on_sim_cfi::gem, and gem1_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setGEM2()

void CSCCorrelatedLCTDigi::setGEM2 ( const GEMPadDigi gem)
inline

Definition at line 219 of file CSCCorrelatedLCTDigi.h.

219 { gem2_ = gem; }

References mixOne_premix_on_sim_cfi::gem, and gem2_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setHMT()

void CSCCorrelatedLCTDigi::setHMT ( const uint16_t  h)

set high-multiplicity bits

Definition at line 173 of file CSCCorrelatedLCTDigi.cc.

References h, hmt, isRun3(), and SiStripPI::max.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setMPCLink()

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

Set mpc link number after MPC sorting.

Definition at line 147 of file CSCCorrelatedLCTDigi.h.

147 { mpclink = link; }

References MainPageGenerator::link, and mpclink.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setPattern()

void CSCCorrelatedLCTDigi::setPattern ( const uint16_t  p)

◆ setQuality()

void CSCCorrelatedLCTDigi::setQuality ( const uint16_t  q)
inline

set quality code

Definition at line 160 of file CSCCorrelatedLCTDigi.h.

160 { quality = q; }

References submitPVResolutionJobs::q, and quality.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setQuartStrip()

void CSCCorrelatedLCTDigi::setQuartStrip ( const bool  quartStrip)

set single quart strip bit

Definition at line 87 of file CSCCorrelatedLCTDigi.cc.

87  {
88  if (!isRun3())
89  return;
91 }

References isRun3(), kQuartStripMask, kQuartStripShift, setDataWord(), and strip.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setRun3()

void CSCCorrelatedLCTDigi::setRun3 ( const bool  isRun3)

Definition at line 175 of file CSCCorrelatedLCTDigi.cc.

References isRun3(), Legacy, Run3, and version_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setRun3Pattern()

void CSCCorrelatedLCTDigi::setRun3Pattern ( const uint16_t  pattern)

set pattern

Definition at line 165 of file CSCCorrelatedLCTDigi.cc.

165  {
166  if (!isRun3())
167  return;
169 }

References isRun3(), kRun3PatternMask, kRun3PatternShift, pattern, and setDataWord().

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setSlope()

void CSCCorrelatedLCTDigi::setSlope ( const uint16_t  slope)

set the slope

Definition at line 117 of file CSCCorrelatedLCTDigi.cc.

117  {
118  if (!isRun3())
119  return;
121 }

References isRun3(), kRun3SlopeMask, kRun3SlopeShift, pattern, setDataWord(), and slope.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setStrip()

void CSCCorrelatedLCTDigi::setStrip ( const uint16_t  s)
inline

set strip

Definition at line 166 of file CSCCorrelatedLCTDigi.h.

166 { strip = s; }

References alignCSCRings::s, and strip.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setSyncErr()

void CSCCorrelatedLCTDigi::setSyncErr ( const uint16_t  s)
inline

set syncErr

Definition at line 187 of file CSCCorrelatedLCTDigi.h.

187 { syncErr = s; }

References alignCSCRings::s, and syncErr.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setTrknmb()

void CSCCorrelatedLCTDigi::setTrknmb ( const uint16_t  number)
inline

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

Definition at line 144 of file CSCCorrelatedLCTDigi.h.

144 { trknmb = number; }

References contentValuesFiles::number, and trknmb.

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

◆ setType()

void CSCCorrelatedLCTDigi::setType ( int  type)
inline

Definition at line 214 of file CSCCorrelatedLCTDigi.h.

214 { type_ = type; }

References type_.

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

◆ setValid()

void CSCCorrelatedLCTDigi::setValid ( const uint16_t  v)
inline

set valid

Definition at line 163 of file CSCCorrelatedLCTDigi.h.

163 { valid = v; }

References findQualityFiles::v, and valid.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setWireGroup()

void CSCCorrelatedLCTDigi::setWireGroup ( const uint16_t  wiregroup)
inline

set wiregroup number

Definition at line 157 of file CSCCorrelatedLCTDigi.h.

157 { keywire = wiregroup; }

References keywire.

Referenced by CSCGEMMotherboard::constructLCTsGEM(), and CSCStubMatcher::matchLCTsToSimTrack().

Member Data Documentation

◆ alct_

CSCALCTDigi CSCCorrelatedLCTDigi::alct_
private

Definition at line 272 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getALCT(), and setALCT().

◆ bend

uint16_t CSCCorrelatedLCTDigi::bend
private

Definition at line 254 of file CSCCorrelatedLCTDigi.h.

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

◆ bx

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 255 of file CSCCorrelatedLCTDigi.h.

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

◆ bx0

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 257 of file CSCCorrelatedLCTDigi.h.

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

◆ clct_

CSCCLCTDigi CSCCorrelatedLCTDigi::clct_
private

Definition at line 273 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getCLCT(), and setCLCT().

◆ cscID

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 261 of file CSCCorrelatedLCTDigi.h.

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

◆ gem1_

GEMPadDigi CSCCorrelatedLCTDigi::gem1_
private

Definition at line 274 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getGEM1(), and setGEM1().

◆ gem2_

GEMPadDigi CSCCorrelatedLCTDigi::gem2_
private

Definition at line 275 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getGEM2(), and setGEM2().

◆ hmt

uint16_t CSCCorrelatedLCTDigi::hmt
private

Definition at line 267 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), getHMT(), operator==(), and setHMT().

◆ keywire

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 243 of file CSCCorrelatedLCTDigi.h.

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

◆ mpclink

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 256 of file CSCCorrelatedLCTDigi.h.

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

◆ pattern

uint16_t CSCCorrelatedLCTDigi::pattern
private

◆ quality

uint16_t CSCCorrelatedLCTDigi::quality
private

Definition at line 241 of file CSCCorrelatedLCTDigi.h.

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

◆ strip

uint16_t CSCCorrelatedLCTDigi::strip
private

◆ syncErr

uint16_t CSCCorrelatedLCTDigi::syncErr
private

Definition at line 259 of file CSCCorrelatedLCTDigi.h.

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

◆ trknmb

uint16_t CSCCorrelatedLCTDigi::trknmb
private

Definition at line 234 of file CSCCorrelatedLCTDigi.h.

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

◆ type_

int CSCCorrelatedLCTDigi::type_
private

◆ valid

uint16_t CSCCorrelatedLCTDigi::valid
private

Definition at line 237 of file CSCCorrelatedLCTDigi.h.

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

◆ version_

Version CSCCorrelatedLCTDigi::version_
private

Definition at line 277 of file CSCCorrelatedLCTDigi.h.

Referenced by clear(), isRun3(), and setRun3().

CSCCorrelatedLCTDigi::quality
uint16_t quality
Definition: CSCCorrelatedLCTDigi.h:241
CSCCorrelatedLCTDigi::trknmb
uint16_t trknmb
Definition: CSCCorrelatedLCTDigi.h:234
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
CSCCorrelatedLCTDigi::gem1_
GEMPadDigi gem1_
Definition: CSCCorrelatedLCTDigi.h:274
CSCCorrelatedLCTDigi::getTrknmb
uint16_t getTrknmb() const
return track number
Definition: CSCCorrelatedLCTDigi.h:52
GEMPadDigi
Definition: GEMPadDigi.h:17
CSCCorrelatedLCTDigi::setDataWord
void setDataWord(const uint16_t newWord, uint16_t &word, const unsigned shift, const unsigned mask)
Definition: CSCCorrelatedLCTDigi.cc:198
CSCCorrelatedLCTDigi::ALCT2GEM
Definition: CSCCorrelatedLCTDigi.h:206
CSCCorrelatedLCTDigi::getEighthStrip
bool getEighthStrip() const
get single eighth strip bit
Definition: CSCCorrelatedLCTDigi.cc:105
CSCCorrelatedLCTDigi::getType
int getType() const
Definition: CSCCorrelatedLCTDigi.h:212
CSCCorrelatedLCTDigi::CLCTALCT
Definition: CSCCorrelatedLCTDigi.h:202
h
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
Definition: L1TUtmAlgorithmRcd.h:4
CSCCorrelatedLCTDigi::getStrip
uint16_t getStrip(uint16_t n=2) const
return the key halfstrip from 0,159
Definition: CSCCorrelatedLCTDigi.cc:72
CSCCorrelatedLCTDigi::getKeyWG
uint16_t getKeyWG() const
return the key wire group. counts from 0.
Definition: CSCCorrelatedLCTDigi.h:61
CSCALCTDigi::clear
void clear()
clear this ALCT
Definition: CSCALCTDigi.cc:50
CSCCorrelatedLCTDigi::Version::Legacy
CSCCorrelatedLCTDigi::kRun3PatternMask
Definition: CSCCorrelatedLCTDigi.h:24
CSCCorrelatedLCTDigi::getDataWord
uint16_t getDataWord(const uint16_t word, const unsigned shift, const unsigned mask) const
Definition: CSCCorrelatedLCTDigi.cc:209
CSCCorrelatedLCTDigi::type_
int type_
SIMULATION ONLY ////.
Definition: CSCCorrelatedLCTDigi.h:270
findQualityFiles.v
v
Definition: findQualityFiles.py:179
CSCCorrelatedLCTDigi::bx
uint16_t bx
Definition: CSCCorrelatedLCTDigi.h:255
CSCCorrelatedLCTDigi::ALCTCLCT
Definition: CSCCorrelatedLCTDigi.h:203
CSCCorrelatedLCTDigi::bx0
uint16_t bx0
Definition: CSCCorrelatedLCTDigi.h:257
CSCCorrelatedLCTDigi::isRun3
bool isRun3() const
Distinguish Run-1/2 from Run-3.
Definition: CSCCorrelatedLCTDigi.h:196
CSCCorrelatedLCTDigi::valid
uint16_t valid
Definition: CSCCorrelatedLCTDigi.h:237
CSCCorrelatedLCTDigi::CLCT2GEM
Definition: CSCCorrelatedLCTDigi.h:207
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
CSCCorrelatedLCTDigi::kHalfStripMask
Definition: CSCCorrelatedLCTDigi.h:21
CSCCorrelatedLCTDigi::kRun3PatternShift
Definition: CSCCorrelatedLCTDigi.h:25
CSCCorrelatedLCTDigi::getHMT
uint16_t getHMT() const
Definition: CSCCorrelatedLCTDigi.cc:171
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CSCCorrelatedLCTDigi::syncErr
uint16_t syncErr
Definition: CSCCorrelatedLCTDigi.h:259
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
CSCCorrelatedLCTDigi::CLCTONLY
Definition: CSCCorrelatedLCTDigi.h:208
CSCCorrelatedLCTDigi::cscID
uint16_t cscID
Definition: CSCCorrelatedLCTDigi.h:261
CSCCorrelatedLCTDigi::bend
uint16_t bend
Definition: CSCCorrelatedLCTDigi.h:254
CSCCorrelatedLCTDigi::operator==
bool operator==(const CSCCorrelatedLCTDigi &) const
Comparison.
Definition: CSCCorrelatedLCTDigi.cc:178
CSCCorrelatedLCTDigi::getBend
uint16_t getBend() const
Definition: CSCCorrelatedLCTDigi.h:115
CSCCorrelatedLCTDigi::alct_
CSCALCTDigi alct_
Definition: CSCCorrelatedLCTDigi.h:272
CSCCorrelatedLCTDigi::gem2_
GEMPadDigi gem2_
Definition: CSCCorrelatedLCTDigi.h:275
b
double b
Definition: hdecay.h:118
CSCCorrelatedLCTDigi::ALCTCLCTGEM
Definition: CSCCorrelatedLCTDigi.h:204
CSCCorrelatedLCTDigi::ALCTCLCT2GEM
Definition: CSCCorrelatedLCTDigi.h:205
CSCCorrelatedLCTDigi::kQuartStripMask
Definition: CSCCorrelatedLCTDigi.h:21
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
CSCCorrelatedLCTDigi::kLegacyPatternShift
Definition: CSCCorrelatedLCTDigi.h:25
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
CSCCorrelatedLCTDigi::Version::Run3
CSCCorrelatedLCTDigi::hmt
uint16_t hmt
Definition: CSCCorrelatedLCTDigi.h:267
CSCCorrelatedLCTDigi::kRun3SlopeShift
Definition: CSCCorrelatedLCTDigi.h:25
CSCCorrelatedLCTDigi::kQuartStripShift
Definition: CSCCorrelatedLCTDigi.h:22
submitPVResolutionJobs.q
q
Definition: submitPVResolutionJobs.py:84
CSCCorrelatedLCTDigi::clear
void clear()
clear this LCT
Definition: CSCCorrelatedLCTDigi.cc:49
pat
Definition: HeavyIon.h:7
CSCCorrelatedLCTDigi::kEighthStripMask
Definition: CSCCorrelatedLCTDigi.h:21
CSCCorrelatedLCTDigi::getQuartStrip
bool getQuartStrip() const
get single quart strip bit
Definition: CSCCorrelatedLCTDigi.cc:99
CSCCorrelatedLCTDigi::clct_
CSCCLCTDigi clct_
Definition: CSCCorrelatedLCTDigi.h:273
CSCCorrelatedLCTDigi::strip
uint16_t strip
Definition: CSCCorrelatedLCTDigi.h:248
CSCCorrelatedLCTDigi::version_
Version version_
Definition: CSCCorrelatedLCTDigi.h:277
edm::shift
static unsigned const int shift
Definition: LuminosityBlockID.cc:7
edm::LogVerbatim
Log< level::Info, true > LogVerbatim
Definition: MessageLogger.h:128
CSCCorrelatedLCTDigi::getPattern
uint16_t getPattern() const
Definition: CSCCorrelatedLCTDigi.cc:151
CSCCLCTDigi::clear
void clear()
clear this CLCT
Definition: CSCCLCTDigi.cc:68
CSCCorrelatedLCTDigi::kBXDataMask
Definition: CSCCorrelatedLCTDigi.h:28
CSCCorrelatedLCTDigi::pattern
uint16_t pattern
Definition: CSCCorrelatedLCTDigi.h:251
CSCCorrelatedLCTDigi::getMPCLink
uint16_t getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
Definition: CSCCorrelatedLCTDigi.h:131
CSCCorrelatedLCTDigi::keywire
uint16_t keywire
Definition: CSCCorrelatedLCTDigi.h:243
CSCCorrelatedLCTDigi::ALCTONLY
Definition: CSCCorrelatedLCTDigi.h:209
CSCCorrelatedLCTDigi::kHalfStripShift
Definition: CSCCorrelatedLCTDigi.h:22
CSCCorrelatedLCTDigi::kEighthStripShift
Definition: CSCCorrelatedLCTDigi.h:22
CSCCorrelatedLCTDigi::mpclink
uint16_t mpclink
Definition: CSCCorrelatedLCTDigi.h:256
mixOne_premix_on_sim_cfi.gem
gem
Definition: mixOne_premix_on_sim_cfi.py:194
CSCCorrelatedLCTDigi::kLegacyPatternMask
Definition: CSCCorrelatedLCTDigi.h:24
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
CSCCorrelatedLCTDigi::getBX
uint16_t getBX() const
return BX
Definition: CSCCorrelatedLCTDigi.h:118
slope
static const double slope[3]
Definition: CastorTimeSlew.cc:6
CSCCorrelatedLCTDigi::isValid
bool isValid() const
return valid pattern bit
Definition: CSCCorrelatedLCTDigi.h:55
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
CSCCorrelatedLCTDigi::getQuality
uint16_t getQuality() const
return the Quality
Definition: CSCCorrelatedLCTDigi.h:58
CSCCorrelatedLCTDigi::getSlope
uint16_t getSlope() const
return the slope
Definition: CSCCorrelatedLCTDigi.cc:111
CSCCorrelatedLCTDigi::kRun3SlopeMask
Definition: CSCCorrelatedLCTDigi.h:24