fire v0.19.0
Framework for sImulation and Reconstruction of Events
fire::Event::EventObject Struct Reference

structure to hold event data in memory More...

Public Member Functions

template<typename DataType >
io::Data< DataType > & getDataRef ()
 Helper for getting a reference to the dataset. More...
 
void clear ()
 Clear the event object at the end of an event. More...
 

Public Attributes

std::unique_ptr< io::BaseDatadata_
 the data for save/load
 
bool should_save_
 should we save the data into output file?
 
bool should_load_
 should we load the data from the input file?
 
bool updated_
 have we been updated on the current event?
 

Detailed Description

structure to hold event data in memory

Member Function Documentation

◆ clear()

void fire::Event::EventObject::clear ( )
inline

Clear the event object at the end of an event.

We reset the flag saying if this object has been updated by a processor and call the set's clear.

◆ getDataRef()

template<typename DataType >
io::Data< DataType > & fire::Event::EventObject::getDataRef ( )
inline

Helper for getting a reference to the dataset.

Exceptions
bad_castif DataSet does not hold the same type

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