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  moduleweb
namespace  rb_statemachine
namespace  soaputils
namespace  utils

Classes

class  AsciiHisto
class  AsciiRollingChart
class  BaseBU
class  BaseFU
class  BU
class  BUEvent
class  BUFUInterface
class  BUProxy
class  CPUStat
class  Css
class  CurlPoster
struct  DatasetSummaryStatic
class  DQMMsgBuf
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  FUResourceQueue
class  FUResourceTable
class  FUShmBuffer
class  FUShmClient
class  FUShmDqmCell
class  FUShmRawCell
class  FUShmRecoCell
class  FUShmServer
class  FWEPWrapper
class  iDie
class  IndependentWebGUI
class  IPCManager
class  IPCMethod
struct  lsTriplet
class  MasterQueue
class  MicroStateService
struct  ModuleInPathsSummaryStatic
class  ModuleWeb
class  ModuleWebRegistry
class  MsgBuf
class  OutputModule
class  ParameterSetRetriever
struct  PathSummaryStatic
struct  prg
class  RateStat
class  RawCache
class  RawMsgBuf
class  RecoMsgBuf
class  ResourceChecker
class  RunBase
class  ServiceWeb
class  ServiceWebRegistry
class  ShmOutputModuleRegistry
class  SimpleMsgBuf
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)
void evfep_alarmhandler (int sig, siginfo_t *info, void *c)
void evfep_sighandler (int sig, siginfo_t *info, void *c)
float fround (float val, float mod)
static double getTime ()
int modlistSortFunction (const void *a, const void *b)
static size_t write_data (void *ptr, size_t size, size_t nmemb, void *pointer)

Variables

const unsigned short crc_table [256]
static const unsigned int DISCARD_RAW_MESSAGE_TYPE = 200
static const unsigned int DQM_MESSAGE_TYPE = 102
int evfep_raised_signal
FUEventProcessorFUInstancePtr_
static const size_t max_datasets = 60
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 unsigned int RAW_MESSAGE_TYPE = 100
static const unsigned int RECO_MESSAGE_TYPE = 101
static const int VULTURE_START_MESSAGE_URL_SIZE = 128

Detailed Description

Web GUI independent of state machine


Typedef Documentation

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

Definition at line 90 of file iDie.h.

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

Definition at line 209 of file FUResource.h.

typedef fmap::iterator evf::ifmap

Definition at line 91 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

TYPEDEFS for FU

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();
}   
void evf::evfep_alarmhandler ( int  sig,
siginfo_t *  info,
void *  c 
)

Definition at line 73 of file FUEventProcessor.cc.

References evfep_raised_signal.

Referenced by evf::FUEventProcessor::forkProcessesFromEDM().

  {
    if (evfep_raised_signal) {
      signal(evfep_raised_signal,SIG_DFL);
      raise(evfep_raised_signal);
    }
  }
void evf::evfep_sighandler ( int  sig,
siginfo_t *  info,
void *  c 
)
float evf::fround ( float  val,
float  mod 
)

Definition at line 719 of file iDie.h.

Referenced by evf::iDie::fillDQMModFractionHist(), and evf::iDie::updateRollingHistos().

                                     {
    return val - fmod(val,mod);
  }
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);
  }
int evf::modlistSortFunction ( const void *  a,
const void *  b 
)

Definition at line 708 of file iDie.h.

  {
    std::pair<unsigned int,unsigned int> intOne = *((std::pair<unsigned int,unsigned int>*)a);
    std::pair<unsigned int,unsigned int> intTwo = *((std::pair<unsigned int,unsigned int>*)b);
    if (intOne.second > intTwo.second)
      return -1;
    if (intOne.second == intTwo.second)
      return 0;
    return 1;
  }
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 unsigned int evf::DISCARD_RAW_MESSAGE_TYPE = 200 [static]
const unsigned int evf::DQM_MESSAGE_TYPE = 102 [static]

Definition at line 67 of file FUEventProcessor.cc.

Referenced by evfep_alarmhandler(), and evfep_sighandler().

const size_t evf::max_datasets = 60 [static]
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 unsigned int evf::RAW_MESSAGE_TYPE = 100 [static]

Definition at line 14 of file msq_constants.h.

Referenced by evf::RawCache::initialise().

const unsigned int evf::RECO_MESSAGE_TYPE = 101 [static]
const int evf::VULTURE_START_MESSAGE_URL_SIZE = 128 [static]

Definition at line 29 of file Vulture.h.