CbmRoot
Loading...
Searching...
No Matches
CbmMcbm2018UnpackerUtilRich2020.h
Go to the documentation of this file.
1/* Copyright (C) 2019 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Egor Ovcharenko [committer] */
4
5#ifndef CbmMcbm2018UnpackerUtilRich2020_H
6#define CbmMcbm2018UnpackerUtilRich2020_H
7
8// STD
9#include <string>
10
11// ROOT
12#include <Rtypes.h>
13
15public:
16 CbmMcbmRichEdge(Int_t subsubevid, Int_t ch, Double_t time) : fSubSubEventID(subsubevid), fChannel(ch), fTime(time) {}
19 Int_t fChannel;
20 Double_t fTime;
21};
22
23namespace mRichSupport
24{
25
26 std::string GetBinaryRepresentation(size_t const size, uint8_t const* const ptr);
27
31 std::string GetHexRepresentation(size_t const size, uint8_t const* const ptr);
32
33 std::string GetWordHexRepr(uint8_t const* const ptr);
34
35 std::string GetWordHexReprInv(uint8_t const* const ptr);
36
37 void SwapBytes(size_t const size, uint8_t const* ptr);
38
39 void PrintRaw(size_t const size, uint8_t const* const ptr);
40
41}; // namespace mRichSupport
42
43#endif // CbmMcbm2018UnpackerUtilRich2020_H
static constexpr size_t size()
Definition KfSimdPseudo.h:2
CbmMcbmRichEdge(Int_t subsubevid, Int_t ch, Double_t time)
std::string GetHexRepresentation(size_t const size, uint8_t const *const ptr)
void PrintRaw(size_t const size, uint8_t const *const ptr)
std::string GetBinaryRepresentation(size_t const size, uint8_t const *const ptr)
std::string GetWordHexReprInv(uint8_t const *const ptr)
std::string GetWordHexRepr(uint8_t const *const ptr)
void SwapBytes(size_t const size, uint8_t const *ptr)