MIDAS
Loading...
Searching...
No Matches
EventStashEntry Struct Reference
Collaboration diagram for EventStashEntry:

Public Member Functions

 ~EventStashEntry ()
 
void ReplaceEvent (const EVENT_HEADER *xpevent)
 
void Print () const
 

Public Attributes

std::string buffer_name
 
int event_id = 0
 
int trigger_mask = 0
 
const EVENT_HEADERpevent = NULL
 

Detailed Description

Definition at line 3552 of file mjsonrpc.cxx.

Constructor & Destructor Documentation

◆ ~EventStashEntry()

EventStashEntry::~EventStashEntry ( )
inline

Definition at line 3559 of file mjsonrpc.cxx.

3560 {
3561 //Print(); printf(", dtor!\n");
3562 buffer_name.clear();
3563 event_id = 0;
3564 trigger_mask = 0;
3565 if (pevent)
3566 free((void*)pevent);
3567 pevent = NULL;
3568 }
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
Definition rmidas.h:24
std::string buffer_name
int event_id
const EVENT_HEADER * pevent
int trigger_mask
Here is the call graph for this function:

Member Function Documentation

◆ Print()

void EventStashEntry::Print ( ) const
inline

Definition at line 3579 of file mjsonrpc.cxx.

3580 {
3581 printf("EventStashEntry: %s,%d,0x%x,%p", buffer_name.c_str(), event_id, trigger_mask, pevent);
3582 if (pevent)
3583 printf(", size %d, serial %d, time %d, event_id %d, trigger_mask %x", pevent->data_size, pevent->serial_number, pevent->time_stamp, pevent->event_id, pevent->trigger_mask);
3584 }
short int event_id
Definition midas.h:852
DWORD data_size
Definition midas.h:856
DWORD serial_number
Definition midas.h:854
DWORD time_stamp
Definition midas.h:855
short int trigger_mask
Definition midas.h:853
Here is the call graph for this function:

◆ ReplaceEvent()

void EventStashEntry::ReplaceEvent ( const EVENT_HEADER xpevent)
inline

Definition at line 3570 of file mjsonrpc.cxx.

3571 {
3572 if (pevent) {
3573 free((void*)pevent);
3574 pevent = NULL;
3575 }
3577 }
static const EVENT_HEADER * CopyEvent(const EVENT_HEADER *pevent)
Here is the call graph for this function:

Member Data Documentation

◆ buffer_name

std::string EventStashEntry::buffer_name

Definition at line 3554 of file mjsonrpc.cxx.

◆ event_id

int EventStashEntry::event_id = 0

Definition at line 3555 of file mjsonrpc.cxx.

◆ pevent

const EVENT_HEADER* EventStashEntry::pevent = NULL

Definition at line 3557 of file mjsonrpc.cxx.

◆ trigger_mask

int EventStashEntry::trigger_mask = 0

Definition at line 3556 of file mjsonrpc.cxx.


The documentation for this struct was generated from the following file: