CbmRoot
|
Source class for reading from archived time slice data. More...
#include <CbmSourceTsArchive.h>
Public Member Functions | |
CbmSourceTsArchive (const char *fileName="") | |
Constructor. | |
CbmSourceTsArchive (std::vector< std::string > fileNames) | |
Constructor. | |
virtual | ~CbmSourceTsArchive () |
Destructor. | |
CbmSourceTsArchive (const CbmSourceTsArchive &)=delete | |
Copy constructor - not implemented. | |
CbmSourceTsArchive & | operator= (const CbmSourceTsArchive &)=delete |
Assignment operator - not implemented. | |
void | SetDebugPrintout (bool value=true) |
Set the Debug Printout Flag. | |
size_t | AddInputFile (const char *fileName) |
Add an input file. | |
virtual void | Close () |
Close source after end of run. | |
virtual Source_Type | GetSourceType () |
Source type. | |
CbmRecoUnpack * | GetRecoUnpack () |
Get the Reco Unpack Access the CbmRecoUnpack class to add unpacker configs. | |
virtual Bool_t | Init () |
Initialisation. | |
virtual Bool_t | InitUnpackers () |
Initialise unpackers (forced by base class) | |
Int_t | ReadEvent (UInt_t=0) |
Read one time slice from file. | |
virtual Bool_t | ReInitUnpackers () |
Re-Initialise unpackers (forced by base class) | |
virtual void | Reset () |
Reset clear the output vectors as preparation for the next timeslice. Forwarded to CbmRecoUnpack. | |
virtual void | SetParUnpackers () |
Set unpacker parameters (forced by base class) | |
void | SetSourceType (Source_Type type) |
Set the Source Type. | |
Bool_t | SpecifyRunId () |
Provide dummy implementation of this virtual function as not relevant in our case. | |
Private Attributes | |
bool | fDoDebugPrints = false |
Flag if extended debug output is to be printed or not. | |
std::vector< std::string > | fFileNames = {} |
Source_Type | fSourceType = Source_Type::kONLINE |
type of source that is currently used | |
fles::TimesliceSource * | fTsSource = nullptr |
ULong64_t | fTsCounter = 0 |
CbmRecoUnpack | fUnpack = {} |
Source class for reading from archived time slice data.
This class allows to read time-slice data from file(s) and hands them to the unpacking stage. It interfaces fles::TimesliceAutoSource to cbmroot.
Definition at line 26 of file CbmSourceTsArchive.h.
CbmSourceTsArchive::CbmSourceTsArchive | ( | 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 CbmSourceTsArchive.cxx.
References AddInputFile().
CbmSourceTsArchive::CbmSourceTsArchive | ( | 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.
Definition at line 23 of file CbmSourceTsArchive.cxx.
|
inlinevirtual |
|
delete |
Copy constructor - not implemented.
size_t CbmSourceTsArchive::AddInputFile | ( | const char * | fileName | ) |
Add an input file.
fileName | Input file name |
Definition at line 28 of file CbmSourceTsArchive.cxx.
References fFileNames.
Referenced by CbmSourceTsArchive().
|
virtual |
Close source after end of run.
Definition at line 38 of file CbmSourceTsArchive.cxx.
References CbmRecoUnpack::Finish(), and fUnpack.
|
inline |
Get the Reco Unpack Access the CbmRecoUnpack class to add unpacker configs.
Definition at line 86 of file CbmSourceTsArchive.h.
References fUnpack.
|
inlinevirtual |
Source type.
Definition at line 79 of file CbmSourceTsArchive.h.
References fSourceType.
|
virtual |
Initialisation.
Definition at line 47 of file CbmSourceTsArchive.cxx.
References fFileNames, fTsSource, fUnpack, and CbmRecoUnpack::Init().
|
inlinevirtual |
Initialise unpackers (forced by base class)
Definition at line 94 of file CbmSourceTsArchive.h.
|
delete |
Assignment operator - not implemented.
Int_t CbmSourceTsArchive::ReadEvent | ( | UInt_t | = 0 | ) |
Read one time slice from file.
Definition at line 69 of file CbmSourceTsArchive.cxx.
References fDoDebugPrints, fTsCounter, fTsSource, fUnpack, and CbmRecoUnpack::Unpack().
|
inlinevirtual |
Re-Initialise unpackers (forced by base class)
Definition at line 102 of file CbmSourceTsArchive.h.
|
inlinevirtual |
Reset clear the output vectors as preparation for the next timeslice. Forwarded to CbmRecoUnpack.
Definition at line 106 of file CbmSourceTsArchive.h.
References fUnpack, and CbmRecoUnpack::Reset().
|
inline |
Set the Debug Printout Flag.
value |
Definition at line 62 of file CbmSourceTsArchive.h.
References fDoDebugPrints.
|
inlinevirtual |
Set unpacker parameters (forced by base class)
Definition at line 109 of file CbmSourceTsArchive.h.
|
inline |
Set the Source Type.
type |
Definition at line 112 of file CbmSourceTsArchive.h.
References fSourceType.
|
inline |
Provide dummy implementation of this virtual function as not relevant in our case.
Definition at line 115 of file CbmSourceTsArchive.h.
|
private |
Flag if extended debug output is to be printed or not.
Definition at line 119 of file CbmSourceTsArchive.h.
Referenced by ReadEvent(), and SetDebugPrintout().
|
private |
List of input file names
Definition at line 122 of file CbmSourceTsArchive.h.
Referenced by AddInputFile(), and Init().
|
private |
type of source that is currently used
Definition at line 125 of file CbmSourceTsArchive.h.
Referenced by GetSourceType(), and SetSourceType().
|
private |
|
private |
Time-slice source interface
Definition at line 128 of file CbmSourceTsArchive.h.
Referenced by Init(), ReadEvent(), and ~CbmSourceTsArchive().
|
private |
Unpack steering class
Definition at line 134 of file CbmSourceTsArchive.h.
Referenced by Close(), GetRecoUnpack(), Init(), ReadEvent(), and Reset().