CMS 3D CMS Logo

Classes | Functions
CSCCorrelatedLCTDigi.h File Reference
#include <cstdint>
#include <iosfwd>
#include <limits>
#include "DataFormats/CSCDigi/interface/CSCALCTDigi.h"
#include "DataFormats/CSCDigi/interface/CSCCLCTDigi.h"
#include "DataFormats/GEMDigi/interface/GEMPadDigi.h"

Go to the source code of this file.

Classes

class  CSCCorrelatedLCTDigi
 

Functions

std::ostream & operator<< (std::ostream &o, const CSCCorrelatedLCTDigi &digi)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  o,
const CSCCorrelatedLCTDigi digi 
)

Definition at line 155 of file CSCCorrelatedLCTDigi.cc.

References CSCCorrelatedLCTDigi::getBend(), CSCCorrelatedLCTDigi::getBX(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getMPCLink(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getRun3Pattern(), CSCCorrelatedLCTDigi::getSlope(), CSCCorrelatedLCTDigi::getStrip(), CSCCorrelatedLCTDigi::getTrknmb(), CSCCorrelatedLCTDigi::getType(), CSCCorrelatedLCTDigi::isRun3(), CSCCorrelatedLCTDigi::isValid(), and EcalTangentSkim_cfg::o.

155  {
156  // do not print out CSCID and sync error. They are not used anyway in the firmware, or the emulation
157  if (digi.isRun3())
158  return o << "CSC LCT #" << digi.getTrknmb() << ": Valid = " << digi.isValid() << " BX = " << digi.getBX()
159  << " Run-2 Pattern = " << digi.getPattern() << " Run-3 Pattern = " << digi.getRun3Pattern()
160  << " Quality = " << digi.getQuality() << " Bend = " << digi.getBend() << " Slope = " << digi.getSlope()
161  << "\n"
162  << " KeyHalfStrip = " << digi.getStrip() << " KeyQuartStrip = " << digi.getStrip(4)
163  << " KeyEighthStrip = " << digi.getStrip(8) << " KeyWireGroup = " << digi.getKeyWG()
164  << " Type (SIM) = " << digi.getType() << " MPC Link = " << digi.getMPCLink();
165  else
166  return o << "CSC LCT #" << digi.getTrknmb() << ": Valid = " << digi.isValid() << " BX = " << digi.getBX()
167  << " Pattern = " << digi.getPattern() << " Quality = " << digi.getQuality() << " Bend = " << digi.getBend()
168  << "\n"
169  << " KeyHalfStrip = " << digi.getStrip() << " KeyWireGroup = " << digi.getKeyWG()
170  << " Type (SIM) = " << digi.getType() << " MPC Link = " << digi.getMPCLink();
171 }
bool isRun3() const
Distinguish Run-1/2 from Run-3.
uint16_t getSlope() const
return the slope
uint16_t getPattern() const
return the Run-2 pattern ID
uint16_t getMPCLink() const
return MPC link number, 0 means not sorted, 1-3 give MPC sorting rank
uint16_t getBX() const
return BX
bool isValid() const
return valid pattern bit
uint16_t getTrknmb() const
return track number
uint16_t getQuality() const
return the Quality
uint16_t getStrip(uint16_t n=2) const
return the key halfstrip from 0,159
uint16_t getKeyWG() const
return the key wire group. counts from 0.
uint16_t getRun3Pattern() const
return the Run-3 pattern ID