CbmRoot
|
Source class for reading from archived time slice data. More...
#include <CbmSourceTs.h>
Public Member Functions | |
CbmSourceTs (const char *fileName="") | |
Constructor. | |
CbmSourceTs (std::vector< std::string > fileNames) | |
Constructor. | |
virtual | ~CbmSourceTs () |
Destructor. | |
CbmSourceTs (const CbmSourceTs &)=delete | |
Copy constructor - not implemented. | |
CbmSourceTs & | operator= (const CbmSourceTs &)=delete |
Assignment operator - not implemented. | |
size_t | AddInputFile (const char *fileName) |
Add an input file. | |
virtual void | Close () |
Demanded by base class. | |
size_t | GetNumTs () const |
Number of processed timeslices. | |
virtual Source_Type | GetSourceType () |
Demanded by base class. | |
fles::Timeslice * | GetTimeslice () |
Pointer to current FLES timeslice. | |
virtual Bool_t | Init () |
Initialisation. | |
virtual Bool_t | InitUnpackers () |
Demanded by base class. | |
virtual Int_t | ReadEvent (UInt_t=0) |
Read one time slice from file. | |
virtual Bool_t | ReInitUnpackers () |
Demanded by base class. | |
virtual void | Reset () |
Demanded by base class. | |
virtual void | SetParUnpackers () |
Demanded by base class. | |
virtual Bool_t | SpecifyRunId () |
Demanded by base class. | |
Private Attributes | |
std::vector< std::string > | fFileNames = {} |
fles::TimesliceSource * | fFlesSource = nullptr |
std::unique_ptr< fles::Timeslice > | fFlesTs = nullptr |
size_t | fNumCalls = 0 |
Source class for reading from archived time slice data.
This class allows to read time-slice data from file(s). It interfaces fles::TimesliceAutoSource to cbmroot.
Definition at line 26 of file CbmSourceTs.h.
CbmSourceTs::CbmSourceTs | ( | const char * | fileName = "" | ) |
Constructor.
fileName | Name of (single) input file. |
More input files can be added by the method AddInputFile.
Definition at line 19 of file CbmSourceTs.cxx.
References AddInputFile().
CbmSourceTs::CbmSourceTs | ( | std::vector< std::string > | fileNames | ) |
Constructor.
fileName | Vector with name(s) of input file(s). |
More input files can be added by the method AddInputFile.
|
inlinevirtual |
Destructor.
Definition at line 45 of file CbmSourceTs.h.
|
delete |
Copy constructor - not implemented.
size_t CbmSourceTs::AddInputFile | ( | const char * | fileName | ) |
Add an input file.
fileName | Input file name |
Definition at line 28 of file CbmSourceTs.cxx.
References fFileNames.
Referenced by CbmSourceTs().
|
virtual |
Demanded by base class.
Definition at line 38 of file CbmSourceTs.cxx.
|
inline |
Number of processed timeslices.
The first call to ReadEvent is in Init, so not timeslice is processed.
Definition at line 72 of file CbmSourceTs.h.
References fNumCalls.
Referenced by ReadEvent().
|
inlinevirtual |
Demanded by base class.
Definition at line 76 of file CbmSourceTs.h.
|
inline |
Pointer to current FLES timeslice.
Definition at line 81 of file CbmSourceTs.h.
References fFlesTs.
Referenced by CbmTaskUnpack::Exec().
|
virtual |
Initialisation.
Definition at line 43 of file CbmSourceTs.cxx.
References fFileNames, and fFlesSource.
|
inlinevirtual |
Demanded by base class.
Definition at line 89 of file CbmSourceTs.h.
|
delete |
Assignment operator - not implemented.
|
virtual |
Read one time slice from file.
Definition at line 53 of file CbmSourceTs.cxx.
References fFlesSource, fFlesTs, fNumCalls, and GetNumTs().
|
inlinevirtual |
Demanded by base class.
Definition at line 97 of file CbmSourceTs.h.
|
inlinevirtual |
Demanded by base class.
Definition at line 101 of file CbmSourceTs.h.
|
inlinevirtual |
Demanded by base class.
Definition at line 105 of file CbmSourceTs.h.
|
inlinevirtual |
Demanded by base class.
Definition at line 109 of file CbmSourceTs.h.
|
private |
List of input file names
Definition at line 114 of file CbmSourceTs.h.
Referenced by AddInputFile(), and Init().
|
private |
|
private |
Pointer to current time slice
Definition at line 120 of file CbmSourceTs.h.
Referenced by GetTimeslice(), and ReadEvent().
|
private |
ReadEvent call counter
Definition at line 123 of file CbmSourceTs.h.
Referenced by GetNumTs(), and ReadEvent().