Classes | |
class | BU |
class | BUEvent |
class | BUProxy |
class | Css |
class | EPStateMachine |
class | Exception |
class | ExceptionGenerator |
struct | filter |
class | FsmFailedEvent |
class | FUEventProcessor |
class | FUResource |
class | FUResourceBroker |
class | FUResourceTable |
class | FUShmBuffer |
class | FUShmClient |
class | FUShmDqmCell |
class | FUShmRawCell |
class | FUShmRecoCell |
class | FUShmServer |
class | MicroStateService |
class | ModuleWeb |
class | ModuleWebRegistry |
class | ParameterSetRetriever |
class | RunBase |
class | ServiceWeb |
class | ServiceWebRegistry |
class | SMProxy |
class | SquidNet |
class | StateMachine |
class | Stepper |
class | TimeProfilerService |
class | WebGUI |
Namespaces | |
namespace | dqm |
namespace | evt |
namespace | evtn |
namespace | fuep |
namespace | internal |
Typedefs | |
typedef std::vector< FUResource * > | FUResourceVec_t |
typedef toolbox::mem::Reference | MemRef_t |
typedef unsigned char | UChar_t |
typedef unsigned int | UInt_t |
typedef std::vector< UInt_t > | UIntVec_t |
typedef unsigned short | UShort_t |
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) |
std::string | dumpFrame (unsigned char *data, unsigned int len) |
static double | getTime () |
static size_t | write_data (void *ptr, size_t size, size_t nmemb, void *pointer) |
Variables | |
const unsigned short | crc_table [256] |
typedef std::vector<FUResource*> evf::FUResourceVec_t |
Definition at line 122 of file FUResource.h.
typedef toolbox::mem::Reference evf::MemRef_t |
typedef unsigned char evf::UChar_t |
typedef unsigned int evf::UInt_t |
typedef std::vector<UInt_t> evf::UIntVec_t |
typedef unsigned short evf::UShort_t |
unsigned short evf::compute_crc | ( | unsigned char * | buffer, | |
unsigned int | bufSize | |||
) | [inline] |
Definition at line 66 of file CRC16.h.
References compute_crc_64bit(), and i.
Referenced by CSCDigiToRaw::createFedBuffers(), ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), evf::FUResource::findFEDs(), HcalPacker::pack(), CastorPacker::pack(), L1GTDigiToRaw::packTrailer(), L1GTEvmDigiToRaw::packTrailer(), CSCTFPacker::produce(), GctDigiToRaw::produce(), DTDigiToRawModule::produce(), and evf::BUEvent::writeFedTrailer().
00067 { 00068 assert(0==bufSize%8); 00069 unsigned short crc(0xffff); 00070 bufSize/=8; 00071 for (unsigned int i=0;i<bufSize;i++) crc=evf::compute_crc_64bit(crc,&buffer[i*8]); 00072 return crc; 00073 }
unsigned short evf::compute_crc_64bit | ( | unsigned short | crc, | |
unsigned char * | p | |||
) | [inline] |
Definition at line 86 of file CRC16.h.
References compute_crc_8bit(), i, and HLT_VtxMuL3::result.
Referenced by compute_crc().
00087 { 00088 unsigned short result(crc); 00089 for (int i=7;i>=0;i--) result=evf::compute_crc_8bit(result,p64[i]); 00090 return result; 00091 }
unsigned short evf::compute_crc_8bit | ( | unsigned short | crc, | |
unsigned char | data | |||
) | [inline] |
Definition at line 78 of file CRC16.h.
References crc_table.
Referenced by sistrip::FEDBufferBase::calcCRC(), and compute_crc_64bit().
00079 { 00080 return (evf::crc_table[((crc >> 8) ^ data) & 0xFF] ^ (crc << 8)); 00081 }
string evf::dumpFrame | ( | unsigned char * | data, | |
unsigned int | len | |||
) |
Definition at line 8 of file DebugUtils.cc.
References c, lat::endl(), i, and out.
00009 { 00010 00011 ostringstream out; 00012 char left[40]; 00013 char right[40]; 00014 00015 // LOG4CPLUS_ERROR(adapter_->getApplicationLogger(),toolbox::toString("Byte 0 1 2 3 4 5 6 7\n")); 00016 out << "Byte: 0 1 2 3 4 5 6 7\n"; 00017 00018 int c = 0; 00019 int pos = 0; 00020 00021 00022 for (unsigned int i = 0; i < (len/8); i++) { 00023 int rpos = 0; 00024 c += 7; 00025 for (pos = 0; pos < 8*3; pos += 3) { 00026 sprintf (&left[pos],"%2.2x ", ((unsigned char*)data)[c]); 00027 sprintf (&right[rpos],"%1c", ((data[c] > 32) && (data[c] < 127)) ? data[c]: '.' ); 00028 rpos += 1; 00029 c--; 00030 } 00031 c += 9; 00032 out << setw(4) << setfill('0') << c-8 << ": " << left << " || " 00033 << right << endl; 00034 00035 } 00036 return out.str(); 00037 }
static double evf::getTime | ( | ) | [static] |
Definition at line 5 of file TimeProfilerService.cc.
References Exception.
Referenced by evf::TimeProfilerService::postModule(), evf::TimeProfilerService::preModule(), pos::PixelFEDCard::writeXML(), pos::PixelDACSettings::writeXML(), pos::PixelDACSettings::writeXMLHeader(), and pos::PixelFEDCard::writeXMLHeader().
00006 { 00007 struct timeval t; 00008 if(gettimeofday(&t,0)<0) 00009 throw cms::Exception("SysCallFailed","Failed call to gettimeofday"); 00010 00011 return (double)t.tv_sec + (double(t.tv_usec) * 1E-6); 00012 }
Definition at line 13 of file CurlUtils.h.
References output().
Referenced by evf::SquidNet::check(), and evf::ParameterSetRetriever::ParameterSetRetriever().
00014 { 00015 using std::string; 00016 using std::ostringstream; 00017 char *cfg = new char[size*nmemb+1]; 00018 string *spt = (string *)pointer; 00019 strncpy(cfg,(const char*)ptr,size*nmemb); 00020 sprintf(cfg+size*nmemb,"\0"); 00021 ostringstream output; 00022 output<<cfg; 00023 delete[] cfg; 00024 (*spt) += output.str(); 00025 return size*nmemb; 00026 }
const unsigned short evf::crc_table[256] |