1 #ifndef BASE_SUBEVENT_H
2 #define BASE_SUBEVENT_H
35 template<
class MsgClass>
90 template<
class MsgClass>
Extended message - any message plus global time stamp.
Definition: base/SubEvent.h:36
MessageExt & operator=(const MessageExt &src)
assign operator
Definition: base/SubEvent.h:66
const MsgClass & msg() const
message
Definition: base/SubEvent.h:81
MessageExt()
default constructor
Definition: base/SubEvent.h:45
double fGlobalTime
full time stamp without correction
Definition: base/SubEvent.h:40
MessageExt(const MsgClass &_msg, double globaltm)
constructor
Definition: base/SubEvent.h:52
MessageExt(const MessageExt &src)
copy constructor
Definition: base/SubEvent.h:59
double GetGlobalTime() const
global time stamp
Definition: base/SubEvent.h:84
~MessageExt()
destructor
Definition: base/SubEvent.h:74
bool operator<(const MessageExt &rhs) const
this is used for timesorting the messages in the filled vectors
Definition: base/SubEvent.h:77
MsgClass fMessage
original roc message
Definition: base/SubEvent.h:38
Subevent with vector of extended messages.
Definition: base/SubEvent.h:91
std::vector< MsgClass > * vect_ptr()
Returns pointer on vector with messages, used in the store.
Definition: base/SubEvent.h:119
virtual void Sort()
Do time sorting of messages.
Definition: base/SubEvent.h:128
unsigned Size() const
Returns number of messages.
Definition: base/SubEvent.h:107
~SubEventEx()
destructor
Definition: base/SubEvent.h:101
MsgClass & msg(unsigned indx)
Returns message with specified index.
Definition: base/SubEvent.h:116
virtual unsigned Multiplicity() const
Returns subevent multiplicity
Definition: base/SubEvent.h:122
void AddMsg(const MsgClass &_msg)
Add new message to sub-event.
Definition: base/SubEvent.h:104
std::vector< MsgClass > fExtMessages
vector of extended messages
Definition: base/SubEvent.h:93
SubEventEx(unsigned capacity=0)
constructor
Definition: base/SubEvent.h:98
virtual void Clear()
Clear subevent - remove all messages.
Definition: base/SubEvent.h:125
unsigned Capacity() const
Returns capacity of the message container.
Definition: base/SubEvent.h:110
void SetCapacity(unsigned sz)
Change capacity of the container.
Definition: base/SubEvent.h:113
SubEvent - base class for all event structures Need for: virtual destructor - to be able delete any i...
Definition: base/SubEvent.h:14
virtual unsigned Multiplicity() const
Method returns event multiplicity - that ever it means.
Definition: base/SubEvent.h:29
virtual ~SubEvent()
destructor
Definition: base/SubEvent.h:20
virtual void Clear()
clear sub event
Definition: base/SubEvent.h:23
SubEvent()
default constructor
Definition: base/SubEvent.h:17
virtual void Sort()
sort data in sub event
Definition: base/SubEvent.h:26