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

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 81 of file CSCCFEBTimeSlice.cc.

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

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

Variable Documentation

const 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().

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

Definition at line 9 of file CSCCFEBTimeSlice.cc.

Referenced by CSCCFEBTimeSlice::timeSample().