Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GBTWord.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GBTWord.cxx
1 // @file GBTWord.cxx
2 // @brief Classes for creation/interpretation of MVTX GBT data
3 // @sa <O2/Detectors/ITSMFT/common/reconstruction/src/GBTWord.cxx>
4 // <1ecb2b0a2>
5 
6 #include "mvtx_decoder/GBTWord.h"
7 #include <sstream>
8 #include <iostream>
9 #include <iomanip>
10 
11 using namespace mvtx;
12 
13 //________________________________________________________________________________
15 {
16  std::stringstream ss;
17  for (int i = GBTWordLength; i--;)
18  {
19  ss << std::hex << std::setfill('0') << std::setw(2) << +data8[i] << " ";
20  }
21  return ss.str();
22 }
23 
24 //________________________________________________________________________________
25 void GBTWord::printX() const
26 {
28  std::cout << asString() << std::endl;
29 }
30