ROOTANA
|
#include <midasio.h>
Public Member Functions | |
TMEvent () | |
TMEvent (const void *buf, size_t buf_size) | |
void | Reset () |
reset everything | |
void | ParseEvent () |
parse event data | |
void | ParseHeader (const void *buf, size_t buf_size) |
parse event header | |
void | Init (uint16_t event_id, uint16_t trigger_mask=0, uint32_t serial_number=0, uint32_t time_stamp=0, size_t capacity=0) |
void | FindAllBanks () |
scan the MIDAS event, find all data banks | |
TMBank * | FindBank (const char *bank_name) |
scan the MIDAS event | |
char * | GetEventData () |
get pointer to MIDAS event data | |
const char * | GetEventData () const |
get pointer to MIDAS event data | |
char * | GetBankData (const TMBank *) |
get pointer to MIDAS data bank | |
const char * | GetBankData (const TMBank *) const |
get pointer to MIDAS data bank | |
void | AddBank (const char *bank_name, int tid, const char *buf, size_t size) |
add new MIDAS bank | |
std::string | HeaderToString () const |
print the MIDAS event header | |
std::string | BankListToString () const |
print the list of MIDAS banks | |
std::string | BankToString (const TMBank *) const |
print definition of one MIDAS bank | |
void | PrintHeader () const |
void | PrintBanks (int level=0) |
void | DumpHeader () const |
TMEvent () | |
TMEvent (const void *buf, size_t buf_size) | |
void | Reset () |
reset everything | |
void | ParseEvent () |
parse event data | |
void | ParseHeader (const void *buf, size_t buf_size) |
parse event header | |
void | Init (uint16_t event_id, uint16_t trigger_mask=0, uint32_t serial_number=0, uint32_t time_stamp=0, size_t capacity=0) |
void | FindAllBanks () |
scan the MIDAS event, find all data banks | |
TMBank * | FindBank (const char *bank_name) |
scan the MIDAS event | |
char * | GetEventData () |
get pointer to MIDAS event data | |
const char * | GetEventData () const |
get pointer to MIDAS event data | |
char * | GetBankData (const TMBank *) |
get pointer to MIDAS data bank | |
const char * | GetBankData (const TMBank *) const |
get pointer to MIDAS data bank | |
void | AddBank (const char *bank_name, int tid, const char *buf, size_t size) |
add new MIDAS bank | |
std::string | HeaderToString () const |
print the MIDAS event header | |
std::string | BankListToString () const |
print the list of MIDAS banks | |
std::string | BankToString (const TMBank *) const |
print definition of one MIDAS bank | |
void | PrintHeader () const |
void | PrintBanks (int level=0) |
void | DumpHeader () const |
Data Fields | |
bool | error |
event has an error - incomplete, truncated, inconsistent or corrupted | |
uint16_t | event_id |
MIDAS event ID. | |
uint16_t | trigger_mask |
MIDAS trigger mask. | |
uint32_t | serial_number |
MIDAS event serial number. | |
uint32_t | time_stamp |
MIDAS event time stamp (unix time in sec) | |
uint32_t | data_size |
MIDAS event data size. | |
size_t | event_header_size |
size of MIDAS event header | |
uint32_t | bank_header_flags |
flags from the MIDAS event bank header | |
std::vector< TMBank > | banks |
list of MIDAS banks, fill using FindAllBanks() | |
std::vector< char > | data |
MIDAS event bytes. | |
bool | found_all_banks |
all the banks in the event data have been discovered | |
size_t | bank_scan_position |
location where scan for MIDAS banks was last stopped | |
TMEvent::TMEvent | ( | ) |
TMEvent::TMEvent | ( | const void * | buf, |
size_t | buf_size | ||
) |
TMEvent::TMEvent | ( | ) |
TMEvent::TMEvent | ( | const void * | buf, |
size_t | buf_size | ||
) |
void TMEvent::AddBank | ( | const char * | bank_name, |
int | tid, | ||
const char * | buf, | ||
size_t | size | ||
) |
add new MIDAS bank
Definition at line 825 of file midasio.cxx.
void TMEvent::AddBank | ( | const char * | bank_name, |
int | tid, | ||
const char * | buf, | ||
size_t | size | ||
) |
add new MIDAS bank
std::string TMEvent::BankListToString | ( | ) | const |
print the list of MIDAS banks
Definition at line 664 of file midasio.cxx.
std::string TMEvent::BankListToString | ( | ) | const |
print the list of MIDAS banks
std::string TMEvent::BankToString | ( | const TMBank * | b | ) | const |
print definition of one MIDAS bank
Definition at line 675 of file midasio.cxx.
std::string TMEvent::BankToString | ( | const TMBank * | ) | const |
print definition of one MIDAS bank
void TMEvent::DumpHeader | ( | ) | const |
void TMEvent::DumpHeader | ( | ) | const |
void TMEvent::FindAllBanks | ( | ) |
scan the MIDAS event, find all data banks
Definition at line 1089 of file midasio.cxx.
void TMEvent::FindAllBanks | ( | ) |
scan the MIDAS event, find all data banks
TMBank * TMEvent::FindBank | ( | const char * | bank_name | ) |
scan the MIDAS event
Definition at line 1048 of file midasio.cxx.
TMBank * TMEvent::FindBank | ( | const char * | bank_name | ) |
scan the MIDAS event
char * TMEvent::GetBankData | ( | const TMBank * | b | ) |
get pointer to MIDAS data bank
Definition at line 1022 of file midasio.cxx.
char * TMEvent::GetBankData | ( | const TMBank * | ) |
get pointer to MIDAS data bank
const char * TMEvent::GetBankData | ( | const TMBank * | b | ) | const |
get pointer to MIDAS data bank
Definition at line 1035 of file midasio.cxx.
const char * TMEvent::GetBankData | ( | const TMBank * | ) | const |
get pointer to MIDAS data bank
char * TMEvent::GetEventData | ( | ) |
get pointer to MIDAS event data
Definition at line 996 of file midasio.cxx.
char * TMEvent::GetEventData | ( | ) |
get pointer to MIDAS event data
const char * TMEvent::GetEventData | ( | ) | const |
get pointer to MIDAS event data
Definition at line 1009 of file midasio.cxx.
const char * TMEvent::GetEventData | ( | ) | const |
get pointer to MIDAS event data
std::string TMEvent::HeaderToString | ( | ) | const |
print the MIDAS event header
Definition at line 656 of file midasio.cxx.
std::string TMEvent::HeaderToString | ( | ) | const |
print the MIDAS event header
void TMEvent::Init | ( | uint16_t | event_id, |
uint16_t | trigger_mask = 0 , |
||
uint32_t | serial_number = 0 , |
||
uint32_t | time_stamp = 0 , |
||
size_t | capacity = 0 |
||
) |
void TMEvent::Init | ( | uint16_t | event_id, |
uint16_t | trigger_mask = 0 , |
||
uint32_t | serial_number = 0 , |
||
uint32_t | time_stamp = 0 , |
||
size_t | capacity = 0 |
||
) |
void TMEvent::ParseEvent | ( | ) |
parse event data
Definition at line 708 of file midasio.cxx.
void TMEvent::ParseEvent | ( | ) |
parse event data
void TMEvent::ParseHeader | ( | const void * | buf, |
size_t | buf_size | ||
) |
parse event header
Definition at line 718 of file midasio.cxx.
void TMEvent::ParseHeader | ( | const void * | buf, |
size_t | buf_size | ||
) |
parse event header
void TMEvent::PrintBanks | ( | int | level = 0 | ) |
Definition at line 1112 of file midasio.cxx.
void TMEvent::PrintBanks | ( | int | level = 0 | ) |
void TMEvent::PrintHeader | ( | ) | const |
void TMEvent::PrintHeader | ( | ) | const |
void TMEvent::Reset | ( | ) |
reset everything
Definition at line 688 of file midasio.cxx.
void TMEvent::Reset | ( | ) |
reset everything
uint32_t TMEvent::bank_header_flags |
size_t TMEvent::bank_scan_position |
std::vector< TMBank > TMEvent::banks |
list of MIDAS banks, fill using FindAllBanks()
bool TMEvent::error |
size_t TMEvent::event_header_size |
bool TMEvent::found_all_banks |
uint32_t TMEvent::time_stamp |