CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
CSCCFEBTimeSlice.cc File Reference
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "EventFilter/CSCRawToDigi/interface/CSCCFEBTimeSlice.h"
#include <cassert>
#include <iomanip>
#include <cstdint>

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CSCCFEBTimeSlice &slice)
 

Variables

const unsigned channelInverseGrayCode [] = {0, 1, 3, 2, 7, 6, 4, 5, 15, 14, 12, 13, 8, 9, 11, 10}
 
const unsigned layerInverseGrayCode [] = {1, 5, 0, 4, 2, 3}
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CSCCFEBTimeSlice slice 
)

Definition at line 71 of file CSCCFEBTimeSlice.cc.

References TauDecayModes::dec, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), CSCCFEBTimeSlice::timeSample(), and relativeConstraints::value.

71  {
72  for (int ichannel = 1; ichannel <= 16; ++ichannel) {
73  for (int ilayer = CSCDetId::minLayerId(); ilayer <= CSCDetId::maxLayerId(); ++ilayer) {
74  //unsigned index = (ilayer-1) + (ichannel-1)*6;
75  //int value = (slice.timeSample(index))->adcCounts - 560;
76  int value = (slice.timeSample(ilayer, ichannel))->adcCounts - 560;
77  os << " " << std::setw(5) << std::dec << value;
78  }
79  os << std::endl;
80  }
81  return os;
82 }
CSCCFEBDataWord * timeSample(int index) const
input from 0 to 95
static int minLayerId()
Definition: CSCDetId.h:242
static int maxLayerId()
Definition: CSCDetId.h:243

Variable Documentation

const unsigned channelInverseGrayCode[] = {0, 1, 3, 2, 7, 6, 4, 5, 15, 14, 12, 13, 8, 9, 11, 10}

Definition at line 12 of file CSCCFEBTimeSlice.cc.

Referenced by CSCCFEBTimeSlice::timeSample().

const unsigned layerInverseGrayCode[] = {1, 5, 0, 4, 2, 3}

Definition at line 10 of file CSCCFEBTimeSlice.cc.

Referenced by CSCCFEBTimeSlice::timeSample().