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  LCTKeyStripMasks { kEightStripMask = 0x1, kQuartStripMask = 0x1, kHalfStripMask = 0xff }
 
enum  LCTKeyStripShifts { kEightStripShift = 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
 return left/right bending More...
 
uint16_t getBX () const
 return BX More...
 
uint16_t getBX0 () const
 
const CSCCLCTDigigetCLCT () const
 
uint16_t getCLCTPattern () const
 
uint16_t getCSCID () const
 
bool getEightStrip () const
 get single eight strip bit More...
 
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 setEightStrip (const bool eightStrip)
 set single eight 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

◆ LCTKeyStripMasks

Enumerator
kEightStripMask 
kQuartStripMask 
kHalfStripMask 

Definition at line 21 of file CSCCorrelatedLCTDigi.h.

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

◆ LCTKeyStripShifts

Enumerator
kEightStripShift 
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 189 of file CSCCorrelatedLCTDigi.h.

189  {
190  CLCTALCT, // CLCT-centric
191  ALCTCLCT, // ALCT-centric
192  ALCTCLCTGEM, // ALCT-CLCT-1 GEM pad
193  ALCTCLCT2GEM, // ALCT-CLCT-2 GEM pads in coincidence
194  ALCT2GEM, // ALCT-2 GEM pads in coincidence
195  CLCT2GEM, // CLCT-2 GEM pads in coincidence
196  CLCTONLY, // Missing ALCT
197  ALCTONLY // Missing CLCT
198  };

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

208 { 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

◆ getCLCT()

const CSCCLCTDigi& CSCCorrelatedLCTDigi::getCLCT ( ) const
inline

Definition at line 209 of file CSCCorrelatedLCTDigi.h.

209 { 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 134 of file CSCCorrelatedLCTDigi.cc.

134  {
135  return (isRun3() ? std::numeric_limits<uint16_t>::max() : (pattern & 0xF));
136 }

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 196 of file CSCCorrelatedLCTDigi.cc.

196  {
197  return (word >> shift) & mask;
198 }

References edm::shift.

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

◆ getEightStrip()

bool CSCCorrelatedLCTDigi::getEightStrip ( ) const

get single eight strip bit

Definition at line 105 of file CSCCorrelatedLCTDigi.cc.

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

References getDataWord(), isRun3(), kEightStripMask, kEightStripShift, and strip.

Referenced by getStrip().

◆ getFractionalStrip()

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

return the fractional strip

Definition at line 124 of file CSCCorrelatedLCTDigi.cc.

124  {
125  if (n == 8) {
126  return 0.125f * (getStrip(n) + 0.5);
127  } else if (n == 4) {
128  return 0.25f * (getStrip(n) + 0.5);
129  } else {
130  return 0.5f * (getStrip(n) + 0.5);
131  }
132 }

References getStrip(), and dqmiodumpmetadata::n.

Referenced by CSCStubMatcher::getGlobalPosition().

◆ getGEM1()

const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM1 ( ) const
inline

Definition at line 210 of file CSCCorrelatedLCTDigi.h.

210 { return gem1_; }

References gem1_.

◆ getGEM2()

const GEMPadDigi& CSCCorrelatedLCTDigi::getGEM2 ( ) const
inline

Definition at line 211 of file CSCCorrelatedLCTDigi.h.

211 { 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 158 of file CSCCorrelatedLCTDigi.cc.

158 { 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 119 of file CSCCorrelatedLCTDigi.h.

119 { 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 146 of file CSCCorrelatedLCTDigi.cc.

146  {
147  if (!isRun3())
148  return 0;
150 }

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.

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

116 { 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 200 of file CSCCorrelatedLCTDigi.h.

200 { return type_; }

References type_.

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

◆ isRun3()

bool CSCCorrelatedLCTDigi::isRun3 ( ) const
inline

Distinguish Run-1/2 from Run-3.

Definition at line 184 of file CSCCorrelatedLCTDigi.h.

184 { return version_ == Version::Run3; }

References Run3, and version_.

Referenced by getCLCTPattern(), getEightStrip(), getHMT(), getQuartStrip(), getRun3Pattern(), getSlope(), setEightStrip(), setHMT(), setQuartStrip(), setRun3(), setRun3Pattern(), and setSlope().

◆ isValid()

bool CSCCorrelatedLCTDigi::isValid ( void  ) const
inline

◆ operator!=()

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

Definition at line 142 of file CSCCorrelatedLCTDigi.h.

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

References operator==().

◆ operator==()

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

Comparison.

Definition at line 165 of file CSCCorrelatedLCTDigi.cc.

165  {
166  return ((trknmb == rhs.trknmb) && (quality == rhs.quality) && (keywire == rhs.keywire) && (strip == rhs.strip) &&
167  (pattern == rhs.pattern) && (bend == rhs.bend) && (bx == rhs.bx) && (valid == rhs.valid) &&
168  (mpclink == rhs.mpclink) && (hmt == rhs.hmt));
169 }

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 172 of file CSCCorrelatedLCTDigi.cc.

172  {
173  if (isValid()) {
174  edm::LogVerbatim("CSCDigi") << "CSC LCT #" << getTrknmb() << ": Valid = " << isValid()
175  << " Quality = " << getQuality() << " Key Wire = " << getKeyWG()
176  << " Strip = " << getStrip() << " Pattern = " << getPattern()
177  << " Bend = " << ((getBend() == 0) ? 'L' : 'R') << " BX = " << getBX()
178  << " MPC Link = " << getMPCLink() << " Type (SIM) = " << getType()
179  << " HMT Bit = " << getHMT();
180  } else {
181  edm::LogVerbatim("CSCDigi") << "Not a valid correlated LCT.";
182  }
183 }

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

◆ setALCT()

void CSCCorrelatedLCTDigi::setALCT ( const CSCALCTDigi alct)
inline

Definition at line 204 of file CSCCorrelatedLCTDigi.h.

204 { 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 166 of file CSCCorrelatedLCTDigi.h.

166 { bend = b; }

References b, and bend.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setBX()

void CSCCorrelatedLCTDigi::setBX ( const uint16_t  b)
inline

set bx

Definition at line 169 of file CSCCorrelatedLCTDigi.h.

169 { bx = b; }

References b, and bx.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setBX0()

void CSCCorrelatedLCTDigi::setBX0 ( const uint16_t  b)
inline

set bx0

Definition at line 172 of file CSCCorrelatedLCTDigi.h.

172 { bx0 = b; }

References b, and bx0.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setCLCT()

void CSCCorrelatedLCTDigi::setCLCT ( const CSCCLCTDigi clct)
inline

Definition at line 205 of file CSCCorrelatedLCTDigi.h.

205 { clct_ = clct; }

References clct_.

Referenced by CSCGEMMotherboard::constructLCTsGEM().

◆ setCSCID()

void CSCCorrelatedLCTDigi::setCSCID ( const uint16_t  c)
inline

set cscID

Definition at line 178 of file CSCCorrelatedLCTDigi.h.

178 { cscID = c; }

References HltBtagPostValidation_cff::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 185 of file CSCCorrelatedLCTDigi.cc.

188  {
189  // clear the old value
190  word &= ~(mask << shift);
191 
192  // set the new value
193  word |= newWord << shift;
194 }

References edm::shift.

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

◆ setEightStrip()

void CSCCorrelatedLCTDigi::setEightStrip ( const bool  eightStrip)

set single eight strip bit

Definition at line 93 of file CSCCorrelatedLCTDigi.cc.

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

References isRun3(), kEightStripMask, kEightStripShift, setDataWord(), and strip.

◆ setGEM1()

void CSCCorrelatedLCTDigi::setGEM1 ( const GEMPadDigi gem)
inline

Definition at line 206 of file CSCCorrelatedLCTDigi.h.

206 { 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 207 of file CSCCorrelatedLCTDigi.h.

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

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

148 { 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.

◆ setRun3()

void CSCCorrelatedLCTDigi::setRun3 ( const bool  isRun3)

Definition at line 162 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 152 of file CSCCorrelatedLCTDigi.cc.

152  {
153  if (!isRun3())
154  return;
156 }

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

◆ 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.

◆ setStrip()

void CSCCorrelatedLCTDigi::setStrip ( const uint16_t  s)
inline

set strip

Definition at line 154 of file CSCCorrelatedLCTDigi.h.

154 { 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 175 of file CSCCorrelatedLCTDigi.h.

175 { 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 132 of file CSCCorrelatedLCTDigi.h.

132 { trknmb = number; }

References contentValuesFiles::number, and trknmb.

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

◆ setType()

void CSCCorrelatedLCTDigi::setType ( int  type)
inline

Definition at line 202 of file CSCCorrelatedLCTDigi.h.

202 { 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 151 of file CSCCorrelatedLCTDigi.h.

151 { 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 145 of file CSCCorrelatedLCTDigi.h.

145 { keywire = wiregroup; }

References keywire.

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

Member Data Documentation

◆ alct_

CSCALCTDigi CSCCorrelatedLCTDigi::alct_
private

Definition at line 260 of file CSCCorrelatedLCTDigi.h.

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

◆ bend

uint16_t CSCCorrelatedLCTDigi::bend
private

Definition at line 242 of file CSCCorrelatedLCTDigi.h.

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

◆ bx

uint16_t CSCCorrelatedLCTDigi::bx
private

Definition at line 243 of file CSCCorrelatedLCTDigi.h.

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

◆ bx0

uint16_t CSCCorrelatedLCTDigi::bx0
private

Definition at line 245 of file CSCCorrelatedLCTDigi.h.

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

◆ clct_

CSCCLCTDigi CSCCorrelatedLCTDigi::clct_
private

Definition at line 261 of file CSCCorrelatedLCTDigi.h.

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

◆ cscID

uint16_t CSCCorrelatedLCTDigi::cscID
private

Definition at line 249 of file CSCCorrelatedLCTDigi.h.

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

◆ gem1_

GEMPadDigi CSCCorrelatedLCTDigi::gem1_
private

Definition at line 262 of file CSCCorrelatedLCTDigi.h.

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

◆ gem2_

GEMPadDigi CSCCorrelatedLCTDigi::gem2_
private

Definition at line 263 of file CSCCorrelatedLCTDigi.h.

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

◆ hmt

uint16_t CSCCorrelatedLCTDigi::hmt
private

Definition at line 255 of file CSCCorrelatedLCTDigi.h.

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

◆ keywire

uint16_t CSCCorrelatedLCTDigi::keywire
private

Definition at line 231 of file CSCCorrelatedLCTDigi.h.

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

◆ mpclink

uint16_t CSCCorrelatedLCTDigi::mpclink
private

Definition at line 244 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 229 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 247 of file CSCCorrelatedLCTDigi.h.

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

◆ trknmb

uint16_t CSCCorrelatedLCTDigi::trknmb
private

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

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

◆ version_

Version CSCCorrelatedLCTDigi::version_
private

Definition at line 265 of file CSCCorrelatedLCTDigi.h.

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

CSCCorrelatedLCTDigi::quality
uint16_t quality
Definition: CSCCorrelatedLCTDigi.h:229
CSCCorrelatedLCTDigi::trknmb
uint16_t trknmb
Definition: CSCCorrelatedLCTDigi.h:222
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
CSCCorrelatedLCTDigi::gem1_
GEMPadDigi gem1_
Definition: CSCCorrelatedLCTDigi.h:262
CSCCorrelatedLCTDigi::getTrknmb
uint16_t getTrknmb() const
return track number
Definition: CSCCorrelatedLCTDigi.h:50
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:185
CSCCorrelatedLCTDigi::ALCT2GEM
Definition: CSCCorrelatedLCTDigi.h:194
CSCCorrelatedLCTDigi::getType
int getType() const
Definition: CSCCorrelatedLCTDigi.h:200
CSCCorrelatedLCTDigi::CLCTALCT
Definition: CSCCorrelatedLCTDigi.h:190
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::kEightStripMask
Definition: CSCCorrelatedLCTDigi.h:21
CSCCorrelatedLCTDigi::getKeyWG
uint16_t getKeyWG() const
return the key wire group. counts from 0.
Definition: CSCCorrelatedLCTDigi.h:59
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:196
CSCCorrelatedLCTDigi::type_
int type_
SIMULATION ONLY ////.
Definition: CSCCorrelatedLCTDigi.h:258
findQualityFiles.v
v
Definition: findQualityFiles.py:179
CSCCorrelatedLCTDigi::bx
uint16_t bx
Definition: CSCCorrelatedLCTDigi.h:243
CSCCorrelatedLCTDigi::ALCTCLCT
Definition: CSCCorrelatedLCTDigi.h:191
CSCCorrelatedLCTDigi::bx0
uint16_t bx0
Definition: CSCCorrelatedLCTDigi.h:245
CSCCorrelatedLCTDigi::isRun3
bool isRun3() const
Distinguish Run-1/2 from Run-3.
Definition: CSCCorrelatedLCTDigi.h:184
CSCCorrelatedLCTDigi::valid
uint16_t valid
Definition: CSCCorrelatedLCTDigi.h:225
CSCCorrelatedLCTDigi::CLCT2GEM
Definition: CSCCorrelatedLCTDigi.h:195
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:158
alignCSCRings.s
s
Definition: alignCSCRings.py:92
CSCCorrelatedLCTDigi::syncErr
uint16_t syncErr
Definition: CSCCorrelatedLCTDigi.h:247
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
CSCCorrelatedLCTDigi::CLCTONLY
Definition: CSCCorrelatedLCTDigi.h:196
CSCCorrelatedLCTDigi::cscID
uint16_t cscID
Definition: CSCCorrelatedLCTDigi.h:249
CSCCorrelatedLCTDigi::bend
uint16_t bend
Definition: CSCCorrelatedLCTDigi.h:242
CSCCorrelatedLCTDigi::operator==
bool operator==(const CSCCorrelatedLCTDigi &) const
Comparison.
Definition: CSCCorrelatedLCTDigi.cc:165
CSCCorrelatedLCTDigi::getBend
uint16_t getBend() const
return left/right bending
Definition: CSCCorrelatedLCTDigi.h:106
CSCCorrelatedLCTDigi::alct_
CSCALCTDigi alct_
Definition: CSCCorrelatedLCTDigi.h:260
CSCCorrelatedLCTDigi::gem2_
GEMPadDigi gem2_
Definition: CSCCorrelatedLCTDigi.h:263
b
double b
Definition: hdecay.h:118
CSCCorrelatedLCTDigi::ALCTCLCTGEM
Definition: CSCCorrelatedLCTDigi.h:192
CSCCorrelatedLCTDigi::ALCTCLCT2GEM
Definition: CSCCorrelatedLCTDigi.h:193
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:39
CSCCorrelatedLCTDigi::Version::Run3
CSCCorrelatedLCTDigi::hmt
uint16_t hmt
Definition: CSCCorrelatedLCTDigi.h:255
CSCCorrelatedLCTDigi::kRun3SlopeShift
Definition: CSCCorrelatedLCTDigi.h:25
CSCCorrelatedLCTDigi::kEightStripShift
Definition: CSCCorrelatedLCTDigi.h:22
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
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
CSCCorrelatedLCTDigi::getQuartStrip
bool getQuartStrip() const
get single quart strip bit
Definition: CSCCorrelatedLCTDigi.cc:99
CSCCorrelatedLCTDigi::clct_
CSCCLCTDigi clct_
Definition: CSCCorrelatedLCTDigi.h:261
CSCCorrelatedLCTDigi::strip
uint16_t strip
Definition: CSCCorrelatedLCTDigi.h:236
CSCCorrelatedLCTDigi::version_
Version version_
Definition: CSCCorrelatedLCTDigi.h:265
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:138
CSCCLCTDigi::clear
void clear()
clear this CLCT
Definition: CSCCLCTDigi.cc:68
CSCCorrelatedLCTDigi::pattern
uint16_t pattern
Definition: CSCCorrelatedLCTDigi.h:239
CSCCorrelatedLCTDigi::getMPCLink
uint16_t getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
Definition: CSCCorrelatedLCTDigi.h:119
CSCCorrelatedLCTDigi::keywire
uint16_t keywire
Definition: CSCCorrelatedLCTDigi.h:231
CSCCorrelatedLCTDigi::getEightStrip
bool getEightStrip() const
get single eight strip bit
Definition: CSCCorrelatedLCTDigi.cc:105
CSCCorrelatedLCTDigi::ALCTONLY
Definition: CSCCorrelatedLCTDigi.h:197
CSCCorrelatedLCTDigi::kHalfStripShift
Definition: CSCCorrelatedLCTDigi.h:22
CSCCorrelatedLCTDigi::mpclink
uint16_t mpclink
Definition: CSCCorrelatedLCTDigi.h:244
mixOne_premix_on_sim_cfi.gem
gem
Definition: mixOne_premix_on_sim_cfi.py:194
CSCCorrelatedLCTDigi::kLegacyPatternMask
Definition: CSCCorrelatedLCTDigi.h:24
CSCCorrelatedLCTDigi::getBX
uint16_t getBX() const
return BX
Definition: CSCCorrelatedLCTDigi.h:109
slope
static const double slope[3]
Definition: CastorTimeSlew.cc:6
CSCCorrelatedLCTDigi::isValid
bool isValid() const
return valid pattern bit
Definition: CSCCorrelatedLCTDigi.h:53
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
CSCCorrelatedLCTDigi::getQuality
uint16_t getQuality() const
return the Quality
Definition: CSCCorrelatedLCTDigi.h:56
CSCCorrelatedLCTDigi::kRun3SlopeMask
Definition: CSCCorrelatedLCTDigi.h:24