CMS 3D CMS Logo

HcalTTPData.cc File Reference

#include "EventFilter/HcalRawToDigi/interface/HcalTTPData.h"
#include <string.h>
#include <stdio.h>

Go to the source code of this file.

Functions

static void copyBits (const unsigned short val, std::vector< bool > &ib, int from, int n=16, int offset=0)


Function Documentation

static void copyBits ( const unsigned short  val,
std::vector< bool > &  ib,
int  from,
int  n = 16,
int  offset = 0 
) [static]

Definition at line 68 of file HcalTTPData.cc.

References i, n, and offset.

Referenced by HcalTTPData::unpack().

00068                                                                                                       {
00069   for (int i=0; i<n; i++)
00070     ib[from+i]=((val)&(1<<(i+offset)))!=0;
00071 }


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