CbmRoot
CbmMCEventInfo.cxx
Go to the documentation of this file.
1
5
#include "
CbmMCEventInfo.h
"
6
7
#include <sstream>
// for operator<<, basic_ostream, stringstream
8
#include <string>
// for char_traits
9
10
using
std::string;
11
using
std::stringstream;
12
13
// ----- Constructor ------------------------------------------------------
14
CbmMCEventInfo::CbmMCEventInfo
(Int_t fileId, Int_t eventId, Double_t time)
15
: fFileId(fileId), fEventId(eventId), fTime(time) {}
16
// ----------------------------------------------------------------------------
17
18
19
// ----- Destructor -------------------------------------------------------
20
CbmMCEventInfo::~CbmMCEventInfo
() {}
21
// ----------------------------------------------------------------------------
22
23
24
// ----- Status info ------------------------------------------------------
25
string
CbmMCEventInfo::ToString
()
const
{
26
stringstream ss;
27
ss <<
"File "
<<
fFileId
<<
" Event "
<<
fEventId
<<
" Time "
<<
fTime
;
28
return
ss.str();
29
}
30
// ----------------------------------------------------------------------------
31
32
33
ClassImp
(
CbmMCEventInfo
)
CbmMCEventInfo::CbmMCEventInfo
CbmMCEventInfo(Int_t fileId=-1, Int_t eventId=-1, Double_t time=0.)
Constructor.
Definition:
CbmMCEventInfo.cxx:14
CbmMCEventInfo::ToString
std::string ToString() const
Definition:
CbmMCEventInfo.cxx:25
CbmMCEventInfo::fEventId
Int_t fEventId
Definition:
CbmMCEventInfo.h:73
CbmMCEventInfo
Allows to access an MC event in the source file.
Definition:
CbmMCEventInfo.h:27
CbmMCEventInfo::fTime
Double_t fTime
Definition:
CbmMCEventInfo.h:74
CbmMCEventInfo::~CbmMCEventInfo
virtual ~CbmMCEventInfo()
Destructor.
Definition:
CbmMCEventInfo.cxx:20
ClassImp
ClassImp(CbmConverterManager) InitStatus CbmConverterManager
Definition:
CbmConverterManager.cxx:12
CbmMCEventInfo.h
CbmMCEventInfo::fFileId
Int_t fFileId
Definition:
CbmMCEventInfo.h:72
core
data
CbmMCEventInfo.cxx
Generated on Wed Oct 28 2020 15:11:41 for CbmRoot by
1.8.18