CMS 3D CMS Logo

ESDataFormatter.cc
Go to the documentation of this file.
1 
2 #include <iostream>
3 #include <sstream>
4 #include <iomanip>
5 
7 
8 using namespace std;
9 using namespace edm;
10 
11 string ESDataFormatter::print(const Word64& word) const {
12  ostringstream str;
13  if (printInHex_)
14  str << "Word64: 0x" << setw(16) << setfill('0') << hex << (word) << dec;
15  else
16  str << "Word64: " << reinterpret_cast<const bitset<64>&>(word);
17  return str.str();
18 }
19 
20 string ESDataFormatter::print(const Word16& word) const {
21  ostringstream str;
22  if (printInHex_)
23  str << "Word16: 0x" << setw(8) << setfill('0') << hex << (word) << dec;
24  else
25  str << "Word16: " << reinterpret_cast<const bitset<16>&>(word);
26  return str.str();
27 }
edm
HLT enums.
Definition: AlignableModifier.h:19
ESDataFormatter::Word64
uint64_t Word64
Definition: ESDataFormatter.h:36
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
str
#define str(s)
Definition: TestProcessor.cc:51
ESDataFormatter.h
ESDataFormatter::print
std::string print(const Word64 &word) const
Definition: ESDataFormatter.cc:11
std
Definition: JetResolutionObject.h:76
ESDataFormatter::Word16
uint16_t Word16
Definition: ESDataFormatter.h:34
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143