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