CbmRoot
CbmMcbm2018UnpackerUtilRich.h
Go to the documentation of this file.
1 #ifndef CbmMcbm2018UnpackerUtilRich_H
2 #define CbmMcbm2018UnpackerUtilRich_H
3 
4 // STD
5 #include <string>
6 
7 // ROOT
8 #include <Rtypes.h>
9 
11 public:
12  CbmMcbmRichEdge(Int_t subsubevid, Int_t ch, Double_t time)
13  : fSubSubEventID(subsubevid), fChannel(ch), fTime(time) {}
16  Int_t fChannel;
17  Double_t fTime;
18 };
19 
20 namespace mRichSupport {
21 
22  std::string GetBinaryRepresentation(size_t const size,
23  uint8_t const* const ptr);
24 
28  std::string GetHexRepresentation(size_t const size, uint8_t const* const ptr);
29 
30  std::string GetWordHexRepr(uint8_t const* const ptr);
31 
32  std::string GetWordHexReprInv(uint8_t const* const ptr);
33 
34  void SwapBytes(size_t const size, uint8_t const* ptr);
35 
36  void PrintRaw(size_t const size, uint8_t const* const ptr);
37 
38 }; // namespace mRichSupport
39 
40 #endif // CbmMcbm2018UnpackerUtilRich_H
CbmMcbmRichEdge
Definition: CbmMcbm2018UnpackerUtilRich.h:10
mRichSupport::GetBinaryRepresentation
std::string GetBinaryRepresentation(size_t const size, uint8_t const *const ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:5
CbmMcbmRichEdge::CbmMcbmRichEdge
CbmMcbmRichEdge(Int_t subsubevid, Int_t ch, Double_t time)
Definition: CbmMcbm2018UnpackerUtilRich.h:12
mRichSupport::GetWordHexRepr
std::string GetWordHexRepr(uint8_t const *const ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:48
mRichSupport
Definition: CbmMcbm2018UnpackerUtilRich.h:20
mRichSupport::PrintRaw
void PrintRaw(size_t const size, uint8_t const *const ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:102
CbmMcbmRichEdge::fChannel
Int_t fChannel
Definition: CbmMcbm2018UnpackerUtilRich.h:16
CbmMcbmRichEdge::fSubSubEventID
Int_t fSubSubEventID
Definition: CbmMcbm2018UnpackerUtilRich.h:15
mRichSupport::SwapBytes
void SwapBytes(size_t const size, uint8_t const *ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:88
CbmMcbmRichEdge::fTime
Double_t fTime
Definition: CbmMcbm2018UnpackerUtilRich.h:17
mRichSupport::GetWordHexReprInv
std::string GetWordHexReprInv(uint8_t const *const ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:68
mRichSupport::GetHexRepresentation
std::string GetHexRepresentation(size_t const size, uint8_t const *const ptr)
Definition: CbmMcbm2018UnpackerUtilRich.cxx:29
CbmMcbmRichEdge::~CbmMcbmRichEdge
~CbmMcbmRichEdge()
Definition: CbmMcbm2018UnpackerUtilRich.h:14