CMS 3D CMS Logo

Functions | Variables

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/EventFilter/CSCRawToDigi/src/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.

{
  for(int ichannel = 1; ichannel <= 16; ++ichannel) 
    {
      for(int ilayer = 1; ilayer <= 6; ++ilayer)
        {
          //unsigned index = (ilayer-1) + (ichannel-1)*6;
          //int value = (slice.timeSample(index))->adcCounts - 560;
          int value = (slice.timeSample(ilayer, ichannel))->adcCounts - 560; 
          os << " " << std::setw(5) << std::dec << value;
        }
      os << std::endl;
    }
  return os;
}

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