CMS 3D CMS Logo

CSCCFEBTimeSlice.cc File Reference

#include "EventFilter/CSCRawToDigi/interface/CSCCFEBTimeSlice.h"
#include <cassert>
#include <iomanip>

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

References lat::endl(), CSCCFEBTimeSlice::timeSample(), and value.

00068 {
00069   for(int ichannel = 1; ichannel <= 16; ++ichannel) 
00070     {
00071       for(int ilayer = 1; ilayer <= 6; ++ilayer)
00072         {
00073           //unsigned index = (ilayer-1) + (ichannel-1)*6;
00074           //int value = (slice.timeSample(index))->adcCounts - 560;
00075           int value = (slice.timeSample(ilayer, ichannel))->adcCounts - 560; 
00076           os << " " << std::setw(5) << std::dec << value;
00077         }
00078       os << std::endl;
00079     }
00080   return os;
00081 }


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


Generated on Tue Jun 9 17:52:47 2009 for CMSSW by  doxygen 1.5.4