Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
EventFilter
ESDigiToRaw
src
ESDataFormatter.cc
Go to the documentation of this file.
1
2
#include <iostream>
3
#include <sstream>
4
#include <iomanip>
5
6
#include "
EventFilter/ESDigiToRaw/interface/ESDataFormatter.h
"
7
8
using namespace
std;
9
using namespace
edm;
10
11
12
13
string
ESDataFormatter::print
(
const
Word64
& word)
const
14
{
15
ostringstream str;
16
if
(printInHex_)
17
str <<
"Word64: 0x"
<< setw(16) << setfill(
'0'
) << hex << (word) << dec ;
18
else
19
str <<
"Word64: "
<<
reinterpret_cast<
const
bitset<64>&
>
(word);
20
return
str.str();
21
}
22
23
string
ESDataFormatter::print
(
const
Word16
& word)
const
24
{
25
ostringstream str;
26
if
(printInHex_)
27
str <<
"Word16: 0x"
<< setw(8) << setfill(
'0'
) << hex << (word) << dec ;
28
else
29
str <<
"Word16: "
<<
reinterpret_cast<
const
bitset<16>&
>
(word);
30
return
str.str();
31
}
32
ESDataFormatter::Word64
uint64_t Word64
Definition:
ESDataFormatter.h:26
ESDataFormatter.h
ESDataFormatter::Word16
uint16_t Word16
Definition:
ESDataFormatter.h:24
ESDataFormatter::print
std::string print(const Word64 &word) const
Definition:
ESDataFormatter.cc:13
Generated for CMSSW Reference Manual by
1.8.5