CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Classes | Enumerations | Functions | Variables
evf Namespace Reference

Namespaces

 evtn
 
 fedinterface
 
 moduleweb
 

Classes

class  DirManager
 
class  EvFBuildingThrottle
 
class  EvFDaqDirector
 
class  EvffedFillerEP
 
class  EvffedFillerRB
 
class  EvFFEDSelector
 
class  EvFRecordInserter
 
class  EvFRecordUnpacker
 
class  ExceptionGenerator
 
class  FastMonitoringService
 
class  FastMonitoringThread
 
class  MicroStateService
 
class  MicroStateServiceClassic
 
class  RecoEventOutputModuleForFU
 
class  RecoEventWriterForFU
 

Enumerations

enum  MergeType { MergeTypeNULL = 0, MergeTypeDAT = 1, MergeTypePB = 2, MergeTypeJSNDATA = 3 }
 

Functions

unsigned short compute_crc (unsigned char *buffer, unsigned int bufSize)
 
unsigned short compute_crc_64bit (unsigned short crc, unsigned char *p)
 
unsigned short compute_crc_8bit (unsigned short crc, unsigned char data)
 

Variables

const unsigned short crc_table [256]
 

Enumeration Type Documentation

Enumerator
MergeTypeNULL 
MergeTypeDAT 
MergeTypePB 
MergeTypeJSNDATA 

Definition at line 50 of file EvFDaqDirector.h.

Function Documentation

unsigned short evf::compute_crc ( unsigned char *  buffer,
unsigned int  bufSize 
)
inline

Definition at line 67 of file CRC16.h.

References assert(), edm::bufSize, compute_crc_64bit(), and i.

Referenced by CSCDigiToRaw::createFedBuffers(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), CastorPacker::pack(), CastorCtdcPacker::pack(), HcalPacker::pack(), L1GTEvmDigiToRaw::packTrailer(), L1GTDigiToRaw::packTrailer(), DTDigiToRawModule::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), l1t::L1TDigiToRaw::produce(), and evf::EvffedFillerRB::putTrailer().

68 {
69  assert(0==bufSize%8);
70  unsigned short crc(0xffff);
71  bufSize/=8;
72  for (unsigned int i=0;i<bufSize;i++) crc=evf::compute_crc_64bit(crc,&buffer[i*8]);
73  return crc;
74 }
int i
Definition: DBlmapReader.cc:9
assert(m_qm.get())
static int const bufSize
Definition: Guid.cc:24
unsigned short compute_crc_64bit(unsigned short crc, unsigned char *p)
Definition: CRC16.h:87
unsigned short evf::compute_crc_64bit ( unsigned short  crc,
unsigned char *  p 
)
inline

Definition at line 87 of file CRC16.h.

References compute_crc_8bit(), i, and mps_fire::result.

Referenced by compute_crc().

88 {
89  unsigned short result(crc);
90  for (int i=7;i>=0;i--) result=evf::compute_crc_8bit(result,p64[i]);
91  return result;
92 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: mps_fire.py:83
unsigned short compute_crc_8bit(unsigned short crc, unsigned char data)
Definition: CRC16.h:79
unsigned short evf::compute_crc_8bit ( unsigned short  crc,
unsigned char  data 
)
inline

Definition at line 79 of file CRC16.h.

References crc_table.

Referenced by sistrip::calculateFEDBufferCRC(), and compute_crc_64bit().

80 {
81  return (evf::crc_table[((crc >> 8) ^ data) & 0xFF] ^ (crc << 8));
82 }
const unsigned short crc_table[256]
Definition: CRC16.h:18

Variable Documentation

const unsigned short evf::crc_table[256]

Definition at line 18 of file CRC16.h.

Referenced by compute_crc_8bit().