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

Definition at line 67 of file CRC16.h.

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

Referenced by CSCDigiToRaw::createFedBuffers(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), evf::ResourceChecker::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
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 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
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
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
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
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().

74  {
75  if (evfep_raised_signal) {
76  signal(evfep_raised_signal,SIG_DFL);
77  raise(evfep_raised_signal);
78  }
79  }
int evfep_raised_signal
void evf::evfep_sighandler ( int  sig,
siginfo_t *  info,
void *  c 
)

Definition at line 68 of file FUEventProcessor.cc.

References evfep_raised_signal, FUInstancePtr_, and evf::FUEventProcessor::handleSignalSlave().

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

69  {
72  }
FUEventProcessor * FUInstancePtr_
int evfep_raised_signal
void handleSignalSlave(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().

719  {
720  return val - fmod(val,mod);
721  }
list mod
Load physics model.
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  }
int evf::modlistSortFunction ( const void *  a,
const void *  b 
)

Definition at line 708 of file iDie.h.

709  {
710  std::pair<unsigned int,unsigned int> intOne = *((std::pair<unsigned int,unsigned int>*)a);
711  std::pair<unsigned int,unsigned int> intTwo = *((std::pair<unsigned int,unsigned int>*)b);
712  if (intOne.second > intTwo.second)
713  return -1;
714  if (intOne.second == intTwo.second)
715  return 0;
716  return 1;
717  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121
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 unsigned int evf::DISCARD_RAW_MESSAGE_TYPE = 200
static
const unsigned int evf::DQM_MESSAGE_TYPE = 102
static
int evf::evfep_raised_signal

Definition at line 67 of file FUEventProcessor.cc.

Referenced by evfep_alarmhandler(), and evfep_sighandler().

FUEventProcessor* evf::FUInstancePtr_
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.