7#include <TimesliceAutoSource.hpp>
30 string sFile(fileName);
45 LOG(info) <<
"SourceTs: Creating TimesliceSource with " <<
fFileNames.size() <<
" input files.";
60 LOG(info) <<
"SourceTs: Init call to ReadEvent";
63 else if (tsIndex > 0 && tsIndex <
fNumCalls - 1) {
64 LOG(error) <<
"SourceTs: Out-of-sequence reading of timeslices not supported.";
72 LOG(info) <<
"SourceTs: End of archive reached; stopping run.";
76 LOG(info) <<
"SourceTs: Reading time slice " <<
GetNumTs() <<
" (index " <<
fFlesTs->index()
77 <<
") at t = " <<
fFlesTs->start_time() <<
" ns";
80 LOG(info) <<
"SourceTs: Skipping time slice " <<
GetNumTs() <<
" (index " <<
fFlesTs->index()
81 <<
") at t = " <<
fFlesTs->start_time() <<
" ns";
82 LOG(info) <<
"(TS is still fetched from disk, this may take some time)";
ClassImp(CbmConverterManager)
Source class for reading from archived time slice data.
virtual Bool_t Init()
Initialisation.
virtual void Close()
Demanded by base class.
CbmSourceTs(const char *fileName="")
Constructor.
size_t AddInputFile(const char *fileName)
Add an input file.
std::unique_ptr< fles::Timeslice > fFlesTs
fles::TimesliceSource * fFlesSource
std::vector< std::string > fFileNames
virtual Int_t ReadEvent(UInt_t=0)
Read one time slice from file.
size_t GetNumTs() const
Number of processed timeslices.