Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
Public Types | Public Member Functions | Public Attributes | List of all members
Summary_TimeSlice Class Reference

Summary time slices. More...

#include <TimeSlice.hh>

Inheritance diagram for Summary_TimeSlice:
TimeSlice< Summary_Frame > EventPreamble std::vector< JElement_t, JAllocator_t > TObject

Public Types

typedef Summary_Frame frame_type
 item type definition More...
 
typedef frame_type::item_type item_type
 item sub-type definition More...
 

Public Member Functions

 Summary_TimeSlice ()
 Default constructor. More...
 
template<class T >
 Summary_TimeSlice (const TimeSlice< T > &object)
 Constructor. More...
 
template<class T >
Summary_TimeSliceoperator+= (const TimeSlice< T > &object)
 operator += More...
 
 ClassDef (Summary_TimeSlice, 2)
 ROOT class definition. More...
 
TimeSlice< Summary_Frame > & operator+= (const TimeSlice< Summary_Frame > &object)
 operator += More...
 
 ClassDef (TimeSlice, 2)
 ROOT class definition. More...
 
 ClassDef (EventPreamble, 2)
 

Public Attributes

unsigned short frameTarget
 Unique code representing the shore station for this frame. More...
 
unsigned int frameTime1
 Frame 'time stamp' in units of 50ns (MSW) More...
 
unsigned int frameTime2
 Frame 'time stamp' in units of 50ns (LSW) More...
 
unsigned int frameIndex
 Number of frames since start of the run. More...
 
unsigned int runNumber
 Run-number as given by the RunControl. More...
 

Detailed Description

Summary time slices.

Definition at line 587 of file TimeSlice.hh.

Member Typedef Documentation

◆ frame_type

item type definition

Definition at line 401 of file TimeSlice.hh.

◆ item_type

item sub-type definition

Definition at line 402 of file TimeSlice.hh.

Constructor & Destructor Documentation

◆ Summary_TimeSlice() [1/2]

Summary_TimeSlice::Summary_TimeSlice ( )
inline

Default constructor.

Definition at line 594 of file TimeSlice.hh.

◆ Summary_TimeSlice() [2/2]

template<class T >
Summary_TimeSlice::Summary_TimeSlice ( const TimeSlice< T > &  object)
inline

Constructor.

param object time slice

Definition at line 602 of file TimeSlice.hh.

602  :
603  TimeSlice<Summary_Frame>((const EventPreamble&) object)
604  {
605  for (typename TimeSlice<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
606  this->push_back(Summary_Frame(i->LCM_ID,
607  i->ARS_ID,
608  i->dataType,
609  i->nbItems));
610  }
611  }
Interface for event classes.
Summary of Frame.
Definition: TimeSlice.hh:21

Member Function Documentation

◆ operator+=() [1/2]

template<class T >
Summary_TimeSlice& Summary_TimeSlice::operator+= ( const TimeSlice< T > &  object)
inline

operator +=

Parameters
objecttime slice
Returns
this summary time slice

Definition at line 620 of file TimeSlice.hh.

621  {
622  if ((EventPreamble&) *this == (EventPreamble&) object) {
623  for (typename TimeSlice<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
624  this->push_back(Summary_Frame(i->LCM_ID,
625  i->ARS_ID,
626  i->dataType,
627  i->nbItems));
628  }
629  }
630 
631  return *this;
632  }

◆ ClassDef() [1/3]

Summary_TimeSlice::ClassDef ( Summary_TimeSlice  ,
 
)

ROOT class definition.

◆ operator+=() [2/2]

TimeSlice<Summary_Frame >& TimeSlice< Summary_Frame >::operator+= ( const TimeSlice< Summary_Frame > &  object)
inlineinherited

operator +=

Parameters
objecttime slice
Returns
this time slice

Definition at line 446 of file TimeSlice.hh.

447  {
448  if ((EventPreamble&) *this == (EventPreamble&) object) {
449 
450  typename TimeSlice<T>::const_iterator from;
451  typename TimeSlice<T>::iterator to;
452 
453  for (from = object.begin(); from != object.end(); ++from) {
454 
455  for (to = std::vector<T>::begin(); to != std::vector<T>::end(); ++to) {
456  if (*to == *from) {
457  *to += *from;
458  break;
459  }
460  }
461 
462  if (to == std::vector<T>::end()) {
463  this->push_back(*from);
464  }
465  }
466  }
467 
468  return *this;
469  }

◆ ClassDef() [2/3]

TimeSlice< Summary_Frame >::ClassDef ( TimeSlice< Summary_Frame ,
 
)
inherited

ROOT class definition.

◆ ClassDef() [3/3]

EventPreamble::ClassDef ( EventPreamble  ,
 
)
inherited

Member Data Documentation

◆ frameTarget

unsigned short EventPreamble::frameTarget
inherited

Unique code representing the shore station for this frame.

Definition at line 26 of file EventPreamble.hh.

◆ frameTime1

unsigned int EventPreamble::frameTime1
inherited

Frame 'time stamp' in units of 50ns (MSW)

Definition at line 29 of file EventPreamble.hh.

◆ frameTime2

unsigned int EventPreamble::frameTime2
inherited

Frame 'time stamp' in units of 50ns (LSW)

Definition at line 31 of file EventPreamble.hh.

◆ frameIndex

unsigned int EventPreamble::frameIndex
inherited

Number of frames since start of the run.

Definition at line 34 of file EventPreamble.hh.

◆ runNumber

unsigned int EventPreamble::runNumber
inherited

Run-number as given by the RunControl.

Definition at line 37 of file EventPreamble.hh.


The documentation for this class was generated from the following file: