CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Attributes

FEDTrailer Class Reference

#include <FEDTrailer.h>

List of all members.

Public Member Functions

bool check ()
bool check ()
int crc ()
 Cyclic Redundancy Code of the event fragment including header and trailer.
int crc ()
 Cyclic Redundancy Code of the event fragment including header and trailer.
int evtStatus ()
 Event fragment status information.
int evtStatus ()
 Event fragment status information.
 FEDTrailer (const unsigned char *trailer)
 Constructor.
 FEDTrailer (const unsigned char *trailer)
 Constructor.
int lenght ()
 The length of the event fragment counted in 64-bit words including header and trailer.
int lenght ()
 The length of the event fragment counted in 64-bit words including header and trailer.
bool moreTrailers ()
bool moreTrailers ()
int ttsBits ()
 Current value of the Trigger Throttling System bitsAQ).
int ttsBits ()
 Current value of the Trigger Throttling System bitsAQ).
virtual ~FEDTrailer ()
 Destructor.
virtual ~FEDTrailer ()
 Destructor.

Static Public Member Functions

static void set (unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false)
 Set all fields in the trailer.
static void set (unsigned char *trailer, int evt_lgth, int crc, int evt_stat, int tts, bool T=false)
 Set all fields in the trailer.

Private Attributes

const fedt_structtheTrailer
const fedt_ttheTrailer

Detailed Description

TEMPORARY helper class to interpret/create FED trailer words. FIXME: will be replaced by the xdaq implementation

Date:
2005/10/06 18:25:22
Revision:
1.3
Author:
N. Amapane - CERN

TEMPORARY helper class to interpret/create FED trailer words. FIXME: will be replaced by the xdaq implementation

Date:
2008/07/01 21:50:36
Revision:
1.1
Author:
N. Amapane - CERN

Definition at line 15 of file FEDTrailer.h.


Constructor & Destructor Documentation

FEDTrailer::FEDTrailer ( const unsigned char *  trailer)

Constructor.

Definition at line 11 of file FEDTrailer.cc.

                                                   :
  theTrailer(reinterpret_cast<const fedt_t*>(trailer)) {}
FEDTrailer::~FEDTrailer ( ) [virtual]

Destructor.

Definition at line 15 of file FEDTrailer.cc.

{}
FEDTrailer::FEDTrailer ( const unsigned char *  trailer)

Constructor.

virtual FEDTrailer::~FEDTrailer ( ) [virtual]

Destructor.


Member Function Documentation

bool FEDTrailer::check ( )
bool FEDTrailer::check ( )
int FEDTrailer::crc ( )

Cyclic Redundancy Code of the event fragment including header and trailer.

int FEDTrailer::crc ( )

Cyclic Redundancy Code of the event fragment including header and trailer.

Definition at line 24 of file FEDTrailer.cc.

References fedt_struct::conscheck, FED_CRCS_MASK, FED_CRCS_SHIFT, and theTrailer.

Referenced by RPCUnpackingModule::produce(), L1GlobalTriggerEvmRawToDigi::unpackTrailer(), and L1GlobalTriggerRawToDigi::unpackTrailer().

int FEDTrailer::evtStatus ( )

Event fragment status information.

int FEDTrailer::evtStatus ( )
int FEDTrailer::lenght ( )
int FEDTrailer::lenght ( )

The length of the event fragment counted in 64-bit words including header and trailer.

bool FEDTrailer::moreTrailers ( )
bool FEDTrailer::moreTrailers ( )

0 -> the current trailer word is the last one. 1-> other trailer words can follow (always 0 for ECAL)

void FEDTrailer::set ( unsigned char *  trailer,
int  evt_lgth,
int  crc,
int  evt_stat,
int  tts,
bool  T = false 
) [static]
static void FEDTrailer::set ( unsigned char *  trailer,
int  evt_lgth,
int  crc,
int  evt_stat,
int  tts,
bool  T = false 
) [static]

Set all fields in the trailer.

int FEDTrailer::ttsBits ( )

Current value of the Trigger Throttling System bitsAQ).

int FEDTrailer::ttsBits ( )

Member Data Documentation

Definition at line 52 of file FEDTrailer.h.

Referenced by check(), crc(), evtStatus(), lenght(), moreTrailers(), and ttsBits().

const fedt_t* FEDTrailer::theTrailer [private]

Definition at line 53 of file FEDTrailer.h.