Jpp  19.1.0
the software that should make you happy
Public Types | Public Member Functions | Public Attributes | List of all members
AWF_TimeSlice Class Reference

AWF time slices. More...

#include <TimeSlice.hh>

Inheritance diagram for AWF_TimeSlice:
TimeSlice< AWF_Frame > EventPreamble std::vector< JElement_t, JAllocator_t > TObject

Public Types

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

Public Member Functions

 AWF_TimeSlice ()
 Default constructor. More...
 
 ClassDef (AWF_TimeSlice, 2)
 ROOT class definition. More...
 
TimeSlice< AWF_Frame > & operator+= (const TimeSlice< AWF_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

AWF time slices.

Definition at line 553 of file TimeSlice.hh.

Member Typedef Documentation

◆ frame_type

typedef AWF_Frame TimeSlice< AWF_Frame >::frame_type
inherited

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

◆ AWF_TimeSlice()

AWF_TimeSlice::AWF_TimeSlice ( )
inline

Default constructor.

Definition at line 560 of file TimeSlice.hh.

Member Function Documentation

◆ ClassDef() [1/3]

AWF_TimeSlice::ClassDef ( AWF_TimeSlice  ,
 
)

ROOT class definition.

◆ operator+=()

TimeSlice<AWF_Frame >& TimeSlice< AWF_Frame >::operator+= ( const TimeSlice< AWF_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  }
Interface for event classes.

◆ ClassDef() [2/3]

TimeSlice< AWF_Frame >::ClassDef ( TimeSlice< AWF_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: