EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Attributes | List of all members
eudaq::Event Class Referenceabstract
Inheritance diagram for eudaq::Event:
eudaq::Serializable eudaq::DEPFETEvent eudaq::DetectorEvent eudaq::EUDRBEvent eudaq::RawDataEvent eudaq::StandardEvent eudaq::StringEvent eudaq::TLUEvent

Public Types

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
}
 

Public Member Functions

 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
 
EventSetTag (const std::string &name, const std::string &val)
 
template<typename T >
EventSetTag (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 >
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 Public Member Functions

static unsigned str2id (const std::string &idstr)
 
static std::string id2str (unsigned id)
 

Protected Types

typedef std::map< std::string,
std::string > 
map_t
 

Protected Attributes

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.
 

Member Function Documentation

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: