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 680 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 741 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 822 of file midasio.cxx.

Here is the call 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 662 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 673 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 1134 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 1082 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 1041 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 1015 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 1028 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 989 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 1002 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 655 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 777 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 705 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 715 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 1105 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 1092 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 685 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: