1 #ifndef __ANTARESDAQ__TIMESLICE__
2 #define __ANTARESDAQ__TIMESLICE__
115 return ars_id_ <
object.ars_id_;
117 return lcm_id_ <
object.lcm_id_;
131 return out << setw(5) << (int)
object.
lcm_id_ <<
' '
132 << setw(2) << (int)
object.
ars_id_ <<
' '
145 if (*
this ==
object) {
195 return out << setw(5) << (int)
object.
lcm_id_ <<
' '
196 << setw(2) << (int)
object.
ars_id_ <<
' '
199 << setw(5) << (int)
object.numberOfItemsOrg_ << endl;
210 if (*
this ==
object) {
212 numberOfItemsOrg_ +=
object.numberOfItemsOrg_;
225 template<
class T>
class Frame :
253 out << static_cast<const DaqFramePreamble&>(object);
255 if (!
object.empty()) {
256 out <<
' ' << *(
object. begin());
258 out <<
' ' << *(
object.rbegin());
295 public Frame<Status_Item>
312 public Frame<RTS_Item>
329 public Frame<CRM_Item>
346 public Frame<SPE_Item>
363 public Frame<AWF_Item>
380 public Frame<DWF_Item>
429 friend std::ostream& operator<<(std::ostream& out, const TimeSlice<T>& object)
431 out << static_cast<const EventPreamble&>(object);
453 for (from =
object.begin(); from !=
object.end(); ++from) {
463 this->push_back(*from);
ExtendedSummary_TimeSlice(const TimeSlice< T > &object)
Constructor.
const unsigned short numberOfItemsOrg() const
get number of items original
Interface for event classes.
AWF_Frame()
Default constructor.
Summary_Frame()
Default constructor.
const bool operator<(const Summary_Frame &object) const
less than operator.
RTS_TimeSlice()
Default constructor.
Summary_TimeSlice(const TimeSlice< T > &object)
Constructor.
CRM_TimeSlice()
Default constructor.
DWF_Frame()
Default constructor.
unsigned char ars_id_
ARS identifier.
SPE_Frame()
Default constructor.
T item_type
item type definition
const unsigned char ars_id() const
get ARS idendifier
ExtendedSummary_Frame()
Default constructor.
Frame()
Default constructor.
virtual ~Summary_Frame()
Virtual destructor.
const unsigned short numberOfItems() const
get number of items
frame_type::item_type item_type
item sub-type definition
AWF_TimeSlice()
Default constructor.
CRM_Frame()
Default constructor.
#define ClassDefT2(name, template)
ExtendedSummary time slices.
void item_type
item type definition
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
unsigned short ARS_ID
ID of originating ARS.
T frame_type
item type definition
void item_type
item type definition
const unsigned char data_type() const
get data type
friend std::ostream & operator<<(std::ostream &out, const Summary_Frame &object)
Print ASCII.
This object holds the information from the 'preamble' of a data frame.
const bool operator==(const Summary_Frame &object)
equal operator.
TimeSlice()
Default constructor.
ExtendedSummary_Frame & operator+=(const ExtendedSummary_Frame &object)
operator +=
unsigned short lcm_id_
LCM identifier.
unsigned short LCM_ID
ID of originating LCM.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
friend std::ostream & operator<<(std::ostream &out, const ExtendedSummary_Frame &object)
Print ASCII.
TimeSlice< T > & operator+=(const TimeSlice< T > &object)
operator +=
const bool operator!=(const Summary_Frame &object) const
not-equal operator.
Status_TimeSlice()
Default constructor.
ExtendedSummary_TimeSlice()
Default constructor.
#define ClassImpT(name, template)
unsigned short numberOfItems_
number of items
ClassDef(Summary_Frame, 2)
ROOT class definition.
Status_Frame()
Default constructor.
unsigned char data_type_
data type
Template Frame for ARS data.
RTS_Frame()
Default constructor.
Frame< T > & operator+=(const Frame< T > &object)
operator +=
Summary_Frame & operator+=(const Summary_Frame &object)
operator +=
Summary_TimeSlice()
Default constructor.
friend std::ostream & operator<<(std::ostream &out, const Frame &object)
Print ASCII.
DWF_TimeSlice()
Default constructor.
TimeSlice(const EventPreamble &header)
Constructor.
Summary_TimeSlice & operator+=(const TimeSlice< T > &object)
operator +=
const unsigned short lcm_id() const
get LCM idendifier
SPE_TimeSlice()
Default constructor.
unsigned short numberOfItemsOrg_
number of items original
unsigned short dataType
Data type code (DAQ_xxx)