|
stream
0.10.0
stream analysis framework
|
Custom user source to read files formats supported by stream framework. More...
#include <TUserSource.h>
Public Member Functions | |
| TUserSource () | |
| constructor | |
| TUserSource (const char *name, const char *args, Int_t port) | |
| Create source specifying values directly. More... | |
| TUserSource (TGo4UserSourceParameter *par) | |
| Create source from setup within usersource parameter object. More... | |
| virtual | ~TUserSource () |
| destructor | |
| virtual Bool_t | CheckEventClass (TClass *cl) |
| This method checks if event class is suited for the source. More... | |
| virtual Bool_t | BuildEvent (TGo4EventElement *dest) |
| This methods actually fills the target event class which is passed as pointer. More... | |
| virtual Bool_t | BuildDatEvent (TGo4MbsEvent *dest) |
| build dat event | |
| const char * | GetArgs () const |
| get args | |
| void | SetArgs (const char *arg) |
| set args | |
| Int_t | GetPort () const |
| get port | |
| void | SetPort (Int_t val) |
| set port | |
Protected Member Functions | |
| Bool_t | OpenNextFile () |
| open next file More... | |
| Int_t | Open () |
| Open the file or connection. More... | |
Protected Attributes | |
| TString | fxArgs |
| Optional argument string. | |
| Int_t | fiPort |
| Optional port number | |
| TList * | fNames |
| list of all files names | |
| Bool_t | fIsHLD |
| indicates if HLD file will be read | |
| hadaq::HldFile | fxFile |
| current HLD file | |
| Char_t * | fxBuffer |
| working buffer | |
| FILE * | fxDatFile |
| current DAT file | |
| Int_t | fEventCounter |
| event counter | |
Custom user source to read files formats supported by stream framework.
| TUserSource::TUserSource | ( | const char * | name, |
| const char * | args, | ||
| Int_t | port | ||
| ) |
Create source specifying values directly.
constructor
| TUserSource::TUserSource | ( | TGo4UserSourceParameter * | par | ) |
Create source from setup within usersource parameter object.
constructor
|
virtual |
This methods actually fills the target event class which is passed as pointer.
build event
Uses the latest event which is referenced by fxEvent or fxBuffer. Does not fetch a new event from source, therefore one source event may be used to fill several TTrbEvent classes. To get a new event call NextEvent() before this method.
|
virtual |
This method checks if event class is suited for the source.
check event class
|
protected |
Open the file or connection.
open file
|
protected |
open next file
<! Open connection/file