Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
AWF_Frame Class Reference

AWF frame. More...

#include <TimeSlice.hh>

Inheritance diagram for AWF_Frame:
Frame< AWF_Item > DaqFramePreamble std::vector< AWF_Item > std::vector< char > benchmark::chronometrable

Public Types

typedef AWF_Item item_type
 item type definition More...
 

Public Member Functions

 AWF_Frame ()
 Default constructor. More...
 
 ClassDef (AWF_Frame, 2)
 ROOT class definition. More...
 
const DAQCommonHeader *const getHeader () const
 
const char *const getPayload () const
 
unsigned int getSeqNumber () const
 
unsigned int getFrameLength () const
 
unsigned int getNItems () const
 
Frame< AWF_Item > & operator+= (const Frame< AWF_Item > &object)
 operator += More...
 
 ClassDef (Frame, 2)
 ROOT class definition. More...
 
 ClassDef (DaqFramePreamble, 2)
 
ulonglong frameTime ()
 
const unsigned short lcm_id () const
 get LCM idendifier More...
 
const unsigned short ars_id () const
 get ARS idendifier More...
 
const unsigned short data_type () const
 get data type More...
 
const unsigned short numberOfItems () const
 get number of items More...
 
virtual const unsigned char * getdata () const
 Return a pointer to the frame data buffer. More...
 
virtual const unsigned int getdatalen () const
 Return the length of the frame data buffer. More...
 

Static Public Member Functions

static const unsigned int Length ()
 Return length of an encoded frame preamble in bytes. More...
 

Public Attributes

unsigned int frameSize
 Total length of the frame in 4-byte words. More...
 
unsigned short dataType
 Data type code (DAQ_xxx) More...
 
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 short status
 Status of frame Xon/Xoff. More...
 
unsigned short nbItems
 Number of items actually sent in this frame. More...
 
unsigned short LCM_ID
 ID of originating LCM. More...
 
unsigned short ARS_ID
 ID of originating ARS. More...
 
unsigned int runNumber
 Run-number as given by the RunControl. More...
 

Detailed Description

AWF frame.

Definition at line 362 of file TimeSlice.hh.

Member Typedef Documentation

typedef AWF_Item Frame< AWF_Item >::item_type
inherited

item type definition

Definition at line 233 of file TimeSlice.hh.

Constructor & Destructor Documentation

AWF_Frame::AWF_Frame ( )
inline

Default constructor.

Definition at line 369 of file TimeSlice.hh.

Member Function Documentation

AWF_Frame::ClassDef ( AWF_Frame  ,
 
)

ROOT class definition.

const DAQCommonHeader* const Frame< AWF_Item >::getHeader ( ) const
inlineinherited

Definition at line 18 of file frame.hh.

19  {
20  return static_cast<const DAQCommonHeader* const>(
21  static_cast<const void* const>(&front()));
22  }
const char* const Frame< AWF_Item >::getPayload ( ) const
inlineinherited

Definition at line 24 of file frame.hh.

25  {
26  return &front() + sizeof(DAQCommonHeader);
27  }
unsigned int Frame< AWF_Item >::getSeqNumber ( ) const
inlineinherited

Definition at line 29 of file frame.hh.

30  {
31  return m_seqnumber;
32  }
unsigned int m_seqnumber
Definition: frame.hh:14
unsigned int Frame< AWF_Item >::getFrameLength ( ) const
inlineinherited

Definition at line 34 of file frame.hh.

35  {
36  return size() ? getHeader()->FrameLength : 0;
37  }
const DAQCommonHeader *const getHeader() const
Definition: frame.hh:18
unsigned int Frame< AWF_Item >::getNItems ( ) const
inlineinherited

Definition at line 39 of file frame.hh.

40  {
41  return size() ? getHeader()->NumberOfItems : 0;
42  }
const DAQCommonHeader *const getHeader() const
Definition: frame.hh:18
Frame<AWF_Item >& Frame< AWF_Item >::operator+= ( const Frame< AWF_Item > &  object)
inlineinherited

operator +=

Parameters
objectframe
Returns
this frame

Definition at line 272 of file TimeSlice.hh.

273  {
274  if ((DaqFramePreamble&) *this == (DaqFramePreamble&) object) {
275  for (typename Frame<T>::const_iterator i = object.begin(); i != object.end(); ++i) {
276  this->insert(std::lower_bound(Frame<T>::begin(),Frame<T>::end(),*i),*i);
277  }
278  }
279 
280  return *this;
281  }
This object holds the information from the &#39;preamble&#39; of a data frame.
Template Frame for ARS data.
Definition: frame.hh:12
Frame< AWF_Item >::ClassDef ( Frame< AWF_Item ,
 
)
inherited

ROOT class definition.

DaqFramePreamble::ClassDef ( DaqFramePreamble  ,
 
)
inherited
ulonglong DaqFramePreamble::frameTime ( )
inlineinherited
Returns
64 bit frame time

Definition at line 40 of file FramePreamble.hh.

41  {
43  }
unsigned int frameTime2
Frame &#39;time stamp&#39; in units of 50ns (LSW)
unsigned int frameTime1
Frame &#39;time stamp&#39; in units of 50ns (MSW)
const unsigned short DaqFramePreamble::lcm_id ( ) const
inlineinherited

get LCM idendifier

Returns
LCM identifier

Definition at line 67 of file FramePreamble.hh.

67 { return LCM_ID; }
unsigned short LCM_ID
ID of originating LCM.
const unsigned short DaqFramePreamble::ars_id ( ) const
inlineinherited

get ARS idendifier

Returns
ARS identifier

Definition at line 73 of file FramePreamble.hh.

73 { return ARS_ID; }
unsigned short ARS_ID
ID of originating ARS.
const unsigned short DaqFramePreamble::data_type ( ) const
inlineinherited

get data type

Returns
data type

Definition at line 79 of file FramePreamble.hh.

79 { return dataType; }
unsigned short dataType
Data type code (DAQ_xxx)
const unsigned short DaqFramePreamble::numberOfItems ( ) const
inlineinherited

get number of items

Returns
number of items

Definition at line 85 of file FramePreamble.hh.

85 { return nbItems; }
unsigned short nbItems
Number of items actually sent in this frame.
virtual const unsigned char* DaqFramePreamble::getdata ( ) const
inlinevirtualinherited

Return a pointer to the frame data buffer.

The returned value points to the start of the frame preamble.

Returns
pointer to data

Definition at line 92 of file FramePreamble.hh.

92 { return NULL; }
virtual const unsigned int DaqFramePreamble::getdatalen ( ) const
inlinevirtualinherited

Return the length of the frame data buffer.

The returned value is in bytes (not words), and includes the frame preamble.

Returns
length of data

Definition at line 100 of file FramePreamble.hh.

100 { return Length(); }
static const unsigned int Length()
Return length of an encoded frame preamble in bytes.
static const unsigned int DaqFramePreamble::Length ( )
inlinestaticinherited

Return length of an encoded frame preamble in bytes.

Definition at line 111 of file FramePreamble.hh.

111 { return 32; }

Member Data Documentation

unsigned int DaqFramePreamble::frameSize
inherited

Total length of the frame in 4-byte words.

Definition at line 27 of file FramePreamble.hh.

unsigned short DaqFramePreamble::dataType
inherited

Data type code (DAQ_xxx)

Definition at line 30 of file FramePreamble.hh.

unsigned short DaqFramePreamble::frameTarget
inherited

Unique code representing the shore station for this frame.

Definition at line 33 of file FramePreamble.hh.

unsigned int DaqFramePreamble::frameTime1
inherited

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

Definition at line 36 of file FramePreamble.hh.

unsigned int DaqFramePreamble::frameTime2
inherited

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

Definition at line 38 of file FramePreamble.hh.

unsigned int DaqFramePreamble::frameIndex
inherited

Number of frames since start of the run.

Definition at line 46 of file FramePreamble.hh.

unsigned short DaqFramePreamble::status
inherited

Status of frame Xon/Xoff.

Definition at line 49 of file FramePreamble.hh.

unsigned short DaqFramePreamble::nbItems
inherited

Number of items actually sent in this frame.

Definition at line 52 of file FramePreamble.hh.

unsigned short DaqFramePreamble::LCM_ID
inherited

ID of originating LCM.

Definition at line 55 of file FramePreamble.hh.

unsigned short DaqFramePreamble::ARS_ID
inherited

ID of originating ARS.

Definition at line 58 of file FramePreamble.hh.

unsigned int DaqFramePreamble::runNumber
inherited

Run-number as given by the RunControl.

Definition at line 61 of file FramePreamble.hh.


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