CMS 3D CMS Logo

Namespaces | Typedefs | Functions
MsgTools.h File Reference
#include <vector>
#include <string>
#include <sstream>
#include <iterator>
#include "FWCore/Utilities/interface/Algorithms.h"

Go to the source code of this file.

Namespaces

 MsgTools
 

Typedefs

typedef unsigned char char_uint16[sizeof(uint16)]
 
typedef unsigned char char_uint32[sizeof(uint32)]
 
typedef unsigned char char_uint64[sizeof(uint64)]
 
typedef std::vector< std::string > Strings
 
typedef unsigned short uint16
 
typedef unsigned int uint32
 
typedef unsigned long long uint64
 
typedef unsigned char uint8
 

Functions

void convert (uint16 i, char_uint16 v)
 
void convert (uint32 i, char_uint32 v)
 
void convert (uint64 li, char_uint64 v)
 
uint16 convert16 (char_uint16 v)
 
uint32 convert32 (char_uint32 v)
 
uint64 convert64 (char_uint64 v)
 
uint8MsgTools::fillNames (const Strings &names, uint8 *pos)
 
void MsgTools::getNames (uint8 *from, uint32 from_len, Strings &to)
 

Typedef Documentation

◆ char_uint16

typedef unsigned char char_uint16[sizeof(uint16)]

Definition at line 17 of file MsgTools.h.

◆ char_uint32

typedef unsigned char char_uint32[sizeof(uint32)]

Definition at line 16 of file MsgTools.h.

◆ char_uint64

typedef unsigned char char_uint64[sizeof(uint64)]

Definition at line 15 of file MsgTools.h.

◆ Strings

typedef std::vector<std::string> Strings

Definition at line 18 of file MsgTools.h.

◆ uint16

typedef unsigned short uint16

Definition at line 12 of file MsgTools.h.

◆ uint32

typedef unsigned int uint32

Definition at line 13 of file MsgTools.h.

◆ uint64

typedef unsigned long long uint64

Definition at line 14 of file MsgTools.h.

◆ uint8

typedef unsigned char uint8

Definition at line 11 of file MsgTools.h.

Function Documentation

◆ convert() [1/3]

void convert ( uint16  i,
char_uint16  v 
)
inline

Definition at line 49 of file MsgTools.h.

49  {
50  v[0] = i & 0xff;
51  v[1] = (i >> 8) & 0xff;
52 }

References mps_fire::i, and findQualityFiles::v.

◆ convert() [2/3]

void convert ( uint32  i,
char_uint32  v 
)
inline

Definition at line 42 of file MsgTools.h.

42  {
43  v[0] = i & 0xff;
44  v[1] = (i >> 8) & 0xff;
45  v[2] = (i >> 16) & 0xff;
46  v[3] = (i >> 24) & 0xff;
47 }

References mps_fire::i, and findQualityFiles::v.

Referenced by MsgTools::fillNames().

◆ convert() [3/3]

void convert ( uint64  li,
char_uint64  v 
)
inline

Definition at line 54 of file MsgTools.h.

54  {
55  v[0] = li & 0xff;
56  v[1] = (li >> 8) & 0xff;
57  v[2] = (li >> 16) & 0xff;
58  v[3] = (li >> 24) & 0xff;
59  v[4] = (li >> 32) & 0xff;
60  v[5] = (li >> 40) & 0xff;
61  v[6] = (li >> 48) & 0xff;
62  v[7] = (li >> 56) & 0xff;
63 }

References findQualityFiles::v.

◆ convert16()

uint16 convert16 ( char_uint16  v)
inline

Definition at line 35 of file MsgTools.h.

35  {
36  // first four bytes are code, LSB first
37  unsigned int a = v[0], b = v[1];
38  a |= (b << 8);
39  return a;
40 }

References a, b, and findQualityFiles::v.

◆ convert32()

uint32 convert32 ( char_uint32  v)
inline

◆ convert64()

uint64 convert64 ( char_uint64  v)
inline

Definition at line 20 of file MsgTools.h.

20  {
21  // first four bytes are code, LSB first
22  unsigned long long a = v[0], b = v[1], c = v[2], d = v[3];
23  unsigned long long e = v[4], f = v[5], g = v[6], h = v[7];
24  a |= (b << 8) | (c << 16) | (d << 24) | (e << 32) | (f << 40) | (g << 48) | (h << 56);
25  return a;
26 }

References a, b, HltBtagPostValidation_cff::c, ztail::d, MillePedeFileConverter_cfg::e, f, g, and findQualityFiles::v.

Referenced by EventMsgView::event(), and edm::StreamerInputFile::readEventMessage().

mps_fire.i
i
Definition: mps_fire.py:355
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
findQualityFiles.v
v
Definition: findQualityFiles.py:179
h
b
double b
Definition: hdecay.h:118
a
double a
Definition: hdecay.h:119
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
ztail.d
d
Definition: ztail.py:151
g
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37