fire v0.19.0
Framework for sImulation and Reconstruction of Events
|
Identification for a specific event object. More...
#include <Event.h>
Public Member Functions | |
EventObjectTag (const std::string &name, const std::string &pass, const std::string &type, int vers, bool keep) | |
Wrap the three pieces of information in our class. More... | |
const std::string & | name () const |
Get the object name. More... | |
const std::string & | pass () const |
Get the pass name the object was produced on. More... | |
const std::string & | type () const |
Get the name of the type of the object. More... | |
int | version () const |
Get the version number of the type of this object. More... | |
const bool | keep () const |
Get if this object will be kept (i.e. More... | |
const bool | loaded () const |
Get if this object is currently loaded in memory. More... | |
bool | match (const std::regex &name, const std::regex &pass, const std::regex &type) const |
Checks if we match the passed regex for name, pass, and type. | |
Private Attributes | |
std::string | name_ |
Name given to the object. | |
std::string | pass_ |
Pass name given when object was generated. | |
std::string | type_ |
Type name of the object. | |
int | version_ |
The version of the type. | |
bool | keep_ |
If the object represented by this tag should be kept. More... | |
bool | loaded_ {false} |
If the object represented by this tag has been loaded into a memory object. More... | |
Friends | |
class | Event |
friends with our parent class Event so that it can modify our members after-the-fact More... | |
std::ostream & | operator<< (std::ostream &os, const EventObjectTag &t) |
String method for printing this tag in a helpful manner. | |
Identification for a specific event object.
Each event object can be uniquely identified with three pieces of information:
In fact, this information overcontrains the list of objects because two objects in the same pass are not allowed to have the same name and two objects of the same name are not allowed to have different types.
|
inline |
Wrap the three pieces of information in our class.
name | name of event object |
pass | pass name |
type | name of type |
keep | if we should write this object into the output file |
|
inline |
Get if this object will be kept (i.e.
written to the output file)
|
inline |
Get if this object is currently loaded in memory.
|
inline |
Get the object name.
|
inline |
Get the pass name the object was produced on.
|
inline |
Get the name of the type of the object.
|
inline |
Get the version number of the type of this object.
|
friend |
friends with our parent class Event so that it can modify our members after-the-fact
(mainly so that we can change the loaded_ boolean when an object transitions from being available to being in-memory)
|
private |
If the object represented by this tag should be kept.
kept means written to output file
|
mutableprivate |
If the object represented by this tag has been loaded into a memory object.
We need to be mutable so that we can be changed during Event::get which is a const member function.