ROOTANA
Public Member Functions | Data Fields
TMEvent Class Reference

#include <midasio.h>

Collaboration diagram for TMEvent:
Collaboration graph
[legend]

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...
 
TMBankFindBank (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...
 
TMBankFindBank (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< TMBankbanks
 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...
 

Detailed Description

Definition at line 52 of file midasio.h.

Constructor & Destructor Documentation

◆ TMEvent() [1/4]

TMEvent::TMEvent ( )

Definition at line 683 of file midasio.cxx.

Here is the call graph for this function:

◆ TMEvent() [2/4]

TMEvent::TMEvent ( const void *  buf,
size_t  buf_size 
)

Definition at line 744 of file midasio.cxx.

Here is the call graph for this function:

◆ TMEvent() [3/4]

TMEvent::TMEvent ( )

◆ TMEvent() [4/4]

TMEvent::TMEvent ( const void *  buf,
size_t  buf_size 
)

Member Function Documentation

◆ AddBank() [1/2]

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddBank() [2/2]

void TMEvent::AddBank ( const char *  bank_name,
int  tid,
const char *  buf,
size_t  size 
)

add new MIDAS bank

◆ BankListToString() [1/2]

std::string TMEvent::BankListToString ( ) const

print the list of MIDAS banks

Definition at line 664 of file midasio.cxx.

◆ BankListToString() [2/2]

std::string TMEvent::BankListToString ( ) const

print the list of MIDAS banks

◆ BankToString() [1/2]

std::string TMEvent::BankToString ( const TMBank b) const

print definition of one MIDAS bank

Definition at line 675 of file midasio.cxx.

◆ BankToString() [2/2]

std::string TMEvent::BankToString ( const TMBank ) const

print definition of one MIDAS bank

◆ DumpHeader() [1/2]

void TMEvent::DumpHeader ( ) const

Definition at line 1141 of file midasio.cxx.

Here is the call graph for this function:

◆ DumpHeader() [2/2]

void TMEvent::DumpHeader ( ) const

◆ FindAllBanks() [1/2]

void TMEvent::FindAllBanks ( )

scan the MIDAS event, find all data banks

Definition at line 1089 of file midasio.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindAllBanks() [2/2]

void TMEvent::FindAllBanks ( )

scan the MIDAS event, find all data banks

◆ FindBank() [1/2]

TMBank * TMEvent::FindBank ( const char *  bank_name)

scan the MIDAS event

Definition at line 1048 of file midasio.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindBank() [2/2]

TMBank* TMEvent::FindBank ( const char *  bank_name)

scan the MIDAS event

◆ GetBankData() [1/4]

char * TMEvent::GetBankData ( const TMBank b)

get pointer to MIDAS data bank

Definition at line 1022 of file midasio.cxx.

Here is the caller graph for this function:

◆ GetBankData() [2/4]

char* TMEvent::GetBankData ( const TMBank )

get pointer to MIDAS data bank

◆ GetBankData() [3/4]

const char * TMEvent::GetBankData ( const TMBank b) const

get pointer to MIDAS data bank

Definition at line 1035 of file midasio.cxx.

◆ GetBankData() [4/4]

const char* TMEvent::GetBankData ( const TMBank ) const

get pointer to MIDAS data bank

◆ GetEventData() [1/4]

char * TMEvent::GetEventData ( )

get pointer to MIDAS event data

Definition at line 996 of file midasio.cxx.

◆ GetEventData() [2/4]

char* TMEvent::GetEventData ( )

get pointer to MIDAS event data

◆ GetEventData() [3/4]

const char * TMEvent::GetEventData ( ) const

get pointer to MIDAS event data

Definition at line 1009 of file midasio.cxx.

◆ GetEventData() [4/4]

const char* TMEvent::GetEventData ( ) const

get pointer to MIDAS event data

◆ HeaderToString() [1/2]

std::string TMEvent::HeaderToString ( ) const

print the MIDAS event header

Definition at line 656 of file midasio.cxx.

Here is the caller graph for this function:

◆ HeaderToString() [2/2]

std::string TMEvent::HeaderToString ( ) const

print the MIDAS event header

◆ Init() [1/2]

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 
)

Definition at line 780 of file midasio.cxx.

Here is the call graph for this function:

◆ Init() [2/2]

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 
)

◆ ParseEvent() [1/2]

void TMEvent::ParseEvent ( )

parse event data

Definition at line 708 of file midasio.cxx.

Here is the call graph for this function:

◆ ParseEvent() [2/2]

void TMEvent::ParseEvent ( )

parse event data

◆ ParseHeader() [1/2]

void TMEvent::ParseHeader ( const void *  buf,
size_t  buf_size 
)

parse event header

Definition at line 718 of file midasio.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ParseHeader() [2/2]

void TMEvent::ParseHeader ( const void *  buf,
size_t  buf_size 
)

parse event header

◆ PrintBanks() [1/2]

void TMEvent::PrintBanks ( int  level = 0)

Definition at line 1112 of file midasio.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PrintBanks() [2/2]

void TMEvent::PrintBanks ( int  level = 0)

◆ PrintHeader() [1/2]

void TMEvent::PrintHeader ( ) const

Definition at line 1099 of file midasio.cxx.

Here is the caller graph for this function:

◆ PrintHeader() [2/2]

void TMEvent::PrintHeader ( ) const

◆ Reset() [1/2]

void TMEvent::Reset ( )

reset everything

Definition at line 688 of file midasio.cxx.

Here is the caller graph for this function:

◆ Reset() [2/2]

void TMEvent::Reset ( )

reset everything

Field Documentation

◆ bank_header_flags

uint32_t TMEvent::bank_header_flags

flags from the MIDAS event bank header

Definition at line 64 of file midasio.h.

◆ bank_scan_position

size_t TMEvent::bank_scan_position

location where scan for MIDAS banks was last stopped

Definition at line 72 of file midasio.h.

◆ banks

std::vector< TMBank > TMEvent::banks

list of MIDAS banks, fill using FindAllBanks()

Definition at line 66 of file midasio.h.

◆ data

std::vector< char > TMEvent::data

MIDAS event bytes.

Definition at line 67 of file midasio.h.

◆ data_size

uint32_t TMEvent::data_size

MIDAS event data size.

Definition at line 61 of file midasio.h.

◆ error

bool TMEvent::error

event has an error - incomplete, truncated, inconsistent or corrupted

Definition at line 55 of file midasio.h.

◆ event_header_size

size_t TMEvent::event_header_size

size of MIDAS event header

Definition at line 63 of file midasio.h.

◆ event_id

uint16_t TMEvent::event_id

MIDAS event ID.

Definition at line 57 of file midasio.h.

◆ found_all_banks

bool TMEvent::found_all_banks

all the banks in the event data have been discovered

Definition at line 71 of file midasio.h.

◆ serial_number

uint32_t TMEvent::serial_number

MIDAS event serial number.

Definition at line 59 of file midasio.h.

◆ time_stamp

uint32_t TMEvent::time_stamp

MIDAS event time stamp (unix time in sec)

Definition at line 60 of file midasio.h.

◆ trigger_mask

uint16_t TMEvent::trigger_mask

MIDAS trigger mask.

Definition at line 58 of file midasio.h.


The documentation for this class was generated from the following files: