|
enum | Flags {
FLAG_BORE = 1,
FLAG_EORE = 2,
FLAG_HITS = 4,
FLAG_FAKE = 8,
FLAG_SIMU = 16,
FLAG_EUDAQ2 = 32,
FLAG_PACKET = 64,
FLAG_BROKEN = 128,
FLAG_STATUS = 256,
FLAG_ALL = (unsigned)-1
} |
|
|
| Event (unsigned run, unsigned event, uint64_t timestamp=NOTIMESTAMP, unsigned flags=0) |
|
| Event (Deserializer &ds) |
|
virtual void | Serialize (Serializer &) const =0 |
|
unsigned | GetRunNumber () const |
|
unsigned | GetEventNumber () const |
|
uint64_t | GetTimestamp () const |
|
virtual std::string | GetSubType () const |
|
virtual void | Print (std::ostream &os) const =0 |
|
bool | HasTag (const std::string &name) const |
|
std::vector< std::string > | GetTagList (const std::string &prefix) const |
|
Event & | SetTag (const std::string &name, const std::string &val) |
|
template<typename T > |
Event & | SetTag (const std::string &name, const T &val) |
|
std::string | GetTag (const std::string &name, const std::string &def="") const |
|
std::string | GetTag (const std::string &name, const char *def) const |
|
template<typename T > |
T | GetTag (const std::string &name, T def) const |
|
bool | IsBORE () const |
|
bool | IsEORE () const |
|
bool | HasHits () const |
|
bool | IsFake () const |
|
bool | IsSimulation () const |
|
unsigned | GetFlags (unsigned f=FLAG_ALL) const |
|
void | SetFlags (unsigned f) |
|
void | SetTimeStampToNow () |
|
void | setTimeStamp (uint64_t timeStamp) |
|
void | ClearFlags (unsigned f=FLAG_ALL) |
|
virtual unsigned | get_id () const =0 |
|
|
static unsigned | str2id (const std::string &idstr) |
|
static std::string | id2str (unsigned id) |
|
|
typedef std::map< std::string,
std::string > | map_t |
|
|
unsigned | m_flags |
|
unsigned | m_runnumber |
|
unsigned | m_eventnumber |
|
uint64_t | m_timestamp |
|
map_t | m_tags |
| Metadata tags in (name=value) pairs of strings.
|
|
virtual std::string eudaq::Event::GetSubType |
( |
| ) |
const |
|
inlinevirtual |
Returns the type string of the event implementation. Used by the plugin mechanism to identfy the event type.
Reimplemented in eudaq::RawDataEvent.
The documentation for this class was generated from the following files:
- main/include/eudaq/Event.hh
- main/lib/src/Event.cc