CMS 3D CMS Logo

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

Namespaces

 dqm
 
 evt
 
 evtn
 
 fedinterface
 
 fuep
 
 funcs
 
 internal
 
 utils
 

Classes

class  BU
 
class  BUEvent
 
class  BUProxy
 
class  CPUStat
 
class  Css
 
class  CurlPoster
 
class  EPStateMachine
 
class  EvffedFillerEP
 
class  EvffedFillerRB
 
class  EvFFEDSelector
 
class  EvFRecordInserter
 
class  EvFRecordUnpacker
 
class  Exception
 
class  ExceptionGenerator
 
class  FileDescriptorHandler
 
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  FWEPWrapper
 
class  iDie
 
struct  lsTriplet
 
class  MasterQueue
 
class  MicroStateService
 
struct  ModuleInPathsSummaryStatic
 
class  ModuleWeb
 
class  ModuleWebRegistry
 
class  MsgBuf
 
class  ParameterSetRetriever
 
struct  PathSummaryStatic
 
struct  prg
 
class  RateStat
 
class  RunBase
 
class  ServiceWeb
 
class  ServiceWebRegistry
 
class  ShmOutputModuleRegistry
 
class  SlaveQueue
 
class  SMProxy
 
class  SquidNet
 
class  StateMachine
 
class  Stepper
 
class  SubProcess
 
class  TimeProfilerService
 
struct  TriggerReportStatic
 
class  Vulture
 
struct  vulture_start_message
 
class  WebGUI
 

Typedefs

typedef std::map< std::string,
internal::fu
fmap
 
typedef std::vector< FUResource * > FUResourceVec_t
 
typedef fmap::iterator ifmap
 
typedef toolbox::mem::Reference MemRef_t
 
typedef unsigned char UChar_t
 
typedef unsigned int UInt_t
 
typedef std::vector< UInt_tUIntVec_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]
 
static const size_t max_endpaths = 20
 
static const size_t max_label = 30
 
static const size_t max_modules = 50
 
static const size_t max_paths = 300
 
static const int VULTURE_START_MESSAGE_URL_SIZE = 128
 

Typedef Documentation

typedef std::map<std::string,internal::fu> evf::fmap

Definition at line 43 of file iDie.h.

typedef std::vector<FUResource*> evf::FUResourceVec_t

Definition at line 136 of file FUResource.h.

typedef fmap::iterator evf::ifmap

Definition at line 44 of file iDie.h.

typedef toolbox::mem::Reference evf::MemRef_t

Definition at line 10 of file FUTypes.h.

typedef unsigned char evf::UChar_t

Definition at line 14 of file FUTypes.h.

typedef unsigned int evf::UInt_t

Definition at line 12 of file FUTypes.h.

typedef std::vector<UInt_t> evf::UIntVec_t

Definition at line 15 of file FUTypes.h.

typedef unsigned short evf::UShort_t

Definition at line 13 of file FUTypes.h.

Function Documentation

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

Definition at line 67 of file CRC16.h.

References compute_crc_64bit(), and i.

Referenced by CSCDigiToRaw::createFedBuffers(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), evf::FUResource::findFEDs(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), L1GTEvmDigiToRaw::packTrailer(), L1GTDigiToRaw::packTrailer(), DTDigiToRawModule::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), evf::EvffedFillerRB::putTrailer(), and evf::BUEvent::writeFedTrailer().

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
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 query::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: query.py:137
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
string evf::dumpFrame ( unsigned char *  data,
unsigned int  len 
)

Definition at line 9 of file DebugUtils.cc.

References trackerHits::c, i, dbtoconf::out, and pos.

10 {
11 
12  ostringstream out;
13  char left[40];
14  char right[40];
15 
16  // LOG4CPLUS_ERROR(adapter_->getApplicationLogger(),toolbox::toString("Byte 0 1 2 3 4 5 6 7\n"));
17  out << "Byte: 0 1 2 3 4 5 6 7\n";
18 
19  int c = 0;
20  int pos = 0;
21 
22 
23  for (unsigned int i = 0; i < (len/8); i++) {
24  int rpos = 0;
25  c += 7;
26  for (pos = 0; pos < 8*3; pos += 3) {
27  sprintf (&left[pos],"%2.2x ", ((unsigned char*)data)[c]);
28  sprintf (&right[rpos],"%1c", ((data[c] > 32) && (data[c] < 127)) ? data[c]: '.' );
29  rpos += 1;
30  c--;
31  }
32  c += 9;
33  out << setw(4) << setfill('0') << c-8 << ": " << left << " || "
34  << right << endl;
35 
36  }
37  return out.str();
38 }
int i
Definition: DBlmapReader.cc:9
tuple out
Definition: dbtoconf.py:99
static double evf::getTime ( )
static

Definition at line 6 of file TimeProfilerService.cc.

References edm::hlt::Exception.

Referenced by evf::TimeProfilerService::postModule(), and evf::TimeProfilerService::preModule().

7  {
8  struct timeval t;
9  if(gettimeofday(&t,0)<0)
10  throw cms::Exception("SysCallFailed","Failed call to gettimeofday");
11 
12  return (double)t.tv_sec + (double(t.tv_usec) * 1E-6);
13  }
static size_t evf::write_data ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  pointer 
)
static

Definition at line 12 of file CurlUtils.h.

References convertSQLitetoXML_cfg::output.

Referenced by evf::SquidNet::check(), evf::CurlPoster::check(), and evf::ParameterSetRetriever::ParameterSetRetriever().

13  {
14  using std::string;
15  using std::ostringstream;
16  char *cfg = new char[size*nmemb+1];
17  string *spt = (string *)pointer;
18  strncpy(cfg,(const char*)ptr,size*nmemb);
19  cfg[size*nmemb] = '\0';
20  ostringstream output;
21  output<<cfg;
22  delete[] cfg;
23  (*spt) += output.str();
24  return size*nmemb;
25  }
tuple size
Write out results.

Variable Documentation

const unsigned short evf::crc_table[256]

Definition at line 18 of file CRC16.h.

Referenced by compute_crc_8bit().

const size_t evf::max_endpaths = 20
static
const size_t evf::max_label = 30
static

Definition at line 10 of file TriggerReportDef.h.

const size_t evf::max_modules = 50
static

Definition at line 11 of file TriggerReportDef.h.

const size_t evf::max_paths = 300
static
const int evf::VULTURE_START_MESSAGE_URL_SIZE = 128
static

Definition at line 29 of file Vulture.h.