CMS 3D CMS Logo

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

Go to the source code of this file.

Functions

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

Variables

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

Function Documentation

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

Definition at line 79 of file CSCCFEBTimeSlice.cc.

References CSCCFEBTimeSlice::timeSample(), and relativeConstraints::value.

80 {
81  for(int ichannel = 1; ichannel <= 16; ++ichannel)
82  {
83  for(int ilayer = 1; ilayer <= 6; ++ilayer)
84  {
85  //unsigned index = (ilayer-1) + (ichannel-1)*6;
86  //int value = (slice.timeSample(index))->adcCounts - 560;
87  int value = (slice.timeSample(ilayer, ichannel))->adcCounts - 560;
88  os << " " << std::setw(5) << std::dec << value;
89  }
90  os << std::endl;
91  }
92  return os;
93 }
CSCCFEBDataWord * timeSample(int index) const
input from 0 to 95

Variable Documentation

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

Definition at line 10 of file CSCCFEBTimeSlice.cc.

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

Definition at line 11 of file CSCCFEBTimeSlice.cc.

Referenced by CSCCFEBTimeSlice::timeSample().

unsigned layerGrayCode[] = {3,1,5,6,4,2}

Definition at line 8 of file CSCCFEBTimeSlice.cc.

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

Definition at line 9 of file CSCCFEBTimeSlice.cc.

Referenced by CSCCFEBTimeSlice::timeSample().