Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
FramePreamble.hh File Reference
#include <ostream>
#include <iomanip>
#include <TROOT.h>
#include <TObject.h>
#include "antares-dataformat/ulonglong.hh"

Go to the source code of this file.

Classes

class  DaqFramePreamble
 This object holds the information from the 'preamble' of a data frame. More...
 

Functions

static const bool operator== (const DaqFramePreamble &first, const DaqFramePreamble &second)
 equal operator for DAQ frame preamble
 
static const bool operator!= (const DaqFramePreamble &first, const DaqFramePreamble &second)
 not-equal operator for DAQ frame preamble
 

Detailed Description

Author
Joris van Rantwijk
Date
Feb 2002

Class definition for Antares DAQ Data-Frame Preamble.

Definition in file FramePreamble.hh.

Function Documentation

◆ operator==()

static const bool operator== ( const DaqFramePreamble & first,
const DaqFramePreamble & second )
inlinestatic

equal operator for DAQ frame preamble

Parameters
firstDAQ frame preamble
secondDAQ frame preamble
Returns
true if first equals second; else false

Definition at line 150 of file FramePreamble.hh.

151{
152 return (first.dataType == second.dataType &&
153 first.frameIndex == second.frameIndex &&
154 first.LCM_ID == second.LCM_ID &&
155 first.ARS_ID == second.ARS_ID &&
156 first.runNumber == second.runNumber);
157}
unsigned short LCM_ID
ID of originating LCM.
unsigned int frameIndex
Number of frames since start of the run.
unsigned short dataType
Data type code (DAQ_xxx)
unsigned int runNumber
Run-number as given by the RunControl.
unsigned short ARS_ID
ID of originating ARS.

◆ operator!=()

static const bool operator!= ( const DaqFramePreamble & first,
const DaqFramePreamble & second )
inlinestatic

not-equal operator for DAQ frame preamble

Parameters
firstDAQ frame preamble
secondDAQ frame preamble
Returns
true if first not equals second; else false

Definition at line 166 of file FramePreamble.hh.

167{
168 return (first.dataType != second.dataType ||
169 first.frameIndex != second.frameIndex ||
170 first.LCM_ID != second.LCM_ID ||
171 first.ARS_ID != second.ARS_ID ||
172 first.runNumber != second.runNumber);
173}