CbmRoot
CbmLink.cxx
Go to the documentation of this file.
1 
6 #include "CbmLink.h"
7 
8 #include <TObject.h> // for TObject
9 
10 #include <sstream> // for operator<<, basic_ostream, stringstream
11 #include <string> // for char_traits
12 
13 using std::stringstream;
14 
16  : TObject(), fFile(-1), fEntry(-1), fIndex(-1), fWeight(-1.) {}
17 
18 CbmLink::CbmLink(Float_t weight, Int_t index, Int_t entry, Int_t file)
19  : TObject(), fFile(file), fEntry(entry), fIndex(index), fWeight(weight) {}
20 
22 
23 std::string CbmLink::ToString() const {
24  stringstream ss;
25  ss << "CbmLink: weight=" << fWeight << " index=" << fIndex
26  << " entry=" << fEntry << " file=" << fFile << "\n";
27  return ss.str();
28 }
29 
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition: CbmConverterManager.cxx:12