CMS 3D CMS Logo

Namespaces | Classes | Typedefs | Functions | Variables

evf Namespace Reference

Namespaces

namespace  dqm
namespace  evt
namespace  evtn
namespace  fedinterface
namespace  fuep
namespace  funcs
namespace  internal
namespace  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 = 30
static const size_t max_label = 30
static const size_t max_modules = 50
static const size_t max_paths = 500
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]
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().

{
  unsigned short result(crc);
  for (int i=7;i>=0;i--) result=evf::compute_crc_8bit(result,p64[i]);
  return result;
}
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().

{
  return (evf::crc_table[((crc >> 8) ^ data) & 0xFF] ^ (crc << 8));
}
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.

{
  
  ostringstream out;
  char left[40];
  char right[40];
      
  //  LOG4CPLUS_ERROR(adapter_->getApplicationLogger(),toolbox::toString("Byte  0  1  2  3  4  5  6  7\n"));
  out << "Byte:  0  1  2  3  4  5  6  7\n";
      
  int c = 0;
  int pos = 0;
      
      
  for (unsigned int i = 0; i < (len/8); i++) {
    int rpos = 0;
    c += 7;
    for (pos = 0; pos < 8*3; pos += 3) {
      sprintf (&left[pos],"%2.2x ", ((unsigned char*)data)[c]);
      sprintf (&right[rpos],"%1c", ((data[c] > 32) && (data[c] < 127)) ? data[c]: '.' );
      rpos += 1;
      c--;
    }
    c += 9;
    out << setw(4) << setfill('0') << c-8 << ": " << left << "  ||  " 
        << right << endl;

  }     
  return out.str();
}   
static double evf::getTime ( ) [static]

Definition at line 6 of file TimeProfilerService.cc.

References Exception.

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

  {
    struct timeval t;
    if(gettimeofday(&t,0)<0)
      throw cms::Exception("SysCallFailed","Failed call to gettimeofday");
    
    return (double)t.tv_sec + (double(t.tv_usec) * 1E-6);
  }
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::CurlPoster::check(), evf::SquidNet::check(), and evf::ParameterSetRetriever::ParameterSetRetriever().

  {
    using std::string;
    using std::ostringstream; 
    char *cfg = new char[size*nmemb+1];
    string *spt = (string *)pointer;
    strncpy(cfg,(const char*)ptr,size*nmemb);
    cfg[size*nmemb] = '\0';
    ostringstream output;
    output<<cfg;
    delete[] cfg;
    (*spt) += output.str(); 
    return size*nmemb;
  }

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 = 30 [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 = 500 [static]
const int evf::VULTURE_START_MESSAGE_URL_SIZE = 128 [static]

Definition at line 29 of file Vulture.h.