CbmRoot
Loading...
Searching...
No Matches
CbmMCEventInfo.cxx
Go to the documentation of this file.
1/* Copyright (C) 2018-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
9#include "CbmMCEventInfo.h"
10
11#include <sstream> // for operator<<, basic_ostream, stringstream
12#include <string> // for char_traits
13
14using std::string;
15using std::stringstream;
16
17// ----- Constructor ------------------------------------------------------
18CbmMCEventInfo::CbmMCEventInfo(int32_t fileId, int32_t eventId, double time)
19 : fFileId(fileId)
20 , fEventId(eventId)
21 , fTime(time)
22{
23}
24// ----------------------------------------------------------------------------
25
26
27// ----- Destructor -------------------------------------------------------
29// ----------------------------------------------------------------------------
30
31
32// ----- Status info ------------------------------------------------------
34{
35 stringstream ss;
36 ss << "File " << fFileId << " Event " << fEventId << " Time " << fTime;
37 return ss.str();
38}
39// ----------------------------------------------------------------------------
40
41
ClassImp(CbmConverterManager)
Allows to access an MC event in the source file.
virtual ~CbmMCEventInfo()
Destructor.
std::string ToString() const
CbmMCEventInfo(int32_t fileId=-1, int32_t eventId=-1, double time=0.)
Constructor.