CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Enumerations | Functions
CSCCLCTDigi.cc File Reference
#include "DataFormats/CSCDigi/interface/CSCCLCTDigi.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Enumerations

enum  Pattern_Info { NUM_LAYERS = 6, CLCT_PATTERN_WIDTH = 11 }
 

Functions

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

Enumeration Type Documentation

Enumerator
NUM_LAYERS 
CLCT_PATTERN_WIDTH 

Definition at line 14 of file CSCCLCTDigi.cc.

Function Documentation

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

Definition at line 216 of file CSCCLCTDigi.cc.

References CSCCLCTDigi::getBend(), CSCCLCTDigi::getBX(), CSCCLCTDigi::getCFEB(), CSCCLCTDigi::getCompCode(), CSCCLCTDigi::getKeyStrip(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCCLCTDigi::getRun3Pattern(), CSCCLCTDigi::getSlope(), CSCCLCTDigi::getStrip(), CSCCLCTDigi::getTrknmb(), CSCCLCTDigi::isRun3(), and CSCCLCTDigi::isValid().

216  {
217  if (digi.isRun3())
218  return o << "CSC CLCT #" << digi.getTrknmb() << ": Valid = " << digi.isValid() << " BX = " << digi.getBX()
219  << " Run-2 Pattern = " << digi.getPattern() << " Run-3 Pattern = " << digi.getRun3Pattern()
220  << " Quality = " << digi.getQuality() << " Comp Code " << digi.getCompCode()
221  << " Bend = " << digi.getBend() << "\n"
222  << " Slope = " << digi.getSlope() << " CFEB = " << digi.getCFEB() << " Strip = " << digi.getStrip()
223  << " KeyHalfStrip = " << digi.getKeyStrip() << " KeyQuartStrip = " << digi.getKeyStrip(4)
224  << " KeyEighthStrip = " << digi.getKeyStrip(8);
225  else
226  return o << "CSC CLCT #" << digi.getTrknmb() << ": Valid = " << digi.isValid() << " BX = " << digi.getBX()
227  << " Pattern = " << digi.getPattern() << " Quality = " << digi.getQuality() << " Bend = " << digi.getBend()
228  << " CFEB = " << digi.getCFEB() << " HalfStrip = " << digi.getStrip()
229  << " KeyHalfStrip = " << digi.getKeyStrip();
230 }
uint16_t getRun3Pattern() const
return pattern
Definition: CSCCLCTDigi.h:68
uint16_t getBX() const
return BX
Definition: CSCCLCTDigi.h:123
uint16_t getBend() const
Definition: CSCCLCTDigi.h:93
uint16_t getKeyStrip(const uint16_t n=2) const
Definition: CSCCLCTDigi.cc:107
uint16_t getCFEB() const
return Key CFEB ID
Definition: CSCCLCTDigi.h:117
bool isValid() const
check CLCT validity (1 - valid CLCT)
Definition: CSCCLCTDigi.h:50
uint16_t getStrip() const
return halfstrip that goes from 0 to 31 in a (D)CFEB
Definition: CSCCLCTDigi.h:99
uint16_t getSlope() const
return the slope
Definition: CSCCLCTDigi.h:74
uint16_t getPattern() const
return pattern
Definition: CSCCLCTDigi.h:62
uint16_t getTrknmb() const
return track number (1,2)
Definition: CSCCLCTDigi.h:132
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
Definition: CSCCLCTDigi.h:56
bool isRun3() const
Distinguish Run-1/2 from Run-3.
Definition: CSCCLCTDigi.h:195
int16_t getCompCode() const
Definition: CSCCLCTDigi.h:171