CbmRoot
Loading...
Searching...
No Matches
CbmLink.cxx
Go to the documentation of this file.
1/* Copyright (C) 2013-2020 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer], Florian Uhlig */
4
10#include "CbmLink.h"
11
12#include <TObject.h> // for TObject
13
14#include <sstream> // for operator<<, basic_ostream, stringstream
15#include <string> // for char_traits
16
17using std::stringstream;
18
19CbmLink::CbmLink() : TObject(), fFile(-1), fEntry(-1), fIndex(-1), fWeight(-1.) {}
20
21CbmLink::CbmLink(float weight, int32_t index, int32_t entry, int32_t file)
22 : TObject()
23 , fFile(file)
24 , fEntry(entry)
25 , fIndex(index)
26 , fWeight(weight)
27{
28}
29
31
32std::string CbmLink::ToString() const
33{
34 stringstream ss;
35 ss << "CbmLink: weight=" << fWeight << " index=" << fIndex << " entry=" << fEntry << " file=" << fFile << "\n";
36 return ss.str();
37}
38
ClassImp(CbmConverterManager)