![]() |
MiniballSort
|
#include <MbsFormat.hh>
Public Member Functions | |
| MBS () | |
| ~MBS () | |
| void | OpenLmdFile (std::string _filename) |
| void | OpenMedFile (std::string _filename) |
| int | OpenEventServer (std::string _server, unsigned short _port) |
| void | CloseFile () |
| void | CloseEventServer () |
| void | SetBufferSize (unsigned int size) |
| UInt_t | GetNBuffers () const |
| UInt_t | GetBufferCount () |
| const UChar_t * | GetBuffer (UInt_t i) |
| const UChar_t * | GetNextBuffer () |
| const UChar_t * | GetBufferFromStream () |
| const MBSEvent * | GetNextLmdEvent () |
| const MBSEvent * | GetNextMedEvent () |
| const MBSEvent * | GetNextEventFromStream () |
| int | GetEventType () |
| bool | IsRunning () |
| bool | IsEof () |
| void | ConvertEventHeader () |
| void | ConvertSubEventHeader () |
| void | CheckSubEventType () |
| void | ConvertVmeHeader () |
| std::vector< short > | GetByteSwapShort (char *in, int count, int bo) |
| short | GetByteSwapShort (char *in, int bo) |
| std::vector< int > | GetByteSwapInt (char *in, int count, int bo) |
| int | GetByteSwapInt (char *in, int bo) |
| std::string | GetByteSwapString (char *in, int count, int bo) |
| void | ShowFileHeader () |
| void | ResetHitCount () |
Private Attributes | |
| std::string | filename |
| std::string | server |
| unsigned short | port |
| FILE * | fp |
| UInt_t | socket_id |
| Int_t | server_id |
| UInt_t | current_buffer |
| UInt_t | current_subevt |
| UInt_t | pos |
| MBSEvent | evt |
| s_filhe * | fh |
| s_bufhe * | bh |
| s_evhe * | eh |
| s_vehe * | vh |
| s_evhe * | sh |
| s_veshe * | vsh |
| UInt_t | used |
| int | evtsiz |
| long long | start_ts = 0 |
| long long | buf_ts |
| bool | running = false |
| bool | eof = false |
| unsigned int | trigger_id |
| MBSBufferElem * | current_btype = nullptr |
| MBSBufferElem * | current_etype = nullptr |
| MBSBufferElem * | current_stype = nullptr |
| MBSBufferElem * | current_trigger = nullptr |
| MBSBufferElem * | sevent_type_raw = nullptr |
| std::vector< MBSBufferElem > | buffer_types |
| std::vector< MBSBufferElem > | event_types |
| std::vector< MBSBufferElem > | sevent_types |
| std::vector< MBSBufferElem > | triggers |
| const UChar_t * | ptr |
| size_t | len |
| Int_t | elen |
| Int_t | slen |
| Int_t | vlen |
| UInt_t | etype |
| UInt_t | stype |
| Int_t | current |
| UInt_t | bufsize |
| UChar_t | byteorder |
| UChar_t | control |
| UChar_t | crateid |
| UShort_t | procid |
Definition at line 344 of file MbsFormat.hh.
| MBS::MBS | ( | ) |
Definition at line 4 of file MbsFormat.cc.
|
inline |
Definition at line 405 of file MbsFormat.hh.
| void MBS::CheckSubEventType | ( | ) |
Definition at line 553 of file MbsFormat.cc.
Referenced by GetNextMedEvent().
| void MBS::CloseEventServer | ( | ) |
Definition at line 219 of file MbsFormat.cc.
Referenced by monitor_run().
| void MBS::CloseFile | ( | ) |
Definition at line 172 of file MbsFormat.cc.
Referenced by MiniballMbsConverter::ConvertFile(), MiniballMedConverter::ConvertFile(), OpenLmdFile(), and OpenMedFile().
| void MBS::ConvertEventHeader | ( | ) |
Definition at line 543 of file MbsFormat.cc.
Referenced by GetNextMedEvent().
| void MBS::ConvertSubEventHeader | ( | ) |
Definition at line 569 of file MbsFormat.cc.
Referenced by GetNextMedEvent().
| void MBS::ConvertVmeHeader | ( | ) |
Definition at line 581 of file MbsFormat.cc.
Referenced by GetNextMedEvent().
| const UChar_t * MBS::GetBuffer | ( | UInt_t | i | ) |
Definition at line 508 of file MbsFormat.cc.
Referenced by GetNextBuffer(), and OpenLmdFile().
|
inline |
Definition at line 422 of file MbsFormat.hh.
Referenced by MiniballMbsConverter::ConvertFile(), and MiniballMedConverter::ConvertFile().
| const UChar_t * MBS::GetBufferFromStream | ( | ) |
Definition at line 225 of file MbsFormat.cc.
|
inline |
Definition at line 460 of file MbsFormat.hh.
| std::vector< int > MBS::GetByteSwapInt | ( | char * | in, |
| int | count, | ||
| int | bo ) |
Definition at line 629 of file MbsFormat.cc.
Referenced by ConvertEventHeader(), ConvertSubEventHeader(), ConvertVmeHeader(), GetByteSwapInt(), and GetNextMedEvent().
|
inline |
Definition at line 455 of file MbsFormat.hh.
| std::vector< short > MBS::GetByteSwapShort | ( | char * | in, |
| int | count, | ||
| int | bo ) |
Definition at line 595 of file MbsFormat.cc.
Referenced by CheckSubEventType(), ConvertEventHeader(), ConvertSubEventHeader(), ConvertVmeHeader(), GetByteSwapShort(), and GetNextMedEvent().
| std::string MBS::GetByteSwapString | ( | char * | in, |
| int | count, | ||
| int | bo ) |
Definition at line 696 of file MbsFormat.cc.
|
inline |
Definition at line 443 of file MbsFormat.hh.
|
inline |
Definition at line 417 of file MbsFormat.hh.
Referenced by GetNextMedEvent().
|
inline |
Definition at line 428 of file MbsFormat.hh.
Referenced by GetNextLmdEvent().
| const MBSEvent * MBS::GetNextEventFromStream | ( | ) |
Definition at line 495 of file MbsFormat.cc.
Referenced by monitor_run().
| const MBSEvent * MBS::GetNextLmdEvent | ( | ) |
Definition at line 235 of file MbsFormat.cc.
Referenced by MiniballMbsConverter::ConvertFile().
| const MBSEvent * MBS::GetNextMedEvent | ( | ) |
Definition at line 300 of file MbsFormat.cc.
Referenced by MiniballMedConverter::ConvertFile().
|
inline |
Definition at line 447 of file MbsFormat.hh.
Referenced by MiniballMedConverter::ConvertFile().
|
inline |
Definition at line 446 of file MbsFormat.hh.
Referenced by MiniballMedConverter::ConvertFile().
| int MBS::OpenEventServer | ( | std::string | _server, |
| unsigned short | _port ) |
Definition at line 181 of file MbsFormat.cc.
Referenced by monitor_run().
| void MBS::OpenLmdFile | ( | std::string | _filename | ) |
Definition at line 72 of file MbsFormat.cc.
Referenced by MiniballMbsConverter::ConvertFile().
| void MBS::OpenMedFile | ( | std::string | _filename | ) |
Definition at line 113 of file MbsFormat.cc.
Referenced by MiniballMedConverter::ConvertFile().
|
inline |
Definition at line 473 of file MbsFormat.hh.
Referenced by OpenMedFile().
|
inline |
Definition at line 414 of file MbsFormat.hh.
Referenced by MiniballMbsConverter::ConvertFile(), and MiniballMedConverter::ConvertFile().
|
inline |
Definition at line 466 of file MbsFormat.hh.
|
private |
Definition at line 359 of file MbsFormat.hh.
Referenced by GetBuffer().
|
private |
Definition at line 367 of file MbsFormat.hh.
Referenced by GetBuffer().
|
private |
Definition at line 380 of file MbsFormat.hh.
Referenced by GetBuffer(), MBS(), and ResetHitCount().
|
private |
Definition at line 393 of file MbsFormat.hh.
Referenced by GetBuffer(), GetBufferFromStream(), GetNBuffers(), GetNextLmdEvent(), MBS(), OpenMedFile(), and SetBufferSize().
|
private |
Definition at line 394 of file MbsFormat.hh.
Referenced by CheckSubEventType(), ConvertEventHeader(), ConvertSubEventHeader(), ConvertVmeHeader(), GetNextMedEvent(), and OpenMedFile().
|
private |
Definition at line 395 of file MbsFormat.hh.
Referenced by ConvertSubEventHeader(), and GetNextMedEvent().
|
private |
Definition at line 396 of file MbsFormat.hh.
Referenced by ConvertSubEventHeader(), and GetNextMedEvent().
|
private |
Definition at line 392 of file MbsFormat.hh.
Referenced by MBS().
|
private |
Definition at line 373 of file MbsFormat.hh.
Referenced by GetBuffer().
|
private |
Definition at line 354 of file MbsFormat.hh.
Referenced by GetBuffer(), GetBufferCount(), GetNextBuffer(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 374 of file MbsFormat.hh.
Referenced by GetEventType(), and GetNextMedEvent().
|
private |
Definition at line 375 of file MbsFormat.hh.
Referenced by CheckSubEventType(), and GetNextMedEvent().
|
private |
Definition at line 355 of file MbsFormat.hh.
Referenced by GetNextMedEvent().
|
private |
Definition at line 376 of file MbsFormat.hh.
Referenced by GetNextMedEvent().
|
private |
Definition at line 360 of file MbsFormat.hh.
Referenced by ConvertEventHeader(), and GetNextMedEvent().
|
private |
Definition at line 387 of file MbsFormat.hh.
Referenced by ConvertEventHeader(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 369 of file MbsFormat.hh.
Referenced by GetNextMedEvent(), and IsEof().
|
private |
Definition at line 390 of file MbsFormat.hh.
Referenced by ConvertEventHeader(), and GetNextMedEvent().
|
private |
Definition at line 381 of file MbsFormat.hh.
Referenced by GetNextMedEvent(), MBS(), and ResetHitCount().
|
private |
Definition at line 357 of file MbsFormat.hh.
Referenced by ConvertVmeHeader(), GetNextEventFromStream(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 365 of file MbsFormat.hh.
Referenced by GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 358 of file MbsFormat.hh.
Referenced by OpenLmdFile(), and ShowFileHeader().
|
private |
Definition at line 348 of file MbsFormat.hh.
Referenced by OpenLmdFile(), and OpenMedFile().
|
private |
Definition at line 351 of file MbsFormat.hh.
Referenced by CloseFile(), MBS(), OpenLmdFile(), OpenMedFile(), and ShowFileHeader().
|
private |
Definition at line 386 of file MbsFormat.hh.
Referenced by GetBuffer(), GetNBuffers(), GetNextLmdEvent(), GetNextMedEvent(), MBS(), OpenLmdFile(), and OpenMedFile().
|
private |
Definition at line 350 of file MbsFormat.hh.
Referenced by OpenEventServer().
|
private |
Definition at line 356 of file MbsFormat.hh.
Referenced by GetBuffer(), GetNextLmdEvent(), GetNextMedEvent(), and OpenMedFile().
|
private |
Definition at line 397 of file MbsFormat.hh.
Referenced by ConvertSubEventHeader(), and GetNextMedEvent().
|
private |
Definition at line 385 of file MbsFormat.hh.
Referenced by GetBuffer(), GetBufferFromStream(), GetNextLmdEvent(), GetNextMedEvent(), MBS(), OpenLmdFile(), OpenMedFile(), and ShowFileHeader().
|
private |
Definition at line 368 of file MbsFormat.hh.
Referenced by GetNextMedEvent(), and IsRunning().
|
private |
Definition at line 349 of file MbsFormat.hh.
Referenced by OpenEventServer().
|
private |
Definition at line 353 of file MbsFormat.hh.
Referenced by CloseEventServer(), and OpenEventServer().
|
private |
Definition at line 377 of file MbsFormat.hh.
Referenced by OpenMedFile().
|
private |
Definition at line 382 of file MbsFormat.hh.
Referenced by CheckSubEventType(), MBS(), OpenMedFile(), and ResetHitCount().
|
private |
Definition at line 362 of file MbsFormat.hh.
Referenced by CheckSubEventType(), and GetNextMedEvent().
|
private |
Definition at line 388 of file MbsFormat.hh.
Referenced by ConvertSubEventHeader(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 352 of file MbsFormat.hh.
Referenced by GetBufferFromStream(), and OpenEventServer().
|
private |
Definition at line 366 of file MbsFormat.hh.
Referenced by GetBuffer().
|
private |
Definition at line 391 of file MbsFormat.hh.
Referenced by CheckSubEventType(), and GetNextMedEvent().
|
private |
Definition at line 370 of file MbsFormat.hh.
Referenced by ConvertVmeHeader(), and GetNextMedEvent().
|
private |
Definition at line 383 of file MbsFormat.hh.
Referenced by GetNextMedEvent(), MBS(), and ResetHitCount().
|
private |
Definition at line 364 of file MbsFormat.hh.
Referenced by GetBuffer(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 361 of file MbsFormat.hh.
Referenced by ConvertVmeHeader(), GetNextLmdEvent(), and GetNextMedEvent().
|
private |
Definition at line 389 of file MbsFormat.hh.
Referenced by ConvertVmeHeader().
|
private |
Definition at line 363 of file MbsFormat.hh.
Referenced by ConvertSubEventHeader(), and GetNextMedEvent().