CbmRoot
Loading...
Searching...
No Matches
CbmStsDigi.cxx
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Florian Uhlig, Denis Bertini [committer] */
4
12#include "CbmStsDigi.h"
13
14#include "CbmStsAddress.h"
15
16#include <algorithm>
17#include <cstdlib>
18#include <sstream> // for operator<<, basic_ostream, char_traits
19
20using std::string;
21using std::stringstream;
22
23// --- String output
25{
26 stringstream ss;
27 ss << "StsDigi: address " << UnpackAddress() << " | channel " << UnpackChannel() << " | charge " << UnpackCharge()
28 << " | time " << UnpackTime();
29 return ss.str();
30}
31
32#ifndef NO_ROOT
34#endif
ClassImp(CbmConverterManager)
Data class for a single-channel message in the STS.
Definition CbmStsDigi.h:40
std::string ToString() const
XPU_D uint16_t UnpackChannel() const
Definition CbmStsDigi.h:189
XPU_D uint16_t UnpackCharge() const
Definition CbmStsDigi.h:190
XPU_D int32_t UnpackAddress() const
Definition CbmStsDigi.h:203
XPU_D uint32_t UnpackTime() const
Definition CbmStsDigi.h:182